Why does Postfix deliver mails locally instead of relaying them to Google Apps?

Posted by user40388 on Server Fault See other posts from Server Fault or by user40388
Published on 2011-08-15T17:20:43Z Indexed on 2012/09/29 21:39 UTC
Read the original article Hit count: 217

Filed under:
|
|

I get the following error trying to send an email to my Google Apps Email at admin@mydomain.com from my Postfix server.

to=, relay=local, delay=0.09, delays=0.07/0/0/0.02, dsn=5.1.1, status=bounced (unknown user: "admin")

Is there a way I can force it to not use the LOCAL relay and treat admin@mydomain.com as outside email and not look for a user in the current postfix configuration.

I am trying to email the full email address "admin@mydomain.com" not only "admin".

I have the Google Apps MX record on mydomain.com + SPF record which before was:

v=spf1 include:_spf.google.com ~all (emailing to admin@mydomain.com used to work with that record)

But I had to change it to v=spf1 a mx ip4:MY.IP.HERE include:_spf.google.com ~all

© Server Fault or respective owner

Related posts about postfix

Related posts about google-apps