1 (edited by Monster 2024-05-30 19:20:48)

Topic: Auto learn spam/ham

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.8 MYSQL edition.
- Deployed with iRedMail Easy or the downloadable installer? download
- Linux/BSD distribution name and version: Ubuntu 18.04.6 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hi, I followed the Auto learn spam/ham with Dovecot imap_sieve plugin Guide.

I created all the files and added the required configuration like mention in the document. In dovecot.conf I added the entries additionally leaving the other sieve-setting there untouched.
But it doesn't seem to work.

Debug: Junk: Mailbox opened because: UID COPY
Debug: imapsieve: mailbox Junk: COPY event
Debug: imapsieve: mailbox Junk: Mailbox attribute /shared/imapsieve/script not found
Debug: imapsieve: mailbox Junk: Server attribute /shared/imapsieve/script not found

Result doveconf -n in attachment

I don't understand what the problem could be.

Post's attachments

dovecot.conf 5.79 kb, 2 downloads since 2024-05-30 

You don't have the permssions to download the attachments of this post.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Auto learn spam/ham

Monster wrote:

But it doesn't seem to work.

What do you mean it doesn't work?
Do you see any copied message under /var/vmail/imapsieve_copy when you move a message to Junk folder? Or move one from Junk to other folder?

3

Re: Auto learn spam/ham

ZhangHuangbin wrote:
Monster wrote:

But it doesn't seem to work.

What do you mean it doesn't work?
Do you see any copied message under /var/vmail/imapsieve_copy when you move a message to Junk folder? Or move one from Junk to other folder?

Copying works - I see messages in /var/vmail/imapsieve_copy/spam but I see errors in the logs:
Debug: Junk: Mailbox opened because: UID COPY
Debug: imapsieve: mailbox Junk: COPY event
Debug: imapsieve: mailbox Junk: Mailbox attribute /shared/imapsieve/script not found
Debug: imapsieve: mailbox Junk: Server attribute /shared/imapsieve/script not found

I read that this can happen with an empty variable mail_attribute_dic, but it is set: mail_attribute_dict = file:%Lh/dovecot-attributes

4

Re: Auto learn spam/ham

did you restart dovecot, postfix after changes?

5

Re: Auto learn spam/ham

Cthulhu wrote:

did you restart dovecot, postfix after changes?

Yes