From: Agnello George on 30 Apr 2010 08:24 we use smtp login maps to autheticate our clients and the parameter "smtpd_sasl_authenticated_header = yes" to add the a authenticated user to the header ... ---------------------------------------------------- Received: from somedom.domain,com ([124.254.23.13]) by f38.Bay0.hotmail.comwith Microsoft SMTPSVC(6.0.3790.3959); Tue, 27 Apr 2010 06:11:30 -0700 Received: from exampledomain.com (unknown [124.152.35.201]) (Authenticated sender: relay(a)olvy.com) by somedom.domain,com(Postfix) with ESMTPA id 9686C5D870E for <marial(a)hotmail.com>; Tue, 27 Apr 2010 18:41:25 +0530 (IST) From: Full of Life<marketing(a)exampledomain.com> To: marialopes(a)hotmail.com =----------------------------------------------------------- is there way to customize the authenticated_header for example instead of " (Authenticated sender: relay(a)olvy.com)" we require --> " ( mm-Authenticated-User: relay(a)olvy.com) " i heard is i possible via header checks .. but apart from that is it possible This will help in our parser script .. Thanks -- Regards Agnello D'souza
From: Victor Duchovni on 30 Apr 2010 13:08 On Fri, Apr 30, 2010 at 05:54:29PM +0530, Agnello George wrote: > Received: from exampledomain.com (unknown [124.152.35.201]) > (Authenticated sender: relay(a)olvy.com) > by somedom.domain.com(Postfix) with ESMTPA id 9686C5D870E > for <marial(a)hotmail.com>; Tue, 27 Apr 2010 18:41:25 +0530 (IST) > > Is there way to customize the authenticated_header for example instead of > " (Authenticated sender: relay(a)olvy.com)" > we require --> " ( mm-Authenticated-User: relay(a)olvy.com) " > I heard is i possible via header checks .. but apart from that is it > possible Yes, it is possible via header_checks. Here's the PCRE: /^(Received:.*?\n\t\()Authenticated sender: (\S+?)(\)\n(?:.*?\n)*?\tby your-server\.example\.com \(Postfix\) with ESMPS?A .*)/ REPLACE ${1} mm-Authenticated-User: ${2}${3} which matches just the Received headers added by "your-server.example.com", and performs the necessary replacement. It is better to just improve your parser. -- Viktor. P.S. Morgan Stanley is looking for a New York City based, Senior Unix system/email administrator to architect and sustain our perimeter email environment. If you are interested, please drop me a note.
|
Pages: 1 Prev: smtp-sink custom return codes Next: relayhost and transport_maps (SOLEVD) |