I am managing a mail server. The mail server is running with multiple domains configured. The problem is authenticated user can use any sender email ID and I need to prevent it. How can I do that?
Example: a sender with email [email protected]
is sending mail with sender email address as [email protected]
I need to prevent that.
You do this with the configuration option
smtpd_sender_login_maps
.It requires the user has SASL authenticated.
Then you add a configuration option along with the above to the smtpd_sender_restrictions optoin such as;
This works with Postfix 2.1+ If not, reject_sender_login_mismatch
According to postfix documentation
reject_authenticated_sender_login_mismatch enforces reject_sender_login_mismatch