[Mimedefang] Frustration...

Aleksandar Milivojevic amilivojevic at pbl.ca
Thu Nov 4 14:47:11 EST 2004


Lisa Casey wrote:
> and Spamassassin adds a  SpamAssassinReport.txt as an attachment to each
> spam mail. But I've been reading websites for two days now and can't figure
> out how to do anything else with this. Basically I don't want spam coming
> into my users mailboxes, they don't want it. I understand there will be some
> amount of false positives, but I just want to drop (or bounce or whatever)
> the spam before it reaches the mailboxes.

Actually, SpamAssassinReport.txt is added by MIMEDefang.

If you want to drop spam, instead of flagging email as being spam, than 
you'll need to change your filter_end to look something like this:

    if ($Features{"SpamAssassin"}) {
       if (-s "./INPUTMSG" < 100*1024) {
          my($hits, $req, $names, $report) = spam_assassin_check();
          if ($hits >= $req) {
             return action_bounce("Suspected spam - blocked");
           }
       }
    }

> I'ld also like to drop, bounce, whatever mail that has certain words in the
> subject, such as rolex, penis, viagra, etc.

Insert this in filter_begin:

    $badwords = "(rolex|penis|viagra|etc)";
    if ($Subject =~ m/$badwords/i) {
        return action_bounce("F-words detected - blocked");
    }

> Also, I'm not sure how I'm supposed to feed it spam. I have Sendmail/Qpopper
> and most of my users pick up their mail using Outlook Express. I understand
> I can't just forward spam to a spam mailbox and run sa-learn on that as the
> forwarding will not get the original headers.

Not sure if I understood what you wanted here.

-- 
Aleksandar Milivojevic <amilivojevic at pbl.ca>    Pollard Banknote Limited
Systems Administrator                           1499 Buffalo Place
Tel: (204) 474-2323 ext 276                     Winnipeg, MB  R3T 1L7



More information about the MIMEDefang mailing list