Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm new to all this stuff.

There's some documents on my server. A user send email on e.g doc@my.domain and one of document's must be changed(the way it's to be changed is specified in the email). So, first I need is to rise up a email server. Can someone advice me a simple manual on how to configure a email server? For now I don't need something extra-cool, just email-server(as simple as possible) which will be able to recieve email, and there must be an oppotunity e.g. launch .sh script to change documents when a email recieved.

share|improve this question

2 Answers 2

shortest possible [for debian-ish distributions]

install postfix

apt-get install postfix

in /etc/postfix/main.cf include:

mydestination=your.domain.com

in /etc/aliases:

accountName: "|/some/command/that/will/receive/email/on/stdin.sh"
share|improve this answer
    
thanks for answering. where recieved emails will be stored? –  Eugeny89 Nov 25 '10 at 13:48
    
@Eugeny89 wherever you decide to store them - in such case your script needs to take care of that. –  pQd Nov 25 '10 at 14:34

There is no 'simple' way to setup an email server.

Assuming you already have a functioning email system that the your server could potentially connect to and your server is not yet configured to route/fetch emails via the existing service - that's a different question - and it only needs an email client - not a server.

You've not provided any information about the constraints and objectives. e.g. what OS is on the server you are trying to send emails from? What languages do you have available? Why do you need an email server rather than just a client?

Depending on the answers to these the answer might be as simple as fetchmail+procmail or a PHP/Perl script.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.