Bug 38463

Summary: Dovecot-OX-integration
Product: UCS Reporter: Daniel Tröder <troeder>
Component: Mail - DovecotAssignee: Daniel Tröder <troeder>
Status: CLOSED FIXED QA Contact: Sönke Schwardt-Krummrich <schwardt>
Severity: normal    
Priority: P5 CC: schwardt, walkenhorst
Version: UCS 4.0   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
See Also: https://forge.univention.org/bugzilla/show_bug.cgi?id=38461
https://forge.univention.org/bugzilla/show_bug.cgi?id=38505
https://forge.univention.org/bugzilla/show_bug.cgi?id=38863
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:
Bug Depends on:    
Bug Blocks: 34839    

Description Daniel Tröder univentionstaff 2015-05-06 16:17:24 CEST
Test IMAP and SIEVE support in OX, when Dovecot is used instead of Cyrus.
Comment 1 Daniel Tröder univentionstaff 2015-05-18 17:51:00 CEST
Needs equivalent to oxse4ucs/univention-mail-cyrus-ox/listener/cyrus-shared-folder.py for creating shared folders for OX. We should try to not duplicate code with the listener for the non-OX shared-folder-creation.
Comment 2 Daniel Tröder univentionstaff 2015-06-04 10:23:46 CEST
Commit: 61029

With OX installed, users LDAP attributes stay the same, but the shares folders attributes change:
* attribute univentionMailUserQuota → cyrus-userquota → Dovecot is now configured to always try to read both, exactly one always succeeds
* objectClass: univentionMailSharedFolder → objectClass=oxSharedFolder, Dovecot now searches for both
* univentionMailHomeServer is not in old/new in the listener with OX, but a oxhomeserver can be found in the OX context
* attribute "univentionMailACL" → "acl"

A UCRV mail/dovecot/internal/_ox_installed was introduced, to prevent LDAP reads for the "ox" service.

To prevent duplicating code, univention-mail-dovecots listender dovecot-shared-folder.py was modified to work with and without an OX installation.

Commit: 61033

Modified default SIEVE script, so OX UI recognizes Univention default filter rule.
Comment 3 Daniel Tröder univentionstaff 2015-06-04 10:43:23 CEST
* Revert OX specific changes to dovecot-shared-folder.py.
* Create (UCRV?) interfaces in univention-mail-dovecot and use them in univention[-mail-dovecot]-ox.
Comment 4 Daniel Tröder univentionstaff 2015-06-17 08:54:41 CEST
In commit 61264
* all references to OX were removed from the univention-mail-dovecot listerner
* a separate listener for shared folders with OX was created
* duplicate  listener code was moved into a common module
* UCRVs were created for packages like univention-mail-dovecot-ox to configure Dovecots LDAP queries
  - mail/dovecot/auth/ldap/user/attributes
  - mail/dovecot/auth/ldap/user/objectclasses
Comment 5 Sönke Schwardt-Krummrich univentionstaff 2015-07-01 16:56:28 CEST
To be checked: ucs-test 31_sieve_script fails on OX systems
Comment 6 Sönke Schwardt-Krummrich univentionstaff 2015-07-02 15:46:52 CEST
(In reply to Daniel Tröder from comment #2)
> Modified default SIEVE script, so OX UI recognizes Univention default filter
> rule.

Please remove the OX specific handling in
univention-mail-dovecot/conffiles/var/lib/dovecot/sieve/default.sieve
The comment "# Spamfilter" is sufficient.
→ REOPEN
Comment 7 Sönke Schwardt-Krummrich univentionstaff 2015-07-02 16:12:53 CEST
The UCR variable description [mail/dovecot/internal/_ox_installed] has been removed from univention-mail-dovecot during review.
Comment 8 Daniel Tröder univentionstaff 2015-07-02 18:19:43 CEST
r61682 removes the OX specific code from Sieve script
Comment 9 Sönke Schwardt-Krummrich univentionstaff 2015-07-06 14:04:24 CEST
spamrunner is only able to deal with a cyrus mail spool.
Comment 10 Sönke Schwardt-Krummrich univentionstaff 2015-07-08 16:17:15 CEST
r61901 | Bug #38463: removed OX related code - always show error message
r61902 | Bug #38463: moved import of module traceback
r61900 | Bug #38463: added some quoting
r61899 | Bug #38463: fixed typo
r61898 | Bug #38463: always call init.d script of dovecot; UCR variables are taken into account via init-autostart.lib

Integration of spamrunner is deferred.
Comment 11 Sönke Schwardt-Krummrich univentionstaff 2015-07-09 01:16:20 CEST
In general the OX integration works also with dovecot. Known problems:
- currently no dovecot-capable spamrunner

→ VERIFIED
Comment 12 Sönke Schwardt-Krummrich univentionstaff 2015-07-09 01:36:08 CEST
- tested update of an existing OX 7.6.1 environment.
- tested fresh installation with dovecot
Comment 13 Janek Walkenhorst univentionstaff 2015-07-09 18:12:53 CEST
<http://errata.univention.de/ucs/4.0/237.html>
Comment 14 Daniel Tröder univentionstaff 2015-08-25 10:59:54 CEST
*** Bug 38505 has been marked as a duplicate of this bug. ***