Univention Bugzilla – Bug 38463
Dovecot-OX-integration
Last modified: 2015-08-25 10:59:54 CEST
Test IMAP and SIEVE support in OX, when Dovecot is used instead of Cyrus.
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.
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.
* Revert OX specific changes to dovecot-shared-folder.py. * Create (UCRV?) interfaces in univention-mail-dovecot and use them in univention[-mail-dovecot]-ox.
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
To be checked: ucs-test 31_sieve_script fails on OX systems
(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
The UCR variable description [mail/dovecot/internal/_ox_installed] has been removed from univention-mail-dovecot during review.
r61682 removes the OX specific code from Sieve script
spamrunner is only able to deal with a cyrus mail spool.
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.
In general the OX integration works also with dovecot. Known problems: - currently no dovecot-capable spamrunner → VERIFIED
- tested update of an existing OX 7.6.1 environment. - tested fresh installation with dovecot
<http://errata.univention.de/ucs/4.0/237.html>
*** Bug 38505 has been marked as a duplicate of this bug. ***