I have my slice set up as a LAMP server and attempting to use
msmtp for outgoing mail. So far I can send out system email
but I have my sites set up under a specific user account with
it's own local .msmtprc file.
my php.ini has the necessary entry for sending the mail and using
a configuration file. I've tried both the system default configuration
(/etc/msmtprc) file as well as the user specific configuration file
(/home/user/.msmtprc) and neither seem to be working.
I tested this with a simple php mailer test script which sends an email.
Evertime I run it i'm seeing a permission denied reading the configuration
file for msmtp.
Decided to go with postfix instead.
It was quick and easy, and it's working with
my google apps account too.
I sent a message to a yahoo account i have
using a php test script, went straight to my
mailbox! So at this point I think postfix
is the smoothest way to go.
I am taking a wild guess, but it sounds like your .msmtprc file may've had the wrong permissions. If the user www-data runs msmtp, then the .msmtprc must be owned by www-data, and be chmoded 600.
If you only require outgoing mail, I hope you try msmtp again.
A good way to test if the configuration is correct is to run `msmtp --serverinfo`. If it displays stats instead of errors, then you're good to go.