We are developing a web application in PHP, and want to be able to reliably send out mails.

Our current solution is sending mails through our hosting provider's SMTP server, but lately we have experienced problems with mails not getting sent, when sending to some of the addresses we use for internal testing. It is likely because we test the system a lot, and our ability to send to those addresses have been blocked in some way by the provider.

What is the best way to solve this? (taking reliability, price and convenience into account?).

  • Can we set up our own SMTP-server, not having to authenticate to anybody? We have root access to the server (Ubuntu Linux). I know nothing about how e-mail providers prevent SPAM nowadays - do you have to get whitelisted by some kind of authority to be able to reliably deliver mails? How easy is this, and which daemon is the best for our purpose?

  • Should we buy access to relay through a different SMTP provider? We want to be able to send with our own domain in the FROM-address. Which is cheapest and best? It should be fast when sending to addresses in Denmark. The use case is very simple, and we do not need fancy e-mail marketing functionality etc.

link|improve this question
It is easy enough to setup your own SMTP server - doing it right may be another story. Usually lists are blacklists as opposed to whitelists. Setup an SPF record, sign your mails with DKIM, and have a valid rDNS (ServerFault has quite a few topics relating to SPAM). I would recommend Postfix (other popular choices include Sendmail, Exim, and Qmail - although, the latter is quite hard to work with). I can't comment on the second point, except for Amazon's SES - although, for your needs, your own setup may be more effective. – cyberx86 Dec 12 '11 at 12:58
4  
Stick to your core competencies. If you know how to run a mail server already, setup your own. If you have almost no clue, farm it out. Don't let saving 5¢ get in the way of earning $1. – Chris S Dec 12 '11 at 13:27
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.