Hi,

I would like to enforce a match between the "From" address and a sasl
authenticated username, but I would like to only enforce this for a
single sasl username.

In my postfix main.cf, I have the following:

smtpd_sender_restrictions =
        <other restrictions>
        reject_authenticated_sender_login_mismatch,
        <other restrictions>

smtpd_sender_login_maps =
        hash:/etc/postfix/restricted_senders

In /etc/postfix/restricted_sender, I have the following:
j...@doe.com  jdoe 

This works, for this user.  However, it breaks sending for all of my
other sasl authenticated users, unless I also put their info into 
/etc/postfix/restricted_sender

Is there a way to make this restriction *only* apply to the username
present in that file?

Thanks,
Bryan

Reply via email to