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

postfix env variables in header_checks

Expand Messages
  • Simon Herter
    Hello, currently I do the following header_checks: /^Received: by myhostname .*from userid [0-9]+ )/ IGNORE /^Received: (.*)by myhostname (Postfix ) (.*)/
    Message 1 of 2 , Sep 27 1:19 PM
      Hello,

      currently I do the following header_checks:

      /^Received: by myhostname .*from userid [0-9]+\)/ IGNORE
      /^Received: (.*)by myhostname \(Postfix\) (.*)/ REPLACE Reveiced: $(1)by
      myhostname $2

      Now I was wondering if it is possible to use actual $myhostname variable
      from postfix config? Something like:

      /^Received: by $myhostname .*from userid [0-9]+\)/ IGNORE
      /^Received: (.*)by $myhostname \(Postfix\) (.*)/ REPLACE Reveiced:
      $(1)by $myhostname $2

      Greetings
    • Noel Jones
      ... No, not supported. No config variables are available during lookups. -- Noel Jones
      Message 2 of 2 , Sep 27 1:46 PM
        On 9/27/2013 3:19 PM, Simon Herter wrote:
        > Hello,
        >
        > currently I do the following header_checks:
        >
        > /^Received: by myhostname .*from userid [0-9]+\)/ IGNORE
        > /^Received: (.*)by myhostname \(Postfix\) (.*)/ REPLACE Reveiced:
        > $(1)by myhostname $2
        >
        > Now I was wondering if it is possible to use actual $myhostname
        > variable from postfix config? Something like:


        No, not supported. No config variables are available during lookups.


        -- Noel Jones
      Your message has been successfully submitted and would be delivered to recipients shortly.