At 17:28 25/09/2003 -0500, Justin Shore wrote:
Howdy all.  My current installation involves calling SA from MIMEDefang
which in turn is called from Sendmail.  Enough background info.

I'm currently calling spamassassin from a procmail recipe on a spamtrap
account.  The recipe does various bits of munging including sed calls to
strip sensitive spamtrap info as well as calling spamassassin -d.  The
recipe also reports spam via 'pyzor report', reports spam via
'spammassassin -r.'  Finally after all the various munging and reporting
is done it forwards a copy to Bob the NANAS Bot and to the FTC.

I'm seeing an enormous amount of CPU time being spent on the two
spamassassin calls (-d and -r) whenever I get hit with a large spam run
(say for example right this very second).  The CPU load hits 15 quickly
and frequently reaches far higher than that.  I'm forcing Sendmail to
queue at 15 and temp fail at something higher that I can't recall off the
top of my head.

Is there a less expensive way to strip the SA report and message changes
from messages?  I thought about writing the SA report munging up in Sed
but never implemented it.  If someone wants to see my procmailrc I'd be
glad to send them the sanitized version.  The only problem with it at
present is bounces.  I haven't been able to figure out how to filter out
incoming bounces so that they aren't forwarded on.  FROM_DAEMON and
FROM_MAILER just don't seem to be working.

If you're using procmail anyway, why not use FormMail to strip SpamAssassin headers ? Apart from the Subject if you have subject rewriting enabled, SpamAssasin doesn't change any headers, it just adds specific new headers. I'd bet anything that FormMail would be lower overhead at stripping headers than SpamAssassin's markup removing mode. (C vs Perl)


That only leaves the header change to figure out....(perhaps sed, or you could use procmails $MATCH builtin to extract the subject minus the spamassassin change, and use the same invocation of formmail thats stripping other headers to "replace" the Subject header with the new one...

Regards,
Simon



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to