Topic: SPAM Autolearn/dovecot: Spam-Ham-Spam move proposal
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.3.1
- Deployed with iRedMail Easy or the downloadable installer? installer
- Linux/BSD distribution name and version: Debian 10
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Web server (Apache or Nginx): nginx
- Manage mail accounts with iRedAdmin-Pro? yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hello all!
We are planning to use "Auto learn spam/ham with Dovecot imap_sieve plugin" as described on https://docs.iredmail.org/dovecot.imapsieve.html
While testing, I can observe email files being put into the according folders spam and ham for learning.
Thats very nice!
Nevertheless I found that when moving an email back and forth between folders, those get duplicated in the according spam/ham folders.
I don't know how SpamAssassin handles duplicates in SPAM and HAM learning.
Data gets duplicated and disk space wasted (possible DoS cause due to bad behaving customers).
Is this intended behaviour?
What if I enhance the imapsieve_copy script to use an unique identifier for each message instead of "${RANDOM}${RANDOM}"?
This would allow to check for existing messages and delete re-classified SPAM messages from HAM.
Best regards,
Bernhard
BTW: Moving folders into Junk does not cause anything to happen. Is this desired?
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.