Postfix SMTP sends to localhost, ignores MX records set to Google Apps

Posted by Kerrick on Server Fault See other posts from Server Fault or by Kerrick
Published on 2012-07-07T20:24:09Z Indexed on 2012/07/07 21:17 UTC
Read the original article Hit count: 255

Filed under:
|
|
|

I have the MX records for zaltin.com set to the Google Apps domains (aspmx.l.google.com etc.). If an email is sent to [email protected] from most places, it goes to my Google Apps account. However, on the zaltin.com server (Ubuntu 10.04 if it matters), sending via SMTP (postfix), if I send to [email protected] (via the Pony ruby gem if it matters), it simply routes to kerrick@localhost (showing up via the mail command) instead of going to my Google Apps account (where it should show up in my GApps Gmail inbox).

Can I make email sent via SMTP on my server, through my server, not go to my server but to Google Apps?

© Server Fault or respective owner

Related posts about email

Related posts about postfix