store | blogs | forums | twitter | facebook | wiki | mailing lists | downloads | support portal
Atomic Secure Linux
It is currently Fri May 24, 2013 7:47 pm

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic Share/Bookmark  [ 2 posts ] 
Author Message
 Post subject: qmail-scanner MOD PSA-SPAMASSASSIN
Unread postPosted: Fri Jul 18, 2008 2:04 pm 
Offline
Forum User
Forum User

Joined: Tue May 03, 2005 5:33 am
Posts: 14
Location: Belgium
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


Last edited by bartje3 on Sun Jul 20, 2008 10:30 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
Unread postPosted: Sat Jul 19, 2008 3:49 am 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Sat Aug 20, 2005 9:30 am
Posts: 2812
Location: The Netherlands
Another way to have qmail-scanner not use SpamAssassin is to make sure SpamAssassin isn't running when you run qmail-scanner-reconfigure. (Same goes for ClamAV and others by the way.)

_________________
Lemonbit Internet Dedicated Server Management


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic Share/Bookmark  [ 2 posts ] 

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group