SpamAssassin plays well with CyrusImapd?. However, one major change from the normal email server setup is that cyrus maintains its own user database, and users with email accounts may very well not have home directories on the mail server. This means that personal preferences are still possible, but you have to use SpamAssassin's SQL backend to store them, rather than the usual user_prefs file in the user's home directory.
In practice, this is pretty easy. I followed the instructions at /usr/local/share/doc/p5-Mail-SpamAssassin/README.sql and had a working setup in about 20 minutes. You'll probably want to create a user (say, spamd), and alter /usr/local/etc/rc.d/spamd.sh to run spamd as that user. As an example, the "start" clause of my spamd.sh looks like:
start)
[ -x ${PREFIX}/bin/spamd ] && ${PREFIX}/bin/spamd -a -c -d -q -x -u spamd -r ${PIDFILE} && echo -n ' spamd'
;;
The '-q' and '-x' flags tell SpamAssassin to pull user preferences from the SQL backend instead of trying to load them from a file.
This seems to work very well. It's a bit of extra work, but when you're done, you have a pretty nice system at your command.
-- KirkStrauser - 01 Apr 2003
|