On Fri, 14 Dec 2001 17:24:51 -0500
Pierre Fortin <[EMAIL PROTECTED]> studiouisly spake these words to ponder:

> Mark Weaver wrote:
> > 
> > thank you for the response and the info. below is an example of one of the 
>header_check rules in my header_check postfix file. below that is what posfix is 
>writing in /var/log/syslog. what is it telling me?
> > 
> > /^Received: from system.ssu.ac.kr/ REJECT
> > 
> > Dec 12 13:29:51 mdw1982 postfix/cleanup[17410]: warning: 
>/etc/postfix/hdr_chk_spamcontrol, line 93: unknown regexp option 'R'
> > Dec 12 13:29:51 mdw1982 postfix/cleanup[17410]: warning: 
>/etc/postfix/hdr_chk_spamcontrol, line 93: unknown regexp option 'E'
> > Dec 12 13:29:51 mdw1982 postfix/cleanup[17410]: warning: 
>/etc/postfix/hdr_chk_spamcontrol, line 93: unknown regexp option 'J'
> > Dec 12 13:29:51 mdw1982 postfix/cleanup[17410]: warning: 
>/etc/postfix/hdr_chk_spamcontrol, line 93: unknown regexp option 'E'
> > Dec 12 13:29:51 mdw1982 postfix/cleanup[17410]: warning: 
>/etc/postfix/hdr_chk_spamcontrol, line 93: unknown regexp option 'C'
> > Dec 12 13:29:51 mdw1982 postfix/cleanup[17410]: warning: 
>/etc/postfix/hdr_chk_spamcontrol, line 93: unknown regexp option 'T'
> 
> Have you got this in your main.cf?:
> header_checks = regexp:/etc/postfix/header_checks
>                 ^^^^^^
> If you are using "pcre"; I haven't tried that variation...
> 
> The other thing I do is to escape all special characters, so the above line
> would read:
> 
>   /^Received: from system\.ssu\.ac\.kr/ REJECT
> 
> AFAIK, you can also code it:
> 
>   /^*system\.ssu\.ac\.kr*$/m REJECT
> 
> to be expecially brutal...  :^)
> 
> Then, when I make any changes to my postfix configs, I run this [brute-force]
> script (not required for header_checks; but it's now a habit) to update the *.db
> files:
> 
>    #!/bin/sh
>    # ONLY do "hash" files
>    postmap /etc/postfix/access
>    postmap /etc/postfix/virtual
>    postmap /etc/postfix/access_client
>    newaliases
>    postfix reload
> 
> HTH,
> Pierre
> 
> 

Pierre,

Your examples rock! I got my first taste of success with the header_check filters when 
I examined the mail logs this morning. I had a hit and it rejected the spam message. 
I'm unclear about the "brute force" thing though. what's that all about?
-- 
daRcmaTTeR

Registered Linux User 182496
Mandrake 8.1
---------------------------------------------------------------------
  6:05pm  up 4 days, 20:00,  2 users,  load average: 0.66, 0.75, 0.54

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to