A while ago I asked the list if there was a way to get Spamassassin
and XMAIL to work so that each individual user had their own specific
spamassassin preferences.

I worked over the weekend and was able to get it working, so I will share
my thoughts with the list in case anyone else can get use of this. I will 
assume
that you know the basics of compiling spamassassin and running XMAIL.

First of all I had to get the latest spamassassin 2.5.0, because it has an 
option for
"--virtual-config", that earlier versions of spamassassin did not have.

When you run spamd you can specify the directory of user preferences based
on domain (%d) and local name (%l), so for my server, my spamd command line 
options
are as follows:

/usr/bin/spamd -d -x 
--virtual-config-dir=/var/MailRoot/domains/%d/%l/spamassassin

If the folder does not exist, spamassassin will create it automatically.

You will then need to create your spamassassin filter, or look at the xmail 
webpage
to find links to download prebuilt spamassassin filters. And then put it 
into the filters subdirectory
of XMAIL.

In the filters, you may need to change @RCPT to @RRCPT in case you have 
aliases,
otherwise spamassassin will create a bunch of folders for any aliases.

Finally, the new spamassassin changes the format of tagged email.
For most intelligent email programs you will have no problem, but I had several
clients with Outlook and Outlook express who were having problems. 
Basically Outlook
would completely lock up trying to download any email tagged as spam. What 
you will have to do is
add the line

report_safe           0

to your /etc/mail/spamassassin/local.cf file, and restart spamd. That 
should make Spamassassin work properly
with Outlook.

Good Luck!

Riaz..


-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]

Reply via email to