Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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).

MX records


Conf file: (sudo vi /etc/ssmtp/ssmtp.conf)

Test in various ways... let's keep it easy and use commandline

cat <<EOF | ssmtp
From: Andy Mytys <>
Subject: Hello World

Hello World

I get the mail in the account. However, the send is not as one would expect due to the FromLineOverride=YES config line. It is still the authuser account,

What gives????

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.

share|improve this question
Hmmm... Perhaps my server is working OK. I just did a sudo cat /var/log/mail.log and I see that my entries are spelled out as "sent mail for" So, it appears that the mail header may be being overridden on the google-apps side of the house. Is there a google-apps setting for accounts that's similar to the FromLineOverride=YES Is there a way that I can see the entire mail header as ssmtp will send it before it gets routed through Google? – amytys Oct 17 '09 at 2:05

After much research, I've discovered the following huge drawback: Gmail automatically rewrites the "from" line of any e-mail you send via their SMTP gateway to your Gmail address, and it overrides any Reply-To settings you may have in your e-mail software in favor of the one in Gmail's web interface. Looks like you can point it to another account, but said account can't be dynamic based on the content of an incoming mail header's "from" info -

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.