In the process of integrating qmail-scanner into our site, I found the need
to turn off scanning when mail is sent to a particular address (and only
that address).

Specifically, we have an address to which our users can forward incorrectly
categorized mail to train the Bayesian filters of SpamAssassin. Mail to that
address shouldn't be scanned, because if it is found as spam, the sender may
be treated negatively by the auto-learn AWL/BAYES functionality in SA.

I added a few lines to qmail-scanner-queue.template to achieve that
functionality.


$ diff -u qmail-scanner-queue.template.old qmail-scanner-queue.template.new
--- qmail-scanner-queue.template.old    Tue Oct 14 11:23:50 2003
+++ qmail-scanner-queue.template.new    Tue Oct 14 11:23:04 2003
@@ -161,6 +161,9 @@
 #What locale is used on this system
 #$sys_locale="LOCALE";

+#noscanto
+my $noscanto = '[EMAIL PROTECTED]';
+
 #Full paths to binaries used within this script follow - small performance
 #improvement :-)

@@ -402,7 +405,11 @@

   #Now, start the scanners!
   #if (!$quarantine_event) {
-    &init_scanners;
+       if($noscanto && $one_recip && $noscanto =~ /$one_recip/) {
+               &debug("noscanto($noscanto) contains one_recip($one_recip),
skipping scanners");
+       } else {
+               &init_scanners;
+       }
   #}
   if ($quarantine_event) {
     &debug("unsetting TCPREMOTEIP env var");




Regards,

Drew Degentesh
Senior Engineer, Technology Manager
Daedalus Excel

[EMAIL PROTECTED]
http://www.daed.com

4914 Baum Boulevard
Pittsburgh, PA 15213
voice 412.687.7000 x15
fax 412.687.7500



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general

Reply via email to