I can't get addresses other than my AuthUser address to appear in the "from" address of an e-mail sent from my server, even with the FromLineOverride=YES set in my ssmtp.conf file. Configuration is very straightforward - this should be very easy. Nobody else seems to be having this problem. So, what's going on with my configuration?
The OS is Ubuntu Jaunty 9.04, running on a RackSpace Cloud Server.
I installed ssmtp (sudo apt-get install ssmtp)
I set the config to work with google apps (requisite MS DNS entries per google and changes to ssmtp.conf file).
- 1 ASPMX.L.GOOGLE.COM
- 5 ALT1.ASPMX.L.GOOGLE.COM
- 5 ALT2.ASPMX.L.GOOGLE.COM
- 10 ASPMX2.GOOGLEMAIL.COM
- 10 ASPMX3.GOOGLEMAIL.COM
Conf file: (sudo vi /etc/ssmtp/ssmtp.conf)
Test in various ways... let's keep it easy and use commandline
cat <<EOF | ssmtp firstname.lastname@example.org
From: Andy Mytys <email@example.com>
Subject: Hello World
I get the mail in the firstname.lastname@example.org account. However, the send is not email@example.com as one would expect due to the FromLineOverride=YES config line. It is still the authuser account, firstname.lastname@example.org.
BTW, if I change the Auth info in the ssmtp.conf file the email fails so I know I'm working with the right conf file.