Mail Server using Postfix

amazon ec2emailpostfix

I have currently set up my web application on Amazon EC2 server. As a well known fact sending email from EC2 has a problem. As a cheap and long lasting solution instead of using "authsmtp" is it possible to rent a server and use it as a Mail Server? I am currently looking for cheap hosting which will give me root access so that it can be configured and used as a relayhost. I am curently using Postfix as MTA. Has any one implemented this before? I am curious about its feasibility of this solution. I guess common requirements are: 1: Dedicated IP which is not black listed. 2: Open relay( open to my Server only) Any Tips for Header configurations to keep the mails out of spam folder. This is like exactly cloning authsmtp for personal use. Any suggestions for other Mail Server software instead of Postfix? Another problem is Reverse DNS for this server. Should PTR entry be present if a server is used as a relayhost?

Best Answer

is it possible to rent a server and use it as a Mail Server

Definitely, this is the solution my company implements. If you're not too worried about the time it takes to open an SMTP connection, you could use any free (gmail) account to send your mail too - you'll still need DNS config, and it's slow, but you'll get the mail sent as if it were despatched from the account itself.

I have recently answered some of these points. In summary, for config and prevention of "spam" tagging:

Any suggestions for other Mail Server software instead of Postfix?

Not unless you use a remote SMTP server from your code, and this is slow. Qmail is the only real linux alternative: it's slow, cumbersome and irregularly updated. I wouldn't recommend it.

Another problem is Reverse DNS for this server. Should PTR entry be present if a server is used as a relayhost?

I believe DNS records (including reverse records) are always required: there are many different providers who check slightly varying parameters, so be sure to verify your configuration on every major provider (if possible!)