Just wanted to submitted a request for the next version of
qmail-scanner. I found this useful because I am on the spamassassin
mailing list, and didn't want to run the messages from that list through
spamassassin. I added the server IP address into /etc/tcp.smtp and set
SKIP_SA="yes" and qmail-scanner skipped the spam checks for this IP.
It could also be useful for testing purposes where you can set this ENV
variable in your qmail-smtpd run file and bypass spamd for testing.
Comments/questions?
--- qmail-scanner-queue-orig.pl Tue May 24 00:30:06 2005
+++ qmail-scanner-queue.pl Tue May 24 00:32:23 2005
@@ -3178,6 +3178,11 @@
&minidebug("SA: don't scan as RELAYCLIENT implies this was sent by
a local user");
return;
}
+ if (defined($ENV{'SKIP_SA'})) {
+ &debug("spamassassin: don't scan as SKIP_SA is set");
+ &minidebug("SA: don't scan as SKIP_SA is set");
+ return;
+ }
if ( $SA_SKIP_MD ne "0" && $returnpath eq "" && $headers{'from'} =~
/mailer-daemon|postmaster|bounce/i ) {
&debug("SA: skipping message from MAILER-DAEMON");
&minidebug("SA: skipping message from MAILER-DAEMON");
@@ -3266,6 +3271,11 @@
if (defined($ENV{'RELAYCLIENT'}) && !defined($ENV{'QS_SPAMASSASSIN'})) {
&debug("spamassassin: don't scan as RELAYCLIENT implies this was
sent by a local user");
&minidebug("SA: don't scan as RELAYCLIENT implies this was sent by
a local user");
+ return;
+ }
+ if (defined($ENV{'SKIP_SA'})) {
+ &debug("spamassassin: don't scan as SKIP_SA is set");
+ &minidebug("SA: don't scan as SKIP_SA is set");
return;
}
if ( $SA_SKIP_MD ne "0" && $returnpath eq "" && $headers{'from'} =~
/mailer-daemon|postmaster|bounce/i ) {
--
Roman Volf
Keystreams Internet Solutions
[EMAIL PROTECTED]
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Qmail-scanner-general mailing list
Qmail-scanner-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general