|
From: | Patrick J. Walsh (mr_e) |
Subject: | Re: [Phpgroupware-developers] SPAM Assassin |
Date: | Tue, 30 Jul 2002 11:03:38 -0700 |
..mr_e # Configure these REFORMAIL="/usr/lib/courier/bin/reformail" SPAMASSASSIN="/usr/bin/spamassassin" SED="/bin/sed" SPAMDEST="Maildir/.Spam" # Run SpamAssassin xfilter "$SPAMASSASSIN -P -w address@hidden" # Not spam, but potential virus -- flag as spam anyway # It's tempting to just delete mail like this. if (/^[:space:]+filename=.*\.vbs\"$/:b || /^Content.*name=.*\.vbs\"/:b ||\ /^[:space:]+filename=.*\.vbe\"$/:b || /^Content.*name=.*\.vbe\"/:b ||\ /^[:space:]+filename=.*\.nsc\"$/:b || /^Content.*name=.*\.nsc\"/:b ||\ /^[:space:]+filename=.*\.src\"$/:b || /^Content.*name=.*\.src\"/:b ||\ /^[:space:]+filename=.*\.exe\"$/:b || /^Content.*name=.*\.exe\"/:b ||\ /^[:space:]+filename=.*\.com\"$/:b || /^Content.*name=.*\.com\"/:b ||\ /^Subject: I send you this file in order to have your advice/:h || \ /^Subject:.*Outlook Express Update/:h || \ /^[:space:]+filename=.*\.bat\"$/:b || /^Content.*name=.*\.bat\"/:b ) { xfilter "$REFORMAIL -A'X-Antispam: Potential Virus'" SUBJ="${SUBJ}CAUTION: POTENTIAL VIRUS ATTACHED:" } # Take potential spam and strip out the html if ( /^X-Antispam/ ) {xfilter "$SED -e 's/^[Ss][Uu][Bb][Jj][Ee][Cc][Tt]: /Subject: SPAM:$SUBJ /'" xfilter "$SED -e 's/^[Cc]ontent-[Tt]ype: text\/html;/Content-Type: text\/plain;/g'"
} if ( /^X-Spam-Status: Yes/ ) { /^X-Spam-Status: Yes, hits=![:digit:]+\.?[:digit:]*/ if ($MATCH2>9.5) { to "| cat - >/dev/null" # Alternatively, put in the trash folder #to "Maildir/.Trash" } else { to "$SPAMDEST" } } --On Tuesday, July 30, 2002 10:46 AM -0700, --Brook Humphrey <address@hidden> wrote:
On Tuesday 30 July 2002 10:41, Patrick J. Walsh (mr_e) wrote:SpamAssassin doesn't necessarily put stuff in your mbox. If, for example, you call SpamAssassin from Procmail, your mail will be delivered wherever you've configured Procmail to put it. I use Maildrop and Courier IMAP and Maildrop by default would put it in the default Maildir, but I filter for the SpamAssassin results and delete anything with a score of ten or greater and throw everything else into a Spam Maildir. You could set this up in a site wide script pretty easily. It's a great program, btw. Definitely worth installing. ..mr_eWhould you mind posting your maildrop filter? -- -~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~ `'~- Brook Humphrey Mobile PC Medic, 420 1st, Cheney, WA 99004, 509-235-9107 http://www.webmedic.net, address@hidden, address@hidden Holiness unto the Lord -~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~ `'~- _______________________________________________ Phpgroupware-developers mailing list address@hidden http://mail.gnu.org/mailman/listinfo/phpgroupware-developers
[Prev in Thread] | Current Thread | [Next in Thread] |