Prev: postscreen: refresh of stored entries?
Next: bug in spamassassin date rule may lead to false spam marking
From: "Jeff Huang" on 31 Dec 2009 02:41 Hi All. 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(user(a)domain) is the same. For example,I allow the user who's id is uid to send the mail from uid(a)domain. Can I set a simple lookup tables or other way to implement it? Thanks and happy new year. Jeff
From: Victor Duchovni on 31 Dec 2009 13:26
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(user(a)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:majordomo(a)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. |