Enhancement #2252
Ignore spam training when moving a message to Trash
Status: | CLOSED | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 100% | |
Category: | nethserver-mail-server | |||
Target version: | v6.4-beta2 | |||
Resolution: | NEEDINFO: | No |
Description
The dovecot antispam plugin allows disabling "ham" classification on messages moved out of the junkmail folder into the Trash folder.
We must avoid ham-training in this case.
See the dovecot-antispam-plugin manual
Transition matrix
┏━━━━━━━━━┳━━━━━━┳━━━━━━━┳━━━━━━━━┳━━━━━━━┓ ┃ dst╲src ┃ SPAM ┃ TRASH ┃ UNSURE ┃ OTHER ┃ ┣━━━━━━━━━╋━━━━━━╇━━━━━━━╇━━━━━━━━╇━━━━━━━┩ ┃ SPAM ┃ / │ / │ - │ - │ ┣━━━━━━━━━╉──────┼───────┼────────┼───────┤ ┃ TRASH ┃ / │ / │ * │ / │ ┣━━━━━━━━━╉──────┼───────┼────────┼───────┤ ┃ UNSURE ┃ * │ * │ * │ * │ ┣━━━━━━━━━╉──────┼───────┼────────┼───────┤ ┃ OTHER ┃ + │ / │ + │ / │ ┗━━━━━━━━━┹──────┴───────┴────────┴───────┘ Legend: / move is ignored * move is forbidden - classify as spam + classify as ham
Related issues
Associated revisions
dovecot.conf template: add antispam_trash option ignore spam training from/to trash folder. Refs #2252
nethserver-mail-filter-update expands /etc/dovecot/dovecot.conf. Refs #2252
This should be safe even if nethserver-mail-server is not
installed. Dovecot daemon is restarted if installed and enabled.
History
#1 Updated by Giacomo Sanchietti almost 8 years ago
- Status changed from NEW to TRIAGED
- % Done changed from 0 to 20
#2 Updated by Giacomo Sanchietti almost 8 years ago
- Status changed from TRIAGED to ON_DEV
- Assignee set to Giacomo Sanchietti
- % Done changed from 20 to 30
#3 Updated by Giacomo Sanchietti almost 8 years ago
- Description updated (diff)
#4 Updated by Giacomo Sanchietti almost 8 years ago
- Status changed from ON_DEV to MODIFIED
- % Done changed from 30 to 60
Option added:
antispam_trash = Trash
#5 Updated by Giacomo Sanchietti almost 8 years ago
- Status changed from MODIFIED to ON_QA
- Assignee deleted (
Giacomo Sanchietti) - % Done changed from 60 to 70
New package in nethserver-testing:nethserver-mail-filter-1.1.2-1.0gitb6e91a01.ns6.noarch.rpm nethserver-mail-filter-1.1.2-2.0gitf7226754.ns6.noarch
- Try to move a message between
Trash
andjunkmail
folder - Verify no ham/spam training is done:
# tail -f /var/log/maillog | grep -F spam-training.sh
#6 Updated by Davide Principi almost 8 years ago
- Assignee set to Davide Principi
#7 Updated by Davide Principi almost 8 years ago
- Status changed from ON_QA to VERIFIED
- Assignee deleted (
Davide Principi) - % Done changed from 70 to 90
VERIFIED
dovecot.conf expansion and dovecot restart was needed during an upgrade scenario. Pushed the fix in SCM, see nethserver:nethserver-mail-filter|f7226754
#8 Updated by Giacomo Sanchietti almost 8 years ago
- Status changed from VERIFIED to CLOSED
- % Done changed from 90 to 100
- nethserver-mail-filter-1.1.3-1.ns6.noarch.rpm