You should be able to do this in the /etc/majordomo.cf file. Here are
the default filters;
# taboo headers to catch
#
$global_taboo_headers = <<'END';
/^subject: ndn: /i
/^subject:\s*RCPT:/i
/^subject:\s*Delivery Confirmation\b/i
/^subject:\s*NON-DELIVERY of:/i
/^subject:\s*Undeliverable Message\b/i
/^subject:\s*Receipt Confirmation\b/i
/^subject:\s*Failed mail\b/i
/^subject:\s*Returned mail\b/i
/^subject:\s*unable to deliver mail\b/i
/^subject:\s.*\baway from my mail\b/i
/^subject:\s*Autoreply/i
END
Because of the way I add/use headers in my own lists, I add these to
the global taboo list too;
/^X-ApprovalRequired:/i
/^X-Mailing-?List:/i
/^X-BeenThere:/i
/^X-Loop:/i
/^Return-Path: <mytestaddress\@netscape\.net>/i
To do what you are asking about spamassassin, something like these
might be helpful;
/^X-Spam-Status: Yes/i
/^X-Spam-Flag: YES/i
/^X-Spam-Level: \*\*\*\*\*\*/i
You might replace the star above with whatever character is being used
to "score" your spam. In the case of non-wildcard characters, you do
not need the backslash escapes either. Lastly, I only put 6 stars on
the line. My own filters consider mail to be spam at 4.5, YMMV. Just
make sure to do all your additions to the global taboo headers before
the "END" line, and do not leave any lines blank between
$global_taboo_headers = <<'END';
and
END
Dan Liston
Ed Kasky wrote:
> I just sort of figured you were using sendmail - not sure how you would
> go about doing this with Exim...
>
> Ed
> ~~~~~~~~~
> Randomly Generated Quote (16 of 474):
> "Always bear in mind that your own resolution to success is more
> important than any other one thing." --Abraham Lincoln
>
> At 07:26 AM Wednesday, 3/9/2005, you wrote -=>
>
>> Ed:
>>
>> Not to sound dumb, but I'm not a procmail guru at all...where and how
>> would I implement this? FWIW I'm running Exim 3.36m SpamAssAssin 3.0.2
>> and MD 1.94.5
>>
>> George
>>
>> >On Wed, 9 Mar 2005 06:05:21 -0800 (PST), you wrote:
>>
>> >I suggest you use a procmail recipe to move the mail to a temporary
>> folder
>> >and then monitor that m ail folder to ensure that it is spam.
>> It is
>> >never good practice to automatically delete tagged mail until you
>> >verify it as no spam software is 100% accurate. Here's one that works
>> >for me. Replace /path/to/spam/folder with the correct path for your
>> >setup.
>> >
>> >:0:
>> >* ^X-Spam-Status: Yes
>> >/path/to/spam/folder
>> >
>> >On Wed, 9 Mar 2005, George R.Kasica wrote:
>> >
>> >> Hello:
>> >>
>> >> I'm running a spam checker here (SpamAssassin 3.0.2) along with
>> >> majordomo 1.94.5 and am wondering how I can get the major do disallow
>> >> postings that are flagged as spam when they arrive but before they hit
>> >> majordomo. I'm guessing its through Taboo Headers but I don't know
>> >> what the regex should look like as I've never fiddled with those
>> >> settings....Here are the things it will do to a subject and added
>> >> headers that might work, I'm thinking subject and X-Spam-Flag: YES are
>> >> good choices, but I don't know what the exclusions should look like.
>> >>
>> >> Can someone help out with that syntax from the below sample?
>> >>
>> >> Subject: ***** SPAM ***** JFDEMT, there's a message in your box!
>> >> X-Spam-Flag: YES
References:
|
|