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

281965Re: pcre header_checks

Expand Messages
  • Marcello Coutinho
    Dec 7, 2011
    • 0 Attachment
      some lines from header_check file:

      /^from:.*root@/ REJECT [SN046] 
      /^from:.*anonymous@*/ REJECT [SN047]
      /^from:.*@ajufe.org.br/ OK
      /^from:/ HOLD

      the TABLE SEARCH ORDER documentation says:
      When a pattern is found that matches the input line, the corresponding action is executed and then the next input line is inspected.

      So, if i have some rejects and OKs before hold, it will not hold right?

      postfix log file:
      Dec  7 16:57:03 srvchunk01 postfix/smtpd[35383]: 2E1DB2111FE: client=li389-50.members.linode.com[106.187.46.50]
      Dec  7 16:57:03 srvchunk01 postfix/cleanup[42501]: 2E1DB2111FE: warning: header Subject: fw:Financiamento aprovado Volkswagen Leasing. from li389-50.members.linode.com[106.187.46.50]; from=<root@...> to=<carlos.brandao@...> proto=ESMTP helo=<li389-50.members.linode.com>
      Dec  7 16:57:03 srvchunk01 postfix/cleanup[42501]: 2E1DB2111FE: hold: header From: sac@... from li389-50.members.linode.com[106.187.46.50]; from=<root@...> to=<xxx@...> proto=ESMTP helo=<li389-50.members.linode.com>
      Dec  7 16:57:03 srvchunk01 postfix/cleanup[42501]: 2E1DB2111FE: message-id=<20111207181748.253F71073E83@...>
      
      att,
      Marcello Coutinho

      On Wed, Dec 7, 2011 at 4:52 PM, Ralf Hildebrandt <Ralf.Hildebrandt@...> wrote:
      * Marcello Coutinho <marcellocoutinho@...>:
      > Hi all,
      >
      > I'm new to this list so forgive me if it was already posted here.
      >
      > I'm unsing pcre to filter header_checks, but not all rules are working
      >
      > /^from:.*root@/ REJECT [SN046] is not working

      Define "not working". What kind of mail should it block? Show an
      example.

      > log with masked recipients:
      > Search Results*Date**From**to**Delay**Status*Dec 7 01:13:31
      > root@...@...5.1sentDec 7 01:09:12root@...
      > xxx.yyy@...5.1sentDec 7 01:07:41root@...@...5sent

      This is not a log from postfix.

    • Show all 6 messages in this topic