Wednesday, November 30, 2005

Work Around on QVCS SpamAssassin

This is my workaround... im not good in scripting though.....

First, i make a script that will first call Spamassassin before my
mailserver antivirus


*************************************************************************

#!/bin/sh

#file:/var/qmail/bin/spam-script

/usr/local/bin/spamc -f | /var/qmail/bin/qmail-scanner-queue.pl

**************************************************************************

_____________________________________________________________________________


to make it executable

#chmod +x /var/qmail/bin/spam-script*
______________________________________________________________________________

change the ownership to qscand

#chown qscand:qscand spam-script

______________________________________________________________________________

edit the /etc/hosts.allow

tcp-env: ALL: setenv QMAILQUEUE /var/qmail/bin/spam-script

_____________________________________________________________________________

Edit the */var/spool/qmailscan/quarantine-attachments.txt* and add

*SPAM.* Virus-Subject: Spam detected by SA

to quarantine the suspected SPAMS




*****************************************************************************

No comments: