Spamassassin behaving strangely

Timothy Murphy gayleard at eircom.net
Fri Jan 14 02:38:23 UTC 2011


Joe Zeff wrote:

> Just out of curiosity, what email client are you using?  I ask because
> I'd like to get spamassassin working but I don't know how to integrate
> it with what I have.

I'm running dovecot, an IMAP server, on my desktop;
then I'm using kmail on my laptop to read the mail.

I'm not sure if this is the right way to do things,
but in ~/.procmailrc on the server I have
---------------------------------
:0fw:spamassassin.lock
* < 256000
| /usr/bin/spamc

:0:
* ^X-Spam-Status: Yes
/home/tim/Maildir/.Spam/new
---------------------------------

Then when I run "sudo service spamassassin restart"
spamd starts running.
This sets the X-Spam-Status for each email item;
and the entry in .procmailrc above
move spam mail to the directory shown.

Then I have an entry sa-learn in /etc/cron.daily
---------------------------------
#!/bin/sh

/usr/bin/sa-learn --spam /home/tim/Maildir/.Spam/cur
/bin/rm -f /home/tim/Maildir/.Spam/cur/*
---------------------------------
which runs sa-learn on the spam I've saved,
and then deletes it.

As I said, I'm not sure if this is the right way to go about it.


-- 
Timothy Murphy  
e-mail: gayleard /at/ eircom.net
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland



More information about the users mailing list