A couple of filtering problems

Top Page
Delete this message
Reply to this message
Author: Tim Cutts
Date:  
To: exim-users
Subject: A couple of filtering problems

I am having some difficulty in setting up a global filter file for
freezing suspected spam; there are two separate problems that I have
encountered so far:

1) I am trying to restrict the checking to mail messages sent from
machines in .com and .net, so I tried the following:

if $sender_host_name: matches "\\.(com|net)\\$"
...

but this never seems to match anything. Have I made some stupid error
here? It doesn't match anything if I remove the \\. or the \\$, either.
If I remove both of those, (com|net) does match plenty of things, but
obviously it catches a lot of inappropriate hostnames as well. Can
someone point out to my addled brain what I'm doing wrong?

2) Even though I have freeze_tell_mailmaster set to true, messages frozen
by the global filter do not trigger any notification. Am I going to have
to make the filter generate the notification itself?

Thanks for any and all advice.

Tim.

-- 
--------------------------------------------------------------------------
T J R Cutts                                           Tel: +44 1223 333596
Dept. of Biochemistry, Tennis Court Rd.,              Fax: +44 1223 766002
Cambridge, CB2 1QW, UK