System Administration & Network Administration
email postfix gmail smtp
Updated Sat, 21 May 2022 07:06:47 GMT

SMTP relay through GMail overrides "from:" address with "[me]"

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:

Configure Postfix to send/relay emails Gmail ( via port 587

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!


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.

Comments (1)

  • +0 – 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". — Jun 18, 2010 at 20:40  

External Links

External links referenced by this document:

Linked Articles

Local articles referenced by this article: