Bug 38759 - univention-spamassassin is unaware of dovecot
univention-spamassassin is unaware of dovecot
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Mail - Dovecot
UCS 4.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: Daniel Tröder
Sönke Schwardt-Krummrich
:
Depends on:
Blocks: 34839
  Show dependency treegraph
 
Reported: 2015-06-23 20:30 CEST by Sönke Schwardt-Krummrich
Modified: 2015-07-09 18:10 CEST (History)
1 user (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sönke Schwardt-Krummrich univentionstaff 2015-06-23 20:30:52 CEST
univention-spamassassin has to be adopted for the new dovecot integration.

Currently the script univention-sa-learn walks via "find" through /var/spool/cyrus/mail/domain/ and learns all spam folders, that have been defined via UCR.

Ideally univention-sa-learn detects whether dovecot or cyrus is used. If dovecot is used, it would be great, if \Junk folders are detected automatically. Also the predefined (by name!) spam folder should be learned.
Comment 1 Daniel Tröder univentionstaff 2015-06-24 12:48:13 CEST
Commit 61443 adds support for Dovecot, incl. RFC 6154 flagged \Junk folders.
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2015-07-02 14:11:53 CEST
if configRegistry.get("mail/dovecot"):
→ if configRegistry.is_true("mail/dovecot"):

if mail/dovecot/folder/spam is set to "none", spam learning is disabled even if there are special \Junk folders defined:
if [ -n "$SPAMFOLDER" ]; then

Currently, the code is unable to handle subfolders in dovecot as spam/ham folders.
→ replace('/', '.')

→ REOPEN

Besides that, it works as expected.
Comment 3 Daniel Tröder univentionstaff 2015-07-03 12:06:17 CEST
Commit 61724:
* fix sa-learn script, so it runs even if mail/dovecot/folder/spam=none when special \Junk folders are defined
* handle subfolders in mail/dovecot/folder/{spam,ham}
Comment 4 Sönke Schwardt-Krummrich univentionstaff 2015-07-06 13:25:43 CEST
Code change is OK, but changelog entry is missing and the package has not been rebuilt → REOPEN
Comment 5 Daniel Tröder univentionstaff 2015-07-06 16:38:42 CEST
Changelog is in 61810, package built: 6.0.2-1.75.201507061633.
Comment 6 Sönke Schwardt-Krummrich univentionstaff 2015-07-06 22:45:15 CEST
(In reply to Daniel Tröder from comment #5)
> Changelog is in 61810, package built: 6.0.2-1.75.201507061633.

→ OK → VERIFIED
Comment 7 Janek Walkenhorst univentionstaff 2015-07-09 18:10:23 CEST
<http://errata.univention.de/ucs/4.0/239.html>