Topic: Auto learn spam/ham with Dovecot imap_sieve plugin
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): iRedMail-1.3.2
- Deployed with iRedMail Easy or the downloadable installer? Downloaded installer
- Linux/BSD distribution name and version: Ubuntu 18.4
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Both
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
I have been setting this up and all worked well until I got to the Tests - sa-learn section where I get errors when executing these command line checks.
https://docs.iredmail.org/dovecot.imaps … ml#summarysu -s /bin/bash - amavis -c "spamassassin -D bayes < /opt/sample.eml"
error wrote:-su: /opt/sample.eml: Permission denied
and
su -s /bin/bash amavis -c "sa-learn --dump magic"
error wrote:bayes: cannot open bayes databases /var/lib/amavis/.spamassassin/bayes_* R/O: tie failed: Permission denied bayes: cannot open bayes databases /var/lib/amavis/.spamassassin/bayes_* R/O: tie failed: Permission denied ERROR: Bayes dump returned an error, please re-run with -D for more information
The error messages are using root user. All is well elsewhere and the services are running. TIA.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.