First of all, I'm a newcomer to this board and want to say hello to everyone I'm wondering if anybody here is using the msmtp & Google Apps for their mailing needs? I've started using a VPS a few months ago and, I've decided not to set up full MTA like postfix (which seems like really painful to configure and maintain) and use a relay only MTA instead. After I searched a bit, I've decided to use msmtp, since it's been told on its website that it is capable of handling multiple accounts on different domains. My problem is, whatever I've tried, I couldn't make it to send the mails with the right "from" address. It is always using the default account. This is how I configured the msmtprc; defaults host smtp.gmail.com port 587 protocol smtp auth on auto_from off tls on tls_starttls on ## info@domain1.com account domain1 from info@domain1.com user info@domain1.com password secret1 ## me@domain2.net account domain2 from me@domain2.net user me@domain2.net password secret2 ## info@domain3.org account domain3 from info@domain3.org user info@domain3.org password secret3 ## default account default : domain1 Code (markup): and the php send mails with; /usr/sbin/sendmail -t -i Code (markup): and "sendmail" is a symbolic link to msmtp. I've used Linux at my desktop for a long time, but I'm not a hosting guru Here is my question; There is also another option shown in the phpinfo(); sendmail_from, which has "no_value". Should I set this to make it work? And, if I should, what would be the best "value"? Thanks in advance, Ali.
Well, I'm using CMSs like WordPress and Textpattern, and I can send email via these scripts at the moment. Problem is, whenever a script on domain2.net or domain3.org tries to send an email, msmtp is using the default account; info@domain1.com. By the way, the home page of msmtp is here; http://msmtp.sourceforge.net