On 5/27/19 6:43 PM, Reindl Harald wrote:
Am 28.05.19 um 01:05 schrieb Andy Howell:
How do I get spamassassin to honor the setting of bayes_path in /etc/spamassassin/local.cf ? bayes_path    /var/spool/postfix/spamassassin/bayes_db It never gets used. I can get sa-learn to create the files there by specifying the path: sa-learn --username=amavis --dbpath=/var/spool/postfix/spamassassin/bayes_db/ <maildir path>
this line with the trailing slash is wrong anyways, they bayes_db is supposed to be the prefix of the files below /var/spool/postfix/spamassassin/


Reindl Harald,

I saw "path" and assumed it was a path, not a prefix. The --dbpath in the sa-learn command is a path.

I guess it should be /var/spool/postfix/spamassassin/bayes_db/bayes then?

It still does not seem to be using bayes. When I run it on the command line, there is no mention of bayes:

spamassassin -t <spam.email

<email....>

Content analysis details:   (7.4 points, 5.0 required)

pts rule name              description
---- ---------------------- --------------------------------------------------
 2.5 URIBL_DBL_SPAM         Contains a spam URL listed in the Spamhaus DBL
                            blocklist
                            [URIs: blondetournament.icu]
 3.6 RCVD_IN_SBL_CSS        RBL: Received via a relay in Spamhaus SBL-CSS
                            [199.3.144.5 listed in zen.spamhaus.org]
-0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 0.0 HTML_MESSAGE           BODY: HTML included in message
 0.1 DKIM_SIGNED            Message has a DKIM or DK signature, not necessarily
                            valid
 0.0 T_DKIM_INVALID         DKIM-Signature header exists but is not valid
 1.3 RDNS_NONE              Delivered to internal network by a host with no rDNS

sa-learn ignores the bayes_path too. If I don't specify the --dbpath is makes the files in the user's .spamassassin directory. My mail users don't have home directories.

Thanks,

Andy


Reply via email to