Hi,
I am configuring a Postfix relay hosted on a cloud provider. I would like
to allow relay access only to public IPs of my company AND to a precise
list of senders. Here are my main.cf configurations:

mynetworks = 127.0.0.0/8 1.2.3.4/23 4.5.6.7/32 7.8.9.1/24
smtpd_recipient_restrictions = permit_mynetworks,
                                check_sender_access
hash:/etc/postfix/allowed_senders,
                                reject_unauth_destination

allowed_senders is like this:

name.surn...@domain.com OK
john....@domain.com OK
andrew.wh...@domain.com OK

If I keep these settings, allowed_senders is ignored, whether I put it
before or after permit_mynetworks settings. If I remove permit_mynetworks,
allowed_senders works normally. It looks like that
smtpd_recipient_restrictions options are in an OR relation; is there a way
to have them in an AND relation? Or do I have to put permit_mynetworks in
another postfix restriction option?

Reply via email to