diff options
Diffstat (limited to 'mail/qmail-scanner1/files/patch-qmail-scanner-queue.template')
-rw-r--r-- | mail/qmail-scanner1/files/patch-qmail-scanner-queue.template | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/mail/qmail-scanner1/files/patch-qmail-scanner-queue.template b/mail/qmail-scanner1/files/patch-qmail-scanner-queue.template new file mode 100644 index 000000000000..90136d5f21a2 --- /dev/null +++ b/mail/qmail-scanner1/files/patch-qmail-scanner-queue.template @@ -0,0 +1,51 @@ +--- qmail-scanner-queue.template.orig Thu Oct 16 02:05:10 2003 ++++ qmail-scanner-queue.template Thu Dec 11 14:28:48 2003 +@@ -85,11 +85,17 @@ $qsmsgid=tolower("$V_HEADER-message-id") + + + #From: line information used when making reports +-my $V_FROM='USERNAME@MAILDOMAIN'; +-my $V_FROMNAME='System Anti-Virus Administrator'; ++my $V_FROM='ADMIN_MAIL'; ++my $V_FROMNAME='ADMIN_REALNAME'; + + # Address carbon-copied on any virus reports +-my $QUARANTINE_CC='USERNAME@MAILDOMAIN'; ++my $QUARANTINE_CC='ADMIN_MAIL'; ++ ++# Address to where spams are redirected ++my $SPAMSADMIN='SPAMS_REDIRECT'; ++ ++# Suffix to alter recipients with (when spam detected) ++my $SPAMSSUFFIX='SPAMS_TOSUFFIX'; + + #Array of local domains that are checked against for + #deciding whether or not to send recipient alerts to +@@ -294,6 +300,7 @@ if (! -d "$scandir/tmp") { + } + + my $quarantine_event=0; ++my $spam_event=0; + + my $file_id = &uniq_id(); + +@@ -415,7 +422,18 @@ eval { + &email_quarantine_report; + } else { + &qmail_parent_check; +- &qmail_requeue($env_returnpath,$env_recips,"$scandir/$wmaildir/new/$file_id"); ++ if ($spam_event) { ++ if ($SPAMSADMIN) { ++ &qmail_requeue($env_returnpath,"T$SPAMSADMIN\0\0","$scandir/$wmaildir/new/$file_id"); ++ } elsif ($SPAMSSUFFIX) { ++ $env_recips =~ s/\@/\-$SPAMSSUFFIX\@/g; ++ &qmail_requeue($env_returnpath,$env_recips,"$scandir/$wmaildir/new/$file_id"); ++ } else { ++ &qmail_requeue($env_returnpath,$env_recips,"$scandir/$wmaildir/new/$file_id"); ++ } ++ } else { ++ &qmail_requeue($env_returnpath,$env_recips,"$scandir/$wmaildir/new/$file_id"); ++ } + } + alarm 0; + }; |