header_checks postfix help!
Posted: 2018/07/10 18:55:27
I want to block all email sent to a certain domain, but allow emails to a few users in that domain. For example I want user1@domain.com user4@domain.com to be able to recieve emails, but no other users withing the @domain.com. How would I do this with header_checks?
This is what I have, but everything gets discarded.
/^To: user1@domain.com/ PASS
/^To: .*@domain.com.*/ DISCARD
This is what I have, but everything gets discarded.
/^To: user1@domain.com/ PASS
/^To: .*@domain.com.*/ DISCARD