$domain lost after reinjection from wallaced in isolated multi domain setup

Sascha T. kolab at sgt.at
Wed Oct 1 19:27:30 CEST 2014


*Hi ,**
**
** first of all: great job on kolab 3.3 !**
****
** a "little" problem, i'm not able to solve, so any help is greatly appreciated ! ;-)*:

        the result is: the "management domain" st.local is working perfect with resources and shared folders,
        but all other isolated domains loose their domain after getting mail reinjected by wallaced,
        and so an unknown user is triggered. User-Mailboxes of all domains are working fine......


1) setup  almost like descibed in http://docs.kolab.org/howtos/multi-domain.html
     remove the canonification process, etc.:  (OS not important - CentOS 7.x, ubuntu...same result)


     OS: debian 7.6  (amd64)
     Kolab 3.3:

    ii chwala 0.2-0~kolab10                 all          Glorified WebDAV, done right
    ii  cyrus-imapd 2.5~dev2014082101-0~kolab1    amd64        Cyrus IMAP Server
    ii  irony 0.2.8-0~kolab4                all          Kolab Groupware DAV Access
    ii  kolab 3.1.8-1                       all          Metapackage for Kolab Groupware Server
    ii  kolab-cli 0.7.1-0~kolab7                all          Command-line utilities for Kolab
    ii  kolab-conf 0.7.1-0~kolab7                all          Configuration management for Kolab
    ii  kolab-freebusy 1.0.5-0~kolab3                all          Free/Busy for Kolab Groupware
    ii  kolab-imap 3.1.8-1                       all          IMAP server for Kolab Groupware server
    ii  kolab-ldap 3.1.8-1                       all          LDAP server for Kolab Groupware server
    ii  kolab-mta 3.1.8-1                       all          MTA server for Kolab Groupware server
    ii  kolab-saslauthd 0.7.1-0~kolab7                all          SASL Authentication Daemon for Kolab
    ii  kolab-schema 3.1-3                         all          LDAP schema files for Kolab Groupware
    ii  kolab-server 0.7.1-0~kolab7                all          Kolab Groupware Server
    ii  kolab-syncroton 2.3~dev20140915-0~kolab4      all          ActiveSync for Kolab Groupware
    ii  kolab-webadmin 3.2.1-0~kolab4                all          Kolab administration web interface
    ii  kolab-webclient 3.1.8-1                       all          Webmail client for Kolab Groupware server
    ii  kolab-xml 0.7.1-0~kolab7                all          Kolab XML format wrapper for pykolab
    ii  libcalendaring 4.9.0-3                       amd64        Advanced calendaring routines for Kolab Groupware
    ii  libjansson4:amd64 2.4-0~kolab1                  amd64        C library for encoding, decoding and manipulating JSON data
    ii  libkolab0 0.6~dev20140624-0~kolab1      amd64        Maps KDE containers to Kolab formats
    ii  libkolabxml1 1.1~dev20140624-0~kolab1      amd64        Libkolabxml is the reference implementation of the Kolab XML format
    ii  libxapian22 1.2.16-0~kolab1               amd64        Search engine library
    ii  php-kolab 0.6~dev20140624-0~kolab1      amd64        PHP bindings for Kolab Library
    ii  php-kolabformat 1.1~dev20140624-0~kolab1      amd64        PHP bindings for Kolab Format 3.0 XML parsing
    ii  php-net-ldap3 1.0.0-0~kolab3                all          Extended LDAP (v3) capabilities based on php-net-ldap2 and friends
    ii  pykolab 0.7.1-0~kolab7                all          Kolab Groupware daemon and utilities
    ii  python-kolabformat 1.1~dev20140624-0~kolab1      amd64        Python bindings for Kolab Format 3.0 XML parsing
    ii  roundcubemail 1:1.1~dev20140404-0~kolab6    all          skinnable AJAX based webmail solution for IMAP servers
    ii  roundcubemail-plugin-contextmenu 2.1~dev20140906-0~kolab1      all          skinnable AJAX based webmail solution - Contextmenu plugin
    ii  roundcubemail-plugin-threadingasdefault 0.9-0~kolab1                  all          skinnable AJAX based webmail solution - threading as
    default plugin
    ii  roundcubemail-plugins-kolab 1:3.2~dev20140821-0~kolab5    all          skinnable AJAX based webmail solution - Kolab plugins
    ii  wallace 0.7.1-0~kolab7                all          Kolab Content-Filter



2) domains:  st.local, test1.at, test2.at
      kolab lm *@test1.at

    *shared/Resources/Raum1 at test1.at*
    user/admin at test1.at
    user/admin/Archive at test1.at
    user/admin/Calendar at test1.at
    user/admin/Calendar/Personal Calendar at test1.at
    user/admin/Configuration at test1.at
    user/admin/Contacts at test1.at
    user/admin/Contacts/Personal Contacts at test1.at
    user/admin/Drafts at test1.at
    user/admin/Files at test1.at
    user/admin/Freebusy at test1.at
    user/admin/Journal at test1.at
    user/admin/Notes at test1.at
    user/admin/Sent at test1.at
    user/admin/Spam at test1.at
    user/admin/Tasks at test1.at
    user/admin/Trash at test1.at
    user/test at test1.at
    user/test/Archive at test1.at
    user/test/Calendar at test1.at
    user/test/Calendar/Personal Calendar at test1.at
    user/test/Configuration at test1.at
    user/test/Contacts at test1.at
    user/test/Contacts/Personal Contacts at test1.at
    user/test/Drafts at test1.at
    user/test/Files at test1.at
    user/test/Freebusy at test1.at
    user/test/Journal at test1.at
    user/test/Notes at test1.at
    user/test/Sent at test1.at
    user/test/Spam at test1.at
    user/test/Tasks at test1.at
    user/test/Trash at test1.at



3) Defined Resources for domains:  resource-confroom-raum3 at st.local, resource-confroom-raum1 at test1.at , resource-confroom-raum2 at test2.at

4) postmap -q resource-confroom-raum3 at st.local ldap:/etc/postfix/ldap/local_recipient_maps.cf -> resource-confroom-raum1 at st.local
     postmap -q resource-confroom-raum1 at test1.at ldap:/etc/postfix/ldap/local_recipient_maps.cf -> resource-confroom-raum1 at test1.at
     postmap -q resource-confroom-raum2 at test2.at ldap:/etc/postfix/ldap/local_recipient_maps.cf -> resource-confroom-raum2 at test2.at

    telnet localhost 25  ...
    250-PIPELINING
          250-SIZE 10240000
          250-VRFY
          250-ETRN
          250-STARTTLS
          250-ENHANCEDSTATUSCODES
          250-8BITMIME
          250 DSN
          mail from:<admin at test1.at>
          250 2.1.0 Ok
          rcpt to:<resource-confroom-raum1 at test1.at>
          250 2.1.5 Ok
          data
          354 End data with <CR><LF>.<CR><LF>
          test
          .
          250 2.0.0 Ok: queued as 22CD6253
          QUIT
       221 2.0.0 Bye

     postfix log:

         kolab postfix/smtpd[6967]: 22CD6253: client=localhost[127.0.0.1]
         kolab postfix/cleanup[6970]: 22CD6253: message-id=<20141001165612.22CD6253 at kolab.st.at>
         kolab postfix/qmgr[6614]: 22CD6253: from=<admin at test1.at>, size=303, nrcpt=1 (queue active)
         kolab postfix/smtpd[6973]: connect from localhost[127.0.0.1]
         kolab postfix/smtpd[6973]: 712D5254: client=localhost[127.0.0.1], orig_queue_id=22CD6253, orig_client=localhost[127.0.0.1]
         kolab postfix/cleanup[6974]: 712D5254: message-id=<20141001165612.22CD6253 at kolab.st.at>
         kolab postfix/qmgr[6614]: 712D5254: from=<admin at test1.at>, size=127, nrcpt=1 (queue active)
         kolab postfix/smtpd[6973]: disconnect from localhost[127.0.0.1]
         kolab amavis[4506]: (04506-10) Passed CLEAN {RelayedInternal}, LOCAL [127.0.0.1]:59071 [127.0.0.1] <admin at test1.at> ->
    <resource-confroom-raum1 at test1.at>, Queue-ID: 22CD6253, Message-ID: <20141001165612.22CD6253 at kolab.st.at>, mail_id: OkPhswfLWVRo, Hits: -, size:
    303, queued_as: 712D5254, 198 ms
         kolab postfix/smtp[6971]: 22CD6253: to=<resource-confroom-raum1 at test1.at>, relay=127.0.0.1[127.0.0.1]:10024, delay=23, delays=23/0.02/0/0.2,
    dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 712D5254)
         kolab postfix/qmgr[6614]: 22CD6253: removed
         kolab postfix/smtp[6975]: 712D5254: to=<resource-confroom-raum1 at test1.at>, relay=127.0.0.1[127.0.0.1]:10026, delay=0.03,
    delays=0.02/0.01/0/0, dsn=2.0.0, status=sent (250 Ok)
         kolab postfix/qmgr[6614]: 712D5254: removed
         kolab postfix/smtpd[6976]: connect from localhost[127.0.0.1]
         kolab postfix/smtpd[6976]: B744B254: client=localhost[127.0.0.1]
         kolab postfix/cleanup[6974]: B744B254: message-id=<20141001165612.22CD6253 at kolab.st.at>
         kolab postfix/qmgr[6614]: B744B254: from=<admin at test1.at>, size=127, nrcpt=1 (queue active)
    kolab postfix/smtpd[6976]: disconnect from localhost[127.0.0.1]
    *    kolab postfix/local[6977]: B744B254: to=<resource-confroom-raum1 at test1.at>, relay=local, delay=0.03, delays=0.01/0.01/0/0.01, dsn=5.1.1,
    status=bounced (unknown user: "resource-confroom-raum1")*
    kolab postfix/cleanup[6970]: BE148255: message-id=<20141001165617.BE148255 at kolab.st.at>
         kolab postfix/qmgr[6614]: BE148255: from=<>, size=1891, nrcpt=1 (queue active)
         kolab postfix/bounce[6979]: B744B254: sender non-delivery notification: BE148255
         kolab postfix/qmgr[6614]: B744B254: removed
         kolab lmtpunix[6729]: Delivered: <20141001165617.BE148255 at kolab.st.at> to mailbox: test1.at!user.admin
         kolab lmtpunix[6729]: USAGE admin at test1.at user: 0.012000 sys: 0.016001
         kolab postfix/lmtp[6981]: BE148255: to=<admin at test1.at>, relay=kolab.st.at[/var/lib/imap/socket/lmtp], delay=0.16,
    delays=0.01/0.01/0.02/0.13, dsn=2.1.5, status=sent (250 2.1.5 Ok SESSIONID=<kolab-6729-1412182577-1>)
         kolab postfix/qmgr[6614]: BE148255: removed
         kolab postfix/smtpd[6967]: disconnect from localhost[127.0.0.1]


*cat /etc/kolab/kolab.conf:*

    [kolab]
    primary_domain = st.local
    auth_mechanism = ldap
    imap_backend = cyrus-imap
    default_locale = de_DE
    sync_interval = 300
    domain_sync_interval = 600
    policy_uid = %(surname)s@%(domain)s
    primary_mail = %(surname)s@%(domain)s
    secondary_mail = {
             ...[typical stuff]
             }
    autocreate_folders = {
             ...[typical stuff]
             }

    [imap]
    virtual_domains = userid

    [ldap]
    ldap_uri = ldap://localhost:389
    supported_controls = 0,2,3
    base_dn = %%dc
    bind_dn = cn=Directory Manager
    bind_pw = XXX
    service_bind_dn = uid=kolab-service,ou=Special Users,dc=st,dc=local
    service_bind_pw = XXX
    user_base_dn = ou=People,%(base_dn)s
    user_scope = sub
    user_filter = (objectclass=inetorgperson)
    kolab_user_base_dn = ou=People,%(base_dn)s
    kolab_user_filter = (objectclass=kolabinetorgperson)
    group_base_dn = ou=Groups,%(base_dn)s
    group_filter = (|(objectclass=groupofuniquenames)(objectclass=groupofurls))
    group_scope = sub
    kolab_group_filter = (|(objectclass=kolabgroupofuniquenames)(objectclass=kolabgroupofurls))
    sharedfolder_base_dn = ou=Shared Folders,%(base_dn)s
    sharedfolder_filter = (objectclass=kolabsharedfolder)
    sharedfolder_acl_entry_attribute = acl
    resource_base_dn = ou=Resources,%(base_dn)s
    resource_filter = (|%(group_filter)s(objectclass=kolabsharedfolder))
    domain_base_dn = cn=kolab,cn=config
    domain_filter = (&(associatedDomain=*))
    domain_name_attribute = associateddomain
    domain_rootdn_attribute = inetdomainbasedn
    quota_attribute = mailquota
    modifytimestamp_format = %Y%m%d%H%M%SZ
    unique_attribute = nsuniqueid
    mail_attributes = mail, alias
    mailserver_attribute = mailhost
    auth_attributes = mail, alias, uid

    [kolab_smtp_access_policy]
    cache_uri = mysql://kolab:XXXX@localhost/kolab
    cache_retention = 86400
    address_search_attrs = mail, alias
    delegate_sender_header = True
    alias_sender_header = True
    sender_header = True
    xsender_header = True
    empty_sender_hosts = 3.2.1.0/24, 6.6.6.0/24

    [kolab_wap]
    skin = default
    sql_uri = mysql://kolab:XXXX@localhost/kolab
    ssl_verify_peer = false
    ssl_verify_host = false

    [cyrus-imap]
    uri = imaps://localhost:993
    admin_login = cyrus-admin
    admin_password = XXXXX

    [cyrus-sasl]
    result_attribute = mail

    [wallace]
    modules = resources, invitationpolicy, footer
    footer_text = /etc/kolab/footer.text
    footer_html = /etc/kolab/footer.html
    kolab_invitation_policy = ACT_ACCEPT_IF_NO_CONFLICT:st.local, ACT_ACCEPT_IF_NO_CONFLICT:test1.at, ACT_ACCEPT_IF_NO_CONFLICT:test2.at, ACT_MANUAL

    [st.local]
    default_quota = 0
    primary_mail = %(surname)s@%(domain)s

    [test1.at]
    default_quota = 0
    primary_mail = %(surname)s@%(domain)s


    [test2.at]
    default_quota = 0
    primary_mail = %(surname)s@%(domain)s




*i've checked almost everything in the configuration of postfix:**
**
**cat /etc/postfix/transport*
     shared at st.local lmtp:unix:/var/lib/imap/socket/lmtp
     shared at test1.at         lmtp:unix:/var/lib/imap/socket/lmtp
     shared at test2.at         lmtp:unix:/var/lib/imap/socket/lmtp

*cat local_recipient_maps.cf *

    server_host = localhost
    server_port = 389
    version = 3
    search_base = dc=%2,dc=%1
    scope = sub
    domain = ldap:/etc/postfix/ldap/mydestination.cf
    bind_dn = uid=kolab-service,ou=Special Users,dc=st,dc=local
    bind_pw = XXX
    query_filter =
    (&(|(mail=%s)(alias=%s))(|(objectclass=kolabinetorgperson)(|(objectclass=kolabgroupofuniquenames)(objectclass=kolabgroupofurls))(|(|(objectclass=groupofuniquenames)(objectclass=groupofurls))(objectclass=kolabsharedfolder))(objectclass=kolabsharedfolder)))
    result_attribute = mail


*cat transport_maps.cf*

    server_host = localhost
    server_port = 389
    version = 3
    search_base = dc=%2,dc=%1
    scope = sub
    domain = ldap:/etc/postfix/ldap/mydestination.cf
    bind_dn = uid=kolab-service,ou=Special Users,dc=st,dc=local
    bind_pw = XXX
    query_filter = (&(|(mailAlternateAddress=%s)(alias=%s)(mail=%s))(objectclass=kolabinetorgperson))
    result_attribute = mail
    result_format = lmtp:unix:/var/lib/imap/socket/lmtp


THX & BR
Sascha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kolab.org/pipermail/users/attachments/20141001/25f12361/attachment-0001.html>


More information about the users mailing list