|
1. In order for this plugin to
run, Sendmail has to be libmilter enabled. If there
is already Sendmail installed, check if Sendmail is
libmilter enabled or not as follows.
For Sendmail 8.10.x, 8.11.x, 8.12.x:
$ /usr/sbin/sendmail -d0.13 -bv root | grep MILTER.
For Sendmail 8.12.x:
$ /usr/sbin/sendmail -d0.1 -bv root | grep MILTER.
You should see an output like:
Compiled with: DNSMAP LOG MATCHGECOS
MILTER MIME7TO8 MIME8TO7
If you do not see MILTER, then Sendmail is not libmilter
enabled.
If Sendmail is not libmilter enabled then follow
the Sendmail
Setup instructions then continue to step 2 otherwise
continue to step 2 now.
Note: On FreeBSD 4.8, Sendmail is libmilter enabled
out of the box. Also, Sendmail shipped on SuSE 7.2
and later, and RedHat Linux 9 has the libmilter
enabled.
2. Stop Sendmail
a) Stop Sendmail. One of the following will work:
$ /etc/rc.d/init.d/sendmail stop
$ /etc/init.d/sendmail stop
$ kill <sendmail-process>
b) Backup your /etc/mail/sendmail.cf
and /etc/mail/sendmail.mc.
c) Open /etc/mail/sendmail.mc and
add the following line to the end:
INPUT_MAIL_FILTER(`spamfilter', `S=local:/etc/spamfilter/spamfilter.sock,
T=C:15m;S:4m;R:4m;E:10m')
Note: Socket file location and name MUST be exactly
the same as in spamcatcher.conf file that comes with
the installation. It may be different for different
platforms.
The line is a single line and the single apostrophes
must be forward (`) and then backward (').
The above settings will skip filtering if spamfilter
is not available. To change this behavior or to change
the timeout values, edit
the line.
d) Do the following:
$ m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
e) Restart Sendmail:
$ /etc/rc.d/init.d/sendmail start, or
$ /etc/init.d/sendmail start, or
$ sendmail -bD
Now Sendmail knows about the Mailshell Sendmail plugin.
If there are problems with Sendmail start process,
make sure there is a user smmsp and required permissions
are set (refer to Sendmail
Setup, steps: 1, 3, 4, 9 and 10).
3. Install the plugin:
a) Become root
b) If you have not already, download
the Sendmail plugin.
c) Install Sendmail plugin by doing:
$ gunzip sendmail-plugin-xxxxx.tar.gz
$ tar -xvf sendmail-plugin-xxxxx.tar
$ cd to sendmail-plugin-xxxxx directory
$ ./sendmail-plugin-install
This script will install the spamfilter
executable to /usr/bin directory, will create /etc/spamfilter
directory with required permissions, start/stop
script and rules. This script works differently
for different platforms. If any of the commands
fail in the script correct them by hand.
Refer to Sendmail
Configuration for the required configurations.
Mailshell Mail Server Plugins
To create and manage per user Spam folders,
Mailshell currently offers plugins for the following mail
servers:
|