Mail from localhost delivered to Google Apps with Postfix? Anyone have a solution?

Hans Fugal hans at fugal.net
Mon Feb 18 07:03:47 MST 2008


So your domain's MX goes to google, and you just want locally-generated 
mail to get forwarded as normal mail to your address?

You may be able to deliver straight to Google, like you're trying, but 
that isn't necessarily the only way to go. Your ISP probably has an SMTP 
server, and when accepting mail from its internal network may not even 
require authentication. This is easy to set up in postfix (relayhost).

So, postfix knows it isn't example.com (but foo.example.com), and you 
put you at example.com in your ~/.forward, and then postfix sends mail to 
you at localhost to you at example.com via your ISP's SMTP server, and it ends 
up the same place all mail headed for you at example.com does.

-- 
Hans Fugal ; http://hans.fugal.net

There's nothing remarkable about it. All one has to do is hit the
right keys at the right time and the instrument plays itself.
     -- Johann Sebastian Bach



More information about the PLUG mailing list