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

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

Reply via email to