[horde] Spamassassin Report as Spam
Simon Wilson
simon at simonandkate.net
Tue Apr 7 03:01:33 UTC 2009
My setup runs Postfix, calling Amavisd-new for content filtering.
Amavisd calls spamassasin for spam filtering, so the spamd daemon is
not run, but SA is called by Amavisd as needed. Email is then sent to
a Cyrus IMAP system for Horde access.
In testing I have configured Imp to run "spamassassin -r" for emails
that are reported by the user as spam, but I'm not sure that this is
working right... I can't see any timestamp updates on any files when
it runs.
Setting Imp to run:
"strace -o /tmp/strace.txt spamassassin -r" shows that Imp running
"spamassassin -r" results in SA looking for /var/www/.spamassassin and
this is not there:
stat("/var/www/.spamassassin/bayes_toks", 0x1c578140) = -1 ENOENT (No
such file or directory)
stat("/var/www/.spamassassin/bayes_toks.db", 0x1c578140) = -1 ENOENT
(No such file or directory)
stat("/var/www/.spamassassin", 0x1c578140) = -1 ENOENT (No such file
or directory)
stat("/var/www/.spamassassin", 0x1c578140) = -1 ENOENT (No such file
or directory)
stat("/var/www", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
mkdir("/var/www/.spamassassin", 0700) = -1 EACCES (Permission denied)
stat("/var/www/.spamassassin", 0x1c578140) = -1 ENOENT (No such file
or directory)
Amavis appears to use a SA bayes database setup located at
/var/amavis/var/.spamassassin (auto-whitelist, bayes_seen, bayes_toks)
- at least, when mail comes in, these files are accessed and
timestamped by amavis / SA.
So - does anyone out there have an amavisd/SA setup with user
spam-reporting from Imp? How do you have it set up?
Cheers
Simon Wilson.
More information about the horde
mailing list