Cross realm login, loginrealms. BUG?

Moin,
wir haben die Domäne: bla.local und möchten nun bla.de als Maildomain benutzen, bla.local soll nicht für mails verwendet werden.
Wir haben ein Master-Slave System.
Wenn ich bei einem Benutzer test@bla.de denied.

Ich habe daraufhin die config registry mail/cyrus/loginrealms angepasst und bla.de dort eingetragen.
Problem ist, dass in der /etc/imapd/imapd.conf nun 2x loginrealms auftaucht, was cyrus scheinbar gar nicht mag.
imapd.conf:

loginrealms: bla.local
loginrealms: bla.de

korrekt ist:
loginrealms: bla.local bla.de
Wenn ich die imapd.conf so abändere, geht auch der login in Horde…

ah,
habe mir gerade mal das template /etc/univention/templates/files/etc/imapd/imapd.conf angeguckt:

@!@
if baseConfig.has_key('mail/cyrus/loginrealms') and baseConfig['mail/cyrus/loginrealms'] != '':
        print 'loginrealms: %s' % baseConfig['mail/cyrus/loginrealms']
if baseConfig.has_key('mail/hosteddomains') and baseConfig['mail/hosteddomains'] != '':
        print 'loginrealms: %s' % baseConfig['mail/hosteddomains']
else:
        print 'loginrealms: %s' % baseConfig['domainname']
@!@

so kann dass auch nicht funktionieren, da else immer zutrifft, denn mail/hosteddomains gibt es auf dem slave nicht. dadruch wird dann 2x "loginrealms: " geschrieben. Ich mach da erstmal ein elif draus also so:

@!@
if baseConfig.has_key('mail/cyrus/loginrealms') and baseConfig['mail/cyrus/loginrealms'] != '':
        print 'loginrealms: %s' % baseConfig['mail/cyrus/loginrealms']
elif baseConfig.has_key('mail/hosteddomains') and baseConfig['mail/hosteddomains'] != '':
        print 'loginrealms: %s' % baseConfig['mail/hosteddomains']
else:
        print 'loginrealms: %s' % baseConfig['domainname']
@!@

edit:
hmm, einfacher ist es natürlich einfach die config variable mail/hosteddomains zu setzen und loginrealms leer zu lassen.

Hallo,

die Verwendung von “mail/hosteddomains” ist vorzuziehen. Im Handbuch ist dies im Kapitel 11.3.1 beschrieben:
http://www.univention.de/fileadmin/download/dokumentation_2.3/handbuch_ucs23.pdf

Mit freundlichen Grüssen
Tobias Scherer

Mastodon