The Qmail-Scanner FAQ states:


If you explicitly want to scan some/all local SMTP clients email too, then set QS_SPAMASSASSIN="on" within the tcpserver rules file.

I actually had the opposite need, wanting to tell qmail-scanner to skip spamassassin for some remote hosts. I implemented this as setting QS_SPAMASSASSIN="off". It would be nice if the following (or some more intelligent version of same) were included in the qmail-scanner distribution. Any thoughts or comments also appreciated.


- Jason Parsons


*** ./qmail-scanner-queue.pl Sun May 11 22:35:48 2003
--- /var/qmail/bin/qmail-scanner-queue.pl Sun Jun 1 16:51:02 2003
***************
*** 1660,1665 ****
--- 1660,1666 ----
#Only run SA if mail is from a "remote" SMTP client, or QS_SPAMASSASSIN
#is defined via tcpserver...
return if (defined($ENV{'RELAYCLIENT'}) && !defined($ENV{'QS_SPAMASSASSIN'}));
+ return if (defined($ENV{'QS_SPAMASSASSIN'}) && $ENV{'QS_SPAMASSASSIN'} eq "off");
#SpamAssassin client scanner
my ($spamassassin_found,$spamassassin_status);
my ($start_spamassassin_time)=[gettimeofday];


--

Jason Parsons                   Saffron Solutions, LLC
<http://www.saffron.net>  System, Network, and Security Consulting



-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general

Reply via email to