On 28.05.19 12:50, Jim Dunphy wrote:
Attempting to answer all your questions related to zimbra
Zimbra doesn't do any training until it is kicked off by cron for the zimbra
user... Training a message as spam from the MUA interface sends the email to a
special spam account... Training messages as not spam goes to a special ham
account. You can pull those emails or use your admin interface to see what the
users have trained before actual training occurs as a consequence. Look at your
zimbra crontab entry to see when zmtrainsa runs which pulls the emails and
trains them. With everything in zimbra, make sure you are the zimbra user
before running any SA commands. If you want to train vast amounts of email as
spam or ham, you can use the zmtrainsa and point it to a directory of messages.
zmtrainsa is just a wrapper to get your zimbra spamassassin environment correct
so that would show you sa-learn and the correct options (ie. paths), etc. Given
this is really zimbra specific, probably better to ask this on the Zimbra
administrator forums if you have specific questions so the rest of the
community can learn.
Note: it doesn't require anything special to run spamassassin in debug mode to
test rules... just make sure you do it as the zimbra user so your environment
is established.
I'm afraid this is not true, at least not by default:
May 29 11:58:10.809 [962] dbg: generic: Perl 5.016003,
PREFIX=/opt/zimbra/common,
DEF_RULES_DIR=/opt/zimbra/data/spamassassin/rules,
LOCAL_RULES_DIR=/opt/zimbra/data/spamassassin/localrules,
LOCAL_STATE_DIR=/opt/zimbra/data/spamassassin/state
May 29 11:55:48.515 [31733] dbg: config: internal_networks not configured,
using trusted_networks configuration for internal_networks; if you really
want internal_networks to only contain the required 127/8 add
'internal_networks !0/0' to your configuration
the SA version coming with zimbra does not seem have environment nor
configuration set to read proper config files when run by user in debug mode
/opt/zimbra/data/spamassassin/localrules/salocal.cf does contain them but
it's not read by default when running spamassassin
----- On May 27, 2019, at 5:13 AM, hg user <[email protected]> wrote:
Ok, sorry for my bad answers...
I test spamassassin results using a command line:
spamassassin -t /path/file
sometimes I add -D to look at the debug logs.
spamassassin is actually used via amavis, in a zimbra setup.
To teach sa-learn and to test the results via command line I use zimbra user.
On Mon, May 27, 2019 at 1:18 PM Matus UHLAR - fantomas < [
mailto:[email protected] | [email protected] ] > wrote:
On 27.05.19 12:51, hg user wrote:
>the Linux user is the same.
the same as what?
>Bayes db is on Linux.
seems I wasn't clear at my question:
How do you use spamassassin? milter, amavis, procmail filter, postfix
filter ... ?
--
Matus UHLAR - fantomas, [email protected] ; 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.
Emacs is a complicated operating system without good text editor.