Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Which MTA should I install on a Unbuntu hardy EC2 Instance? I hear that the Postfix is the default MTA on Ubuntu.

I will also need installation and config instructions. This MTA will deliver mail to a SMTP server running outside of AWS environment.


share|improve this question
up vote 1 down vote accepted

Postfix is indeed a very versatile and well documented MTA. Another one I played around with is Exim4, although this was on Debian5 and not Ubuntu. Yet I prefer Postfix over Exim.

share|improve this answer

Unless you have any special requirements, I would definitely go with Postfix. Apart from being a very capable MTA in general, the part about it being the default choice also means that there will be more easily available documentation.

Assuming you answer properly on the questions asked during the install (apt-get install postfix) you will get an ok configuration to start of. Depending on whatever you also want to listen on SMTP you should choose either Internet with smarthost or Satellite system.

Also, see

share|improve this answer
Thanks. I new to this so I have some more questions. Given that this MTA will deliver mail to the SMTP/POP3 server outside AWS, do I also need to configure the following sections: - Maildir - SMTP Authentication - Digital certificate - TLS encryption - Configuring SASL I am assuming not. Which port needs to be open for MTA to deliver mail to the SMTP server? Do I need to enter the base (first) domain name I will be hosting on the EC2 instance ( Note, I will be hosting more than one domains? Thanks. – April Jul 26 '10 at 10:08
One more question. I am not using Elastic IP, could I leave the public IP out in this entry (, 192.168.0/24)? Thanks. – April Jul 26 '10 at 10:09
Could someone help please? Thanks. – April Aug 7 '10 at 7:40

Your Answer


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.