Wietse Venema:
> [email protected]:
> > Can't we use the 'smtpd_sender_restrictions = check_sender_access
> > ...' option on port 26 only using parameters in master.cf ?
>
> Yes.
>
> /etc/postfix/master.cf
> :26 .. .. .. .. .. .. .. smtpd
> -o { smtpd_sender_restrictions=$outbound_sender_restrictions }
>
> /etc/postfix/main.cf:
> outbound_sender_restrictions =
> reject_unlisted_sender
> check_sender_access inline:{
> example.com OK
> other.example OK
> }
> reject
>
> > If so, is it possible to use the relay_domains file for the same purpose?
> >
> > We have "relay_domains = hash:/etc/pmg/domains" in our main.cf
> > And in /etc/pmg/domains we have domains like this:
> >
> > domain1.com 1
> > domain2.com 1
> > domain3.com 1
> > domain4.com 1
>
> For check_sender_access, the result must be OK or permit.
> The relay_domains feature does not break if you change the
> '1' into 'OK'.
If changing the '1' is too much trouble,
/etc/postfix/main.cf:
outbound_sender_restrictions =
reject_unlisted_sender
check_sender_access pipemap:{
hash:/etc/pmg/domains
inline:{{1=OK}}
}
reject
Watch the curly braces.
Wietse