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

locked by HopelessN00b Dec 5 at 2:20

This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar questions here. This question and its answers are frozen and cannot be changed. More info: help center.

5 Answers 5

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
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

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
    
muahhhhaa:) so true –  Stann Apr 20 '11 at 9:59

Do:

  • use exim or postfix, they're (IMNSHO) the only credible SMTP servers for Linux at the moment.
share
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

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

share

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

share

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