Using Spamassassin scans with Amavisd
Matus UHLAR - fantomas
uhlar at fantomas.sk
Thu Jan 31 13:01:49 CET 2019
On 30.01.19 12:33, Danny Horne wrote:
>I get the occassional spam in my inbox which I then move to my Junk
>folder. When I've got a bunch of emails there I run
>
>sa-learn --spam --mbox Junk
>
>on that folder, which creates / updates bayes_seen and bays_toks
>files. Does Amavisd use these files and if not, is there a way to
>point it to them?
amavis runs under an user, which should have .spamassassin/ folder in its home
directory.
on debian, it's user "amvis" with home directory of /var/lib/amavis and
bayes database in /var/lib/amavis/.spamassassin/
so, on debian you must use:
sa-learn --dbpath /var/lib/amavis/.spamassassin/ ...
then check, if all files in that directory belong to amavis user:
# ls -la /var/lib/amavis/.spamassassin/
total 57496
drwx------ 2 amavis amavis 4096 Jan 31 12:59 .
drwxr-x--- 7 amavis amavis 4096 Jan 31 07:22 ..
-rw------- 1 amavis amavis 41976 Jan 31 13:00 bayes_journal
-rw------- 1 amavis amavis 42024960 Jan 31 12:57 bayes_seen
-rw------- 1 amavis amavis 16990208 Jan 31 12:59 bayes_toks
-rw-r--r-- 1 amavis amavis 1919 Nov 30 16:06 user_prefs
--
Matus UHLAR - fantomas, uhlar at fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
99 percent of lawyers give the rest a bad name.
More information about the amavis-users
mailing list