Prerequisites
What options we will have?
Prerequisites
You have to have Clam Antivirus and Spamassassin installed on your machine to proceed with simscan installation. This is because we are going to have spam filtering and antivirus at server end. You have to refer to Spamassassin installation page and Clam Antivirus installation page for installation steps. It would be useless to have Spamassassin and Clam Antivirus without qmail-ldap particularly in our case :-).
It would be worth to note that simscan requires QMAILQUEUE patch to work with qmail. We have this patch enabled through the compile time directive -DALTQUEUE before compiling qmail-ldap in section Editing Makefile. This directive enables alternate queue selection via environment variable QMAILQUEUE which in fact is a QMAILQUEUE patch.
Back to contentsWhat options we are going to have?
- We are going to have Clam AntiVirus processing.
- We need SpamAssassin Processing with simscan.
-
We are going to have Per Domain spam checking. We DO NOT want Per User scanning for spam option. The reason is if there is a single recipient in the email then simscan adds the -u user@domain option to spamc. This tells spamassassin to lok up the users preferences to over ride the system wide spamassassin preferences.
If there are more than one recipient and the --enable-spamc-user option is set, then simscan skips -u user@domain option to spamc. Means the mail goes unscanned. Per Domain scanning requires rules to be defined per domain and create cdb file from this rules file.
- We want to ban some types of files as attachements. For this we will have to install ripmime. for downloading and installing refer to section ripmime installation.
There are several options you might want to look at, can be read from README file that comes bundled with the source code.
Per Domain rules need to be specified in a rules file at location /var/qmail/control/simcontrol. This file can be created using any text editor. Sample simcontrol file look as follows.
postmaster@donttrustme.com:clam=yes,spam=no,attach=.txt:.comdonttrustme.com:clam=yes,spam=yes,attach=.exe
:clam=yes,spam=yes,trophie=no,spam_hits=17