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.

What are some of the Dos and Don't to setting up an email server on Ubuntu? Are there any gotcha's?

share|improve this question
add comment

5 Answers

up vote 8 down vote accepted

+1 for Postfix

Be very careful to make sure that your machine cannot be used as an open relay. If it's for an internal lan only, do not accept connections on your public IP. If it's for an external SMTP server, make sure you don't accept any email not intended for your domain. If you need to provide SMTP for your users while they're outside of the network, either use a VPN (in which case they're not outside the network) or implement authentication (and real authentication, not just POP before SMTP)

share|improve this answer
2  
Toc check for open relay, just use one (or better, many) of the systems that a search for "test open relay" will yield, e.g: abuse.net/relay.html –  Colas Nahaboo May 27 '09 at 15:17
add comment

Whatever you do, do not use Sendmail. The configuration files are so complicated that they created a macro language that compiles down to the actual config files.

The O'Reilly Sendmail book (the bat book) is the thickest on my shelf.

share|improve this answer
    
muahhhhaa:) so true –  Stann Apr 20 '11 at 9:59
add comment

Do:

  • use exim or postfix, they're (IMNSHO) the only credible SMTP servers for Linux at the moment.
share|improve this answer
2  
Also, Ubuntu 9.04 comes with dovecot and postfix pre-packaged and configured to work together, just look for the dovecot-postfix package –  agnul Apr 30 '09 at 10:17
add comment

Slicehost has fantastic articles that will work with any host, with email specific guides at articles.slicehost.com/email.

share|improve this answer
add comment

I would use qmail, just follow that very good book "life with qmail"

share|improve this answer
add comment

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.