sandermo...@telenet.be:
> 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'.

        Wietse

Reply via email to