qmail-scanner MOD PSA-SPAMASSASSIN
Posted: Fri Jul 18, 2008 2:04 pm
Hi folks !
If you want to use ART's qmail-scanner, but you need psa-spamassassin, so your users can set their spam-prefs in Plesk, you will have to MOD qmail-scanner. Note that this MOD disables all SA_ settings in /etc/qmail-scanner.ini. The default config for spamassassin is /etc/mail/spamassassin/local.cf
Before you change something you should make a backup. Run:
cp /usr/share/qmail-scanner/qmail-scanner-queue.template /usr/share/qmail-scanner/qmail-scanner-queue.template.org
Be sure to have ART's spamassassin + psa-spamassassin installed
Now we have to take out the spamassassin flag of the configure, else it would double-check emails.
Run:
/etc/init.d/psa-spamassassin stop (Centos5/RH)
/etc/init.d/spamassassin restart
Now Edit:
/usr/share/qmail-scanner/qmail-scanner-queue.template
Just under:
##############################################
# st: SETTINGS PER DOMAIN
##############################################
CHANGE:
my @scanners_installed=(SCANNER_ARRAY"perlscan_scanner");
my @scanners_default=(SCANNER_ARRAY"perlscan_scanner");
TO
my @scanners_installed=("clamdscan_scanner","perlscan_scanner");
my @scanners_default=("clamdscan_scanner","perlscan_scanner");
Then run: qmail-scanner-reconfigure
Run:
/etc/init.d/spamassassin stop (Centos5/RH)
/etc/init.d/psa-spamassassin restart
Now send an email with the test-spam-content to a local mailbox:
XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X
Check the email headers that it was'nt checked twice.
If everything works: your lucky, if not you can restore the back-upped file and rerun qmail-scanner-reconfigure. In worst cases just uninstall qmail-scanner and reinstall. (yum remove qmail-scanner, yum install qmail-scanner).
Also you could do a virus test, example:
http://www.mtgsy.net/dns/virustest.php
Keep in mind that every update of qmail-scanner overwrites this MOD, so you'll have to redo the MOD. To prevent unwanted updates set this parameter in your /etc/yum.conf: exclude=qmail-scanner
...and disable it if you want to update.
Have fun !
Bart
If you want to use ART's qmail-scanner, but you need psa-spamassassin, so your users can set their spam-prefs in Plesk, you will have to MOD qmail-scanner. Note that this MOD disables all SA_ settings in /etc/qmail-scanner.ini. The default config for spamassassin is /etc/mail/spamassassin/local.cf
Before you change something you should make a backup. Run:
cp /usr/share/qmail-scanner/qmail-scanner-queue.template /usr/share/qmail-scanner/qmail-scanner-queue.template.org
Be sure to have ART's spamassassin + psa-spamassassin installed
Now we have to take out the spamassassin flag of the configure, else it would double-check emails.
Run:
/etc/init.d/psa-spamassassin stop (Centos5/RH)
/etc/init.d/spamassassin restart
Now Edit:
/usr/share/qmail-scanner/qmail-scanner-queue.template
Just under:
##############################################
# st: SETTINGS PER DOMAIN
##############################################
CHANGE:
my @scanners_installed=(SCANNER_ARRAY"perlscan_scanner");
my @scanners_default=(SCANNER_ARRAY"perlscan_scanner");
TO
my @scanners_installed=("clamdscan_scanner","perlscan_scanner");
my @scanners_default=("clamdscan_scanner","perlscan_scanner");
Then run: qmail-scanner-reconfigure
Run:
/etc/init.d/spamassassin stop (Centos5/RH)
/etc/init.d/psa-spamassassin restart
Now send an email with the test-spam-content to a local mailbox:
XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X
Check the email headers that it was'nt checked twice.
If everything works: your lucky, if not you can restore the back-upped file and rerun qmail-scanner-reconfigure. In worst cases just uninstall qmail-scanner and reinstall. (yum remove qmail-scanner, yum install qmail-scanner).
Also you could do a virus test, example:
http://www.mtgsy.net/dns/virustest.php
Keep in mind that every update of qmail-scanner overwrites this MOD, so you'll have to redo the MOD. To prevent unwanted updates set this parameter in your /etc/yum.conf: exclude=qmail-scanner
...and disable it if you want to update.
Have fun !
Bart