OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: use of relayhost, relaydomain?

From: Andrew Long (fursinkgmail.com)
Date: Fri Mar 14 2008 - 16:18:12 CDT


I'm a little confused, are you saying to leave
relay_domains = EMPTY

I need to accept for ourdomain.com, which leads me to believe I must
set that in mydestination; but if I don't set it in relay_domains, how
will postfix know to pass that mail back out to the
MX's for oursomain.com? And, yes this host will be an MX for
ourdomain.com, but it will have priority 90 where the pri-mx and
sec-mx are 0 and 10. I hope you'll forgive my ignorance, but I am
still learning the ropes with postfix.

Thanks again.

Andrew

> > Am I close with this?:
> > mydestination = ourdomain.com
> > relay_domains = ourdomain.com
>
> Don't list relay_domains in "mydestination".
>
>
> > relay_recipient_maps = hash:/etc/postfix/relay_recipients
> > relay_transport = smtp
> >
> > ++ relay_recipients ++
> > joeourdomain.com OK
> > edourdomain.com OK
> > maryourdomain.com OK
>
> What does "close" mean? If you fix the mydestination setting (empty),
> this will accept those three recipients and forward them to the MX
> host(s) of the domain whose preference is better than that of the host
> so configured (provided that proxy_interfaces is set correctly if the
> host is behind a NAT firewall).
>
> All other recipients in the domain in question will be rejected. If
> you are an MX host for the domain, presumably this is the complete
> recipient list...
>
> --
> Viktor.
>
> Disclaimer: off-list followups get on-list replies or get ignored.
> Please do not ignore the "Reply-To" header.
>
> To unsubscribe from the postfix-users list, visit
> http://www.postfix.org/lists.html or click the link below:
> <mailto:majordomopostfix.org?body=unsubscribe%20postfix-users>
>
> If my response solves your problem, the best way to thank me is to not
> send an "it worked, thanks" follow-up. If you must respond, please put
> "It worked, thanks" in the "Subject" so I can delete these quickly.
>