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?
feedback
|
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:
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.
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!) | |||||
feedback
|
|
You're probably better off paying someone to do that hosting for you. You don't want to do all the work to keep a mail server running, and it sounds like you'd take quite a while to get started on it. Outsource the stuff that you don't care about :) That being said, yes you could do that. Mattering on load, you could probably go with a VPS running whatever distro you're comfortable with. Postfix isn't too bad to set up, and configuring it to accept mail from a set IP (your EC2 instance) wouldn't be hard at all. You could also configure authentication there, and set up a mail server on your EC2 instance which relays through your mail server and knows how to authenticate. That way if you need to change IPs on your EC2 (I don't know if you get allocated one or if it can change) you won't have to mess with the mail server. | |||
feedback
|
|
Any virtual dedicated server would do this fine. You just go to a company like slicehost, order a basic one, choose your preferred OS for it, and it'll be ready in no time. Log in, setup your mailserver, configure firewall etc., and you're done. | |||||||||||
feedback
|
|
You could also Google down a few smarthost providers and subscribe to their service to send out email. The EC2 issue isn't the headers, it's the source IP. | |||
|
feedback
|
|
It could be caused by the previous owner of that IP address .. Get to know the allocated IP address and check it againts RBL and check the IP address reputiation againts senderbase http://www.senderbase.org/ http://www.dnswatch.info/dns/rbl-lookup Another tips is to set your Reverse DNS entry for the IP address and match with the forward entry. Setting up SPF / DKIM entry for your domain also help as more and more people adopting SPF. If you are sending a lot of email the deadbeats ticks : http://serverfault.com/questions/56719/postfix-stagger-rate-limit-outbound-mail | |||
|
feedback
|
|
You may want to look into a VPS solution for your mail server needs. There are many available, most are likely inexpensive. I've used VPSLink (http://vpslink.com) for a few years for both private and commercial products, and have had mostly good experiences. At this time, their lowest offering will get you a barebones VPS for about eight US dollars per month. Some caveats I've run into on a VPS solution:
| |||
|
feedback
|
|
I'm running the mail server based on postfix/dovecot. Some time ago I had published my setup of postfix in my blog, so you can check it out. | |||
|
feedback
|
|
You can have Amazon setup a PTR for your EIP. This is the form to use for that. | |||
|
feedback
|
|
You could go to all this trouble setting up and maintaining your own Postfix server, and that might be the way to go if you want mail services other than just sending out on behalf of your web servers. However, it'll be cheaper and easier to just have somebody else do it. SendGrid Basic compares pricewise to a fairly cheap VPS host, but will be a lot more stable and has more features you don't need to maintain yourself. If you're sending out a lot more emails than that, the features of Silver and above will be worth your while. If you're particularly cheap then I've seen people create a Gmail account and use the Google smtp servers from their web apps. I wouldn't like to comment on how sensible that is, but it seems to work for them. | |||
|
feedback
|