Now would probably be a good time to start to setup Amavisd's home directory. As you recall, we will be running Amavisd in a chroot jail. Thus, Amavisd's home directory must be a small subset of the filesystem containing all the necessary files for Amavisd to run.
One of the first things it will need is a .spamassassin configuration directory and it's own user_prefs file (for tweaking of the SpamAssassin settings).
So let's move into it's home directory at /var/lib/amavis, and create these files: # cd /var/lib/amavis # mkdir .spamassassin # touch .spamassassin/user_prefs # chown -R amavis.amavis .spamassassin
/etc/spamassassin/local.cf
Edit the SpamAssassin config file. Recall that by default this is /etc/mail/spamassassin/local.cf, but for Debian and Red Hat, this goes into /etc/spamassassin/local.cf. Recall our configuration file from before, and configure accordingly:
Now would probably be a good time to start to setup Amavisd's home directory. As you recall, we will be running Amavisd in a chroot jail. Thus, Amavisd's home directory must be a small subset of the filesystem containing all the necessary files for Amavisd to run.
One of the first things it will need is a .spamassassin configuration directory and it's own user_prefs file (for tweaking of the SpamAssassin settings).
So let's move into it's home directory at /var/lib/amavis, and create these files: