From: Moshe Gurvich [mailto:[EMAIL PROTECTED]
>
> I have virtual users using MySQL, so spamc/spamd won't work, need to
> use spamassassin executable to read .spamassassin in virtual users
> homes.
Actually, you can use spamc/spamd with virtual users, you just need to
do a bit of configuration.
My user's home directories are in /home/mailuser/(domain)/(user).
Modify your startup files to start spamd like this:
/usr/local/bin/spamd -d -r /var/run/spamd.pid -u mailuser
-x --virtual-config-dir='/home/mailuser/%d/%l/spamassassin'
(all on one line)
Adjust the userid and directory settings to match your configuration.
%d is the domain section of the email address
%l is the local (username) section of the email address
Call spamc from maildroprc (or .mailfilter) like this:
import RECIPIENT
LCRECIPIENT=tolower($RECIPIENT)
xfilter "/usr/local/bin/spamc -u $LCRECIPIENT"
You need to explicitly lowercase the recipient address so that
spamassassin can find the right directory. If you have the
locallowercase file, Courier will be case-insensitive when it accepts
the mail, but the recipient address will still have the uppercase
characters in it and the filesystem IS case-sensitive.
If, for some reason, your install is case-sensitive for email addresses,
leave off the lowercasing step here and just pass $RECIPIENT to spamc.
The user_prefs files are stored in:
/home/mailuser/(domain)/(user)/spamassassin/user_prefs
Per-user bayes databases are stored in:
/home/mailuser/(domain)/(user)/spamassassin/.spamassassin/
Bowie
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users