views:

37

answers:

2

We are building a web app and will need to send emails on a frequent basis using php's mail() function. We are using it to send mails when e.g. a user signs up for the app, when a client has a new product order, and so on.

What do we install best on our CentOS server to make this happen? I've read a lot about sendmail vs. postfix vs. other packages to use as an MTA but couldn't figure out what I need.

We will not run mail boxes for our users, we only want to send out email from our web app, not receive any emails (we are using google apps for that)

We are looking for a solutions that is easy to setup and maintain

A: 

If you have already mail server, I would suggest have a look to SSMTP, its configuration is very easy to just relay the mails to your server.

Serty Oan
is it better than sendmail/postfix for some reason?
Jorre
SSMTP is great if you just want to relay mail to an actual MTA. I use it on my desktop.
Tim Post
+1  A: 

If you need only send emails from a PHP application the only thing you need is to install sendmail. AFAIR you don't even need to configure it.

Radek Suski
sounds great ;)
Jorre
Well, you do have to configure it .. but in most cases the .deb / .rpm post install scripts handle that for you as long as you set the hostname / etc prior to installing it.
Tim Post
@Tim Post So you don't have to in most cases ;)This is what I meant.
Radek Suski