Bug 38463 - Dovecot-OX-integration
Dovecot-OX-integration
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
:
: 38505 (view as bug list)
Depends on:
Blocks: 34839
  Show dependency treegraph
 
Reported: 2015-05-06 16:17 CEST by Daniel Tröder
Modified: 2015-08-25 10:59 CEST (History)
2 users (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 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. ***