[Cialug] Postfix relay_domains

L. V. Lammert lvl at omnitec.net
Fri Feb 22 14:54:38 CST 2013


> Without a value for relay_domains only mail for the local domains
> (specifically $mydestination) is accepted.
>
Agreed - thanks for the confirmat.

> relay_domains is intended primarily to allow authoritative listing of
> backup-MX domains (rather than relying on DNS, which is not under your
> control).
>
> relayhost acts independently; all non-local mail is forwarded through
> $relayhost instead of doing the normal MX/A lookups
>
Excellent!

>         mynetworks = 127.0.0.0/8 [::1]/128
>         smtpd_recipient_restrictions = permit_mynetworks
>
That was the part I was missing, .. it's not relay_domains controlling the
filtering, rather smtpd restrictions.

Unfortunately, that DNW as above, .. I added the domain name of the host,
but now all outbound mail is rejected (before at least the error message
to root would be sent).

mynetworks = 127.0.0.0/8 [::1]/128, <domain of host>
smtpd_recipient_restrictions = permit_mynetworks
mynetworks_style = subnet

Appreciate any other thoughts you might have, .. at least I have a working
system to use as a model that I did last year.

	Thanks!!

	Lee


More information about the Cialug mailing list