gmail, postfix and php mail script
5 Replies
This documentAnother
Once configured you can feed a message (with To: and Subject: headers) to 'sendmail -t' to test it. If that works, PHP should be able to send mail.
I do appreciate the answers and the help.
http://nanotux.com/blog/the-ultimate-server/4/#l-mail
The only problem I had was that no matter how many times I changed php.ini, php just wouldn't take my sendmail override. The phpinfo() function said that it was using the ini I was editing, but it just wouldn't take. I think I restarted lighttpd a million times.
So finally I just set up a symbolic link where php wanted to use sendmail to point to msmtp. It's none the wiser.
It works well, but it is a little slow. Whenever a user leaves a comment there is a noticeable delay while it connects securely to google and sends the mail.
It's not an unbearable delay, but it's slower than the rest of my site.
.
But if you can live with these, ssmtp (or msmtp) do the job just fine and are simpler to set up than a full MTA.