On Wed, 12 Dec 2001 12:43:59 -0500
Pierre Fortin <[EMAIL PROTECTED]> frantically pecked out this message:::::

> Mark Weaver wrote:
> > 
> > Hi List,
> > 
> > I'm currently experiementing with header filtering with postfix and I was 
>wondering about something. the regex for doing this goes roughly something like this:
> > 
> >         "/^HEADER_NAME: stuff you don't want/" REJECT
> > 
> > now, i'm wondering, "can I use wildcard characters in these regex's?" something 
>like this:
> > 
> >         "/^Subject: %EVERYTHING% %FREE% %etc%/" REJECT
> > 
> > any thoughts on this?
> 
> As I understand it, it should be more like this:
> 
>           /^Subject: *EVERYTHING*FREE*etc*/ REJECT
>           /^From: *post*@*yahoo\.com$/ REJECT
> 
> The expresions are by default case INsensitive...  see
> /etc/postfix/sample-regexp.cf
> Since these are REs, I would expect these variations to work also:
> 
>           /*EVERYTHING*FREE*etc*/ REJECT
>           /*post*@*yahoo\.com/ REJECT
> 
> which should handle the text in any header (even
> "[EMAIL PROTECTED]") without the 'anchors' (^$).
> 
> See http://www.postfix.org/docs.html
> 
> Pierre
> 
> 

Pierre,

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'
-- 
daRcmaTTeR

Registered Linux User 182496
Mandrake 8.1
---------------------------------------------------------------------
  1:05pm  up 2 days, 15:00,  3 users,  load average: 0.63, 0.52, 0.47

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

Reply via email to