Thanks for your answer but does not work for me.
I set this in main.cf
Code:
#check_sender_access regexp:/etc/postfix/reg_sender_access
smtpd_sender_restrictions =
check_sender_access regexp:/etc/postfix/reg_sender_access
warn_if_reject reject_non_fqdn_sender
warn_if_reject reject_unknown_sender_domain
smtpd_recipient_restrictions =
check_recipient_access regexp:/etc/postfix/reg_recipient_access
permit_mynetworks
warn_if_reject reject_unknown_recipient_domain
reject_unauth_destination
and in /etc/postfix/reg_recipient_access
Code:
/host@mydomain.com/ OK
If I try to send an email to
host@mydomain.com from a domain not listed in reg_sender_access, I get
Code:
Sender address rejected: Access denied (in reply to RCPT TO command)
.
What I need is some kind of exception for a recipient address.
Thanks.