I have a postfix/dovecot mail server setup. Mail is working perfectly. External relays are disabled.
The issue is external servers can telnet to smtp 25 and spoof email from any valid domains hosted on that server - allowing relay to internal domains. so anyone@example.com can send any emails to anyone@example.com
How do I stop this?
mynetworks
192.168.0.0/16
10.0.0.0/8
127.0.0.0/8
etc/postfix/main.cf
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unknown_recipient_domain, reject_rbl_client zen.spamhaus.org, reject_rbl_client zen.spamhaus.org, reject_rbl_client bl.spamcop.net, reject_rbl_client dnsbl.sorbs.net,check_policy_service unix:private/spfpolicy
I think the issue is mysql-relay_domains
contains all the domains the server hosts - which bypass normal relay security.
Can anyone help me secure this please. Thanks