Hello All,

I used to have my postfix filter policy which I edited the original and then added my own additional criteria.  My first question is how SHOULD I keep my additional filter rules without touching the original in case it gets updated again so I can maintain my "local" version per say?

My second question is based on how I should properly format this regular expression.
Before I could just say failregex = and then my below lines along with the orginal lines.

          reject: RCPT from (.*)\[<HOST>\]: 5[0-9][0-9] (.*) Recipient address rejected
          reject: RCPT from (.*)\[<HOST>\]: 5[0-9][0-9] (.*) Relay access denied
          reject: RCPT from (.*)\[<HOST>\]: 5[0-9][0-9] (.*) Helo command rejected
          reject: RCPT from (.*)\[<HOST>\]: 5[0-9][0-9] (.*) Sender address rejected
          reject: RCPT from (.*)\[<HOST>\]: 5[0-9][0-9] (.*) Policy action=550
          reject: RCPT from (.*)\[<HOST>\]: 5[0-9][0-9] (.*) blocked using
          reject: RCPT from (.*)\[<HOST>\]: 5[0-9][0-9] (.*) Name or service not known
          reject: RCPT from (.*)\[<HOST>\]: 5[0-9][0-9] (.*) address not listed for hostname
          reject: RCPT from (.*)\[<HOST>\]: 5[0-9][0-9] (.*) rejected: CIDR-BLOCK
          reject: RCPT from (.*)\[<HOST>\]: 5[0-9][0-9] (.*) rejected: need fully-qualified hostname
          reject: RCPT from (.*)\[<HOST>\]: 5[0-9][0-9] (.*) Failed attempted login
          reject: RCPT from (.*)\[<HOST>\]: 5[0-9][0-9] (.*) -ERR [AUTH] Password supplied
          reject: RCPT from (.*)\[<HOST>\]: 5[0-9][0-9] (.*) -ERR Unknown command
          reject: RCPT from (.*)\[<HOST>\]: 5[0-9][0-9] (.*) SASL PLAIN authentication failed

Now I see the new regular expressions say:

^%(__prefix_line)sNOQUEUE: reject: RCPT from \S+\[<HOST>\]: 554 5\.7\.1 .*$
            ^%(__prefix_line)sNOQUEUE: reject: RCPT from \S+\[<HOST>\]: 450 4\.7\.1 : Helo command rejected: Host not found; from=<> to=<> proto=ESMTP helo= *$
            ^%(__prefix_line)sNOQUEUE: reject: VRFY from \S+\[<HOST>\]: 550 5\.1\.1 .*$
            ^%(__prefix_line)simproper command pipelining after \S+ from [^[]*\[<HOST>\]:?$

Can I maintain the new and old expressions?



--
Thanks!
Joey