This all seems to work just fine. I don't like modifying /etc/xinetd.d/submission_psa though, because I'm afraid that Plesk will one day overwrite that file, so I cooked up a patch to qmail-scanner which checks for the SUBMISSION=1 environment variable set by /etc/xinetd.d/submission_psa and then treats these e-mails as sent by a relay client (which is in fact the case) by setting QS_RELAYCLIENT=1. This way these e-mails are not scanned and get 'RC:1' in their header, which indicates an e-mail is sent by a relay client.
The patch is only a one line change:
Code:
# diff -u /usr/share/qmail-scanner/qmail-scanner-queue.template.orig /usr/share/qmail-scanner/qmail-scanner-queue.template
--- /usr/share/qmail-scanner/qmail-scanner-queue.template.orig 2011-03-27 12:06:26.000000000 +0200
+++ /usr/share/qmail-scanner/qmail-scanner-queue.template 2011-03-27 12:03:37.000000000 +0200
@@ -634,6 +634,7 @@
#it later without changing how Qmail actually interprets
#RELAYCLIENT
$QS_RELAYCLIENT=1 if (defined($ENV{'RELAYCLIENT'}));
+$QS_RELAYCLIENT=1 if (defined($ENV{'SUBMISSION'}));
if ($ENV{'TCPREMOTEIP'}) {
$remote_smtp_ip=$ENV{'TCPREMOTEIP'};
Run
qmail-scanner-reconfigure afterwards to apply the modified template.
What do you guys think? Do you see any problems with this patch? Scott, would you apply this patch to the qmail-scanner package in atomic?