On 10/29/2020 4:28 PM, Joey J wrote:
Hello All,
I'm trying to figure out if I have made a mistake in my
configuration or I won't match the record for this domain that made
it through the rules.
I have the table sender_reject_domain with this record:
mediaware-news.com <http://mediaware-news.com> REJECT 550
SPR-mediaware-news.com
And below is my configuration:
smtpd_recipient_restrictions =
permit_mynetworks
reject_unauth_destination
reject_non_fqdn_recipient
check_recipient_access regexp:/etc/postfix/rcptaccess
check_sender_access regexp:/etc/postfix/senderaccess
check_client_access hash:/etc/postfix/sender_reject_domain
check_client_access is for checking the client domain name or IP.
You probably want check_sender_access to check the MAIL FROM address.
check_client_access cidr:/etc/postfix/sender_reject_ip
check_recipient_access hash:/etc/postfix/sender_reject_invalid
The header for the message which made it through:
The postfix logs for this message would be far more useful. The logs
will show the client IP and verified hostname, and the MAIL FROM
name(s) used.
-- Noel Jones