Hi, I've enabled "Reject sender and login mismatch" but still I can login as [email protected] and send emails with "[email protected]" as sender. Why? thanks
And do not double post, you reopened an old thread from 2018 https://www.howtoforge.com/community/threads/sender-login-mismatch.79729/ and opened this new one.
last one: 3.2.5 I noticed that the value is mssing in postfix configuration. Tried to uncheck and recheck, still nothing. Tried to add manually the value to postfix config, and it works. after this (I tried before to read your message) it reports smtpd_sender_restrictions = check_sender_access proxy:mysql:/etc/postfix/mysql-virtual_sender.cf, reject_authenticated_sender_login_mismatch, permit_mynetworks, reject_sender_login_mismatch, permit_sasl_authenticated, reject_non_fqdn_sender, reject_unlisted_sender postconf: warning: /etc/postfix/main.cf: unused parameter: reject_sender_login_mismatch=true
That looks correct, so if it's not working, either your sender is permitted via mysql-virtual_sender.cf (ie. a "Postfix whitelist" entry), your client is in mynetworks, or maybe it's not doing what you think (eg. only setting From address, but not actually using a different smtp sender), hence the request for logs.
No I was able to perform a repro connecting my Thunderbird to an account and sending with a fake sender starting from "postconf: warning: /etc/postfix/main.cf: unused parameter: reject_sender_login_mismatch=true" I tried to remove the line I inserted, restart postfix an other time, and recheck. it reports now: "smtpd_sender_restrictions = check_sender_access proxy:mysql:/etc/postfix/mysql-virtual_sender.cf, reject_authenticated_sender_login_mismatch, permit_mynetworks, reject_sender_login_mismatch, permit_sasl_authenticated, reject_non_fqdn_sender, reject_unlisted_sender" and no warning and it works as expected (sending with a different sender is blocked). So it seems that the right value has been added to postfix after my test (and postfix restore), but I cannot explain why. meantime thanks for your quick assistance and great job