On Fri, Oct 22, 2010 at 9:56 AM, Wietse Venema <wie...@porcupine.org> wrote:

> Cameron Smith:
> > On Fri, Oct 22, 2010 at 9:10 AM, Cameron Smith <velvetpi...@gmail.com
> >wrote:
> >
> > > I have my mail system set up with 11 Postfix mail servers on my LAN
> servers
> > > that send mail out through a single Postfix mail gateway.
> > >
> > > mx for my domain is to google mail servers as mail accounts are handled
> > > there.
> > >
> > > When an application on one of my servers tries to send mail to a mail
> > > account on my domain it fails:
> > >
> > > Recipient address rejected: User
> > > unknown in relay recipient table;
> > >
> > > It's obviously looking locally for that user.
> > >
> > > How do I configure the mail servers and gateway to send mail to
> accounts on
> > > my domain so they can be received by the google mail servers?
> > >
> >
> >
> > So I found this tutorial:
> >
> http://www.blogternals.com/2009/04/30/postfix-google-apps-gmail-smtp-relay/
> >
> > Is this the correct direction to solve my issue?
> > If so does that need to be on each mail server or just on the gateway?
>
>
> I do not respond about third-party howtos, setting up an OUTBOUND
> mail relay is really simple.
>
> - DO NOT list remote domains in relay_domains or virtual_alias_domains
> or virtual_mailbox_domains or mydestination or transport_maps or
> anywhere else on the outbound mail relay.
>
> - DO list inside networks in mynetworks on the outbound mail relay.
>
> - DO set relayhost (or equivalent) on the inside machines.
>
>        Wietse
>

Thanks Wietse.

On the gateway I have:
mynetworks = 127.0.0.0/8 10.0.132.0/24

All mail servers on my LAN are in that range.

On the inside machines I have:
relayhost = [10.0.132.15]

and that is the IP of my Postfix mail gateway.

Do I need to add the google mail servers to that relayhost? I still want all
mail not destined to a user on my domain to go out through my mail gateway
and only mail to a user in my domain managed at google apps to relay through
google mail servers.

Reply via email to