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've been trying to figure out if this is a new "feature" or if there is an issue with my configuration. I'm using Ubuntu 10.04 Desktop with Postfix as MTA. My smtp (as opposed to smtpd) configuration follows that outlined in Jeremy's excellent response here:

I am able to successfully relay mail through []:587; however, on the receiving end, the from: address shows: "[my_gmail_username]" instead of "[my_user]@[my_domain]".

Would greatly appreciate any hints or tips; in this instance, my Google skills have failed me!

share|improve this question
up vote 6 down vote accepted

I think they've always done this, even when you've configured your gmail to send from other domains. As far as I know, the only way around this is to switch to using Google Apps, which is free if you just use the standard edition. The problem with this is that it means you have to change your MX records so that google handles all of your incoming mail, and it is only free for up to 50 users.

share|improve this answer
Ah! This is actually just for a small home server; max 5 users or so. I'll look into this. Probably having Google handle the incoming mail would have some benefits -- I assume they filter and scan on their end, so I don't have to worry about that on my end... In any case, I'm happy to see it's not "just me". – FromageTheDog Jun 18 '10 at 20:40

Did you add your non gmail address on ? (in the Send mail as part)

share|improve this answer
Heh -- I had actually looked into this. Unfortunately, the idea here was to have my local machine serve mail for several users; your suggestion would only work for one user. – FromageTheDog Jun 18 '10 at 20:38
Thanks this helped to me a lot – JacopKane Dec 30 '15 at 18:06

They do that for security reasons. Your ISP probably uses gmail as they email system, I know mine does. If you want to run a mail server without this issue try smtp2go. It is a small annual cost but it works like a charm! My server has about 5 users and I pay I think about $24.95 a year.

All you need to do is log in to sptp2go and specify what email address are allowed to use the smtp2go smtp server (your email users on your mail server) by email address and then set up your MTA.

SMTP2GO even can runn on different ports. Especially useful if you ISP blocks certain ports.

share|improve this answer
I'd looked into this but was stunned at the pricing. There are many established webhosts that will provide far more than just SMTP for $25 a year... – FromageTheDog Jun 18 '10 at 20:44

I've experienced this as well, and I don't think there's a way around it aside from switching to GAFYD

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.