MailScanner delivering System Filtered messages?

Discuss our MailScanner install script and MailScanner itself
Post Reply
Serversphere
Junior Member
Posts: 71
Joined: 10 Dec 2006, 14:09
Location: New Jersey, USA
Contact:

MailScanner delivering System Filtered messages?

Post by Serversphere »

I want to set up some rules in antivirus.exim for some targeted spam that is too large for MailScanner. When the rule triggers, I do get a log entry saying the message was cancelled. Then it just gets delivered anyway. I am wondering if it is because MS has a deliver statement in MS settings for non-spam actions?

Here is a sample of my antivirus rules:

Code: Select all

if $header_subject contains "keyword 1" or
   $header_subject contains "keyword 2"
then
  fail
  logwrite "$tod_log $message_id rejected: spam filter blocked"
  seen finish
endif
Sarah
Moderator
Posts: 934
Joined: 09 Dec 2006, 22:49

Post by Sarah »

I'm afraid I can't really help you with why your exim filter isn't working. You might want to try exim.org for help in implementing filters. The exim filters are applied after processing by MailScanner. I ran a quick test of your filter on one of our servers, and the mail was rejected and a failure notice was sent. The original mail was not delivered to the user's inbox.
Serversphere
Junior Member
Posts: 71
Joined: 10 Dec 2006, 14:09
Location: New Jersey, USA
Contact:

Post by Serversphere »

Aha! You DID help Sarah. :)

Since the filter is processed AFTER MailScanner I now know I was wrong. I thought the filter came first, and was looking to MailWatch to tell me if the mail was being delivered. But now I see that MS is processing it, storing it and logging it to mailwatch; THEN the filter does in fact discard it. Even though it shows up in mailwatch it does not show up in the user's mailbox. So it was my testing process that was flawed. Whoops!

Thanks! ;)
Post Reply