On Tue, Nov 07, 2023 at 02:28:38AM +0100, Cecil Westerhof wrote:
https://spamassassin.apache.org/full/3.1.x/doc/spamc.html says:
   -L learn type
       Send message to spamd for learning. The learn type can be
       either spam, ham or forget. The exitcode for spamc will be set
       to 5 if the message was learned, or 6 if it was already
       learned.

       Note that the spamd must run with the --allow-tell option for
       this to work.

"George A. Theall via users" <[email protected]> writes:
How are you running spamd?  With -l / --allow-tell?

On 07.11.23 15:01, Cecil Westerhof wrote:
   --pidfile=/run/spamd.pid --username=imaps --allow-tell --create-prefs 
--max-children 5 --helper-home-dir

And the learning does work. But I have to use the generated text
instead of the exit codes.

I'm afraid that for --allow-tell and --username=imaps you need all mailboxes to be writable under "imaps" user, e.g. virtual users or similar.

--
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.
Posli tento mail 100 svojim znamim - nech vidia aky si idiot
Send this email to 100 your friends - let them see what an idiot you are

Reply via email to