On Thu, Dec 31, 2009 at 03:41:56PM +0800, Jeff Huang wrote:

> I want to restrict the smtpd with
> reject_authenticated_sender_login_mismatch when the sasl login name and
> the sender mismatch.
> 
> So I need to set a lookup tables for the smtpd_sender_login_maps.
> 
> But I only want to check if the login name and the user that the first
> part of the sender(u...@domain) is the same.

    main.cf:
        smtpd_sender_login_maps = pcre:${config_directory}/sender_login.pcre

    sender_login.pcre:
        /^(.*)@example\.com$/   $1

-- 
        Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:majord...@postfix.org?body=unsubscribe%20postfix-users>

If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.

Reply via email to