Loading ...
Sorry, an error occurred while loading the content.

Re: customised smtpd_sasl_authenticated_header

Expand Messages
  • Victor Duchovni
    ... Yes, it is possible via header_checks. Here s the PCRE: /^(Received:.*? n t ()Authenticated sender: ( S+?)( ) n(?:.*? n)*? tby your-server .example .com
    Message 1 of 2 , Apr 30, 2010
    • 0 Attachment
      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@...)
      > by somedom.domain.com(Postfix) with ESMTPA id 9686C5D870E
      > for <marial@...>; Tue, 27 Apr 2010 18:41:25 +0530 (IST)
      >
      > Is there way to customize the authenticated_header for example instead of
      > " (Authenticated sender: relay@...)"
      > we require --> " ( mm-Authenticated-User: relay@...) "
      > 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.
    Your message has been successfully submitted and would be delivered to recipients shortly.