On Thu, May 23, 2013 at 07:30:18PM +0800, Bu Xiaobing wrote:

> I want to let the sender address equal to the log-in name, the
> following are some mainly settings in my main.cf,
>
> smtpd_tls_security_level = may
> smtpd_recipient_restrictions =
>       permit_sasl_authenticated,
>       reject_unauth_destination,
>       reject_sender_login_mismatch
> smtpd_sender_login_maps = hash:/etc/postfix/test

Order matters, the "reject_sender_login_mismatch" restriction will only
apply to unauthenticated users, since no further restrictions are processed
after "permit_sasl_authenticated" returns "OK". Try:

    smtpd_recipient_restrictions =
        reject_sender_login_mismatch,
        permit_sasl_authenticated,
        reject_unauth_destination

-- 
        Viktor.

Reply via email to