Hi there,

 

I have used Exchange 2007 for quite some years, but I am trying to switch to Sogo, Openchange and so on.

 

The most of my install works fine, except for one tiny culprit. I cant use Outlook 2007 or 2010 with "old" users.

I have used Outlook 2013 to create and import all mails (5 mailboxes), they are syncing fine with iOS, Windows Phone, Android, SOGO Webmail, Windows 10 Mailapp and Outlook 2013. Therefore I wanted to Switch the testserver with Exchange 2007, but:

 

If I am trying to connect Outlook 2007 to one of these accounts I get an Samba backtrace (and Outlook closes, doesnt sync anything). If I create a new user  (samba-tool user add test && openchange_newuser --create test) I can use Outlook 2007. Therefore I think my install should be OK, but somehow populated Mailboxes with Outlook 2007 are not.

Does anyone has an idea? I am out of ideas.

 

Thanks

 

Martin

 

 

 

My config:

 

                Ubuntu Server 16.04 with

 

                amavisd-new                        1:2.10.1-2ubuntu1            

                dovecot-antispam                   2.0+20150222-1build1         

                dovecot-core                       1:2.2.22-1ubuntu2            

                dovecot-imapd                      1:2.2.22-1ubuntu2            

                dovecot-ldap                       1:2.2.22-1ubuntu2            

                dovecot-lmtpd                      1:2.2.22-1ubuntu2            

                dovecot-managesieved               1:2.2.22-1ubuntu2            

                dovecot-pop3d                      1:2.2.22-1ubuntu2            

                dovecot-sieve                      1:2.2.22-1ubuntu2            

                fetchmail                          6.3.26-2                     

                openchange-ocsmanager              4:2.4-zentyal22              

                openchange-rpcproxy                4:2.4-zentyal22              

                openchangeproxy                    4:2.4-zentyal22              

                openchangeserver                   4:2.4-zentyal22              

                postfix                            3.1.0-3                      

                postfix-ldap                       3.1.0-3                      

                python-samba                       2:4.3.9+dfsg-0ubuntu0.16.04.2

                samba                              2:4.3.9+dfsg-0ubuntu0.16.04.2

                samba-common                       2:4.3.9+dfsg-0ubuntu0.16.04.2

                samba-common-bin                   2:4.3.9+dfsg-0ubuntu0.16.04.2

                samba-dev                          2:4.3.9+dfsg-0ubuntu0.16.04.2

                samba-dsdb-modules                 2:4.3.9+dfsg-0ubuntu0.16.04.2

                samba-libs:amd64                   2:4.3.9+dfsg-0ubuntu0.16.04.2

                samba-vfs-modules                  2:4.3.9+dfsg-0ubuntu0.16.04.2

                sogo:amd64                         3.1.5.20160919-1             

                sogo-activesync                    3.1.5.20160919-1             

                sogo-openchange:amd64              3.1.5.20160919-1             

                spamassassin                       3.4.1-3                      

 

 

 

 

Backtrace

 

 

[...]

[2016/08/11 22:56:17.589146,  0] ../lib/util/become_daemon.c:124(daemon_ready)

  STATUS=daemon 'samba' finished starting up and ready to serve connections

[2016/08/11 22:56:19.417073,  0] libmapi/oc_log.c:52(oc_logv)

  MAPIPROXY server mode enabled

[2016/08/11 22:56:19.428627,  0] libmapi/oc_log.c:52(oc_logv)

  mapiproxy/libmapiproxy/dcesrv_mapiproxy_server.c:187(mapiproxy_server_load): MAPIPROXY proxy mode disabled

[2016/08/11 22:56:19.428818,  0] libmapi/oc_log.c:54(oc_logv)

  mapiproxy/servers/default/nspi/dcesrv_exchange_nsp.c:1609(dcesrv_exchange_nsp_init): dcesrv_exchange_nsp_init

[2016/08/11 22:56:19.440522,  0] libmapi/oc_log.c:54(oc_logv)

  Using MySQL backend for openchangedb: mysql://openchange-user:MYPASSWORD@localhost/openchange

[2016/08/13 23:34:46.936540,  0] libmapi/oc_log.c:52(oc_logv)

  mapiproxy/servers/default/emsmdb/dcesrv_exchange_emsmdb.c:304(EcDoRpc_process_transaction): MAPI Rop: 0xfe (0)

2016-08-13 23:34:48.824 samba[2878]   registered class 'MAPIStoreCalendarContext' as handler of 'calendar' contexts

2016-08-13 23:34:48.828 samba[2878]   registered class 'MAPIStoreTasksContext' as handler of 'tasks' contexts

2016-08-13 23:34:48.828 samba[2878]   registered class 'MAPIStoreContactsContext' as handler of 'contacts' contexts

2016-08-13 23:34:48.829 samba[2878]   registered class 'MAPIStoreNotesContext' as handler of 'notes' contexts

2016-08-13 23:34:48.829 samba[2878]   registered class 'MAPIStoreFallbackContext' as handler of 'fallback' contexts

2016-08-13 23:34:48.829 samba[2878]   registered class 'MAPIStoreCalendarContext' as handler of 'calendar' contexts

2016-08-13 23:34:48.829 samba[2878]   registered class 'MAPIStoreOutboxContext' as handler of 'outbox' contexts

2016-08-13 23:34:48.829 samba[2878]   registered class 'MAPIStoreTasksContext' as handler of 'tasks' contexts

2016-08-13 23:34:48.829 samba[2878]   registered class 'MAPIStoreContactsContext' as handler of 'contacts' contexts

2016-08-13 23:34:48.829 samba[2878]   registered class 'MAPIStoreMailContext' as handler of 'mail' contexts

2016-08-13 23:34:51.084 samba[2878] [SOGo: sogo_backend_list_contexts:347] - EXCEPTION: IOException, reason: IMAP connection failed, backtrace:

                /usr/lib/libgnustep-base.so.1.24(+0x22f2a3) [0x7f7716f002a3]

                /usr/lib/libgnustep-base.so.1.24(+0x22ffdc) [0x7f7716f00fdc]

                /usr/lib/libgnustep-base.so.1.24(+0x22fbc3) [0x7f7716f00bc3]

                /usr/lib/GNUstep/SOGo/Mailer.SOGo/./Mailer(+0x32a07) [0x7f770f156a07]

                /usr/lib/GNUstep/SOGo/Mailer.SOGo/./Mailer(+0x32dd8) [0x7f770f156dd8]

                /usr/lib/GNUstep/SOGo/SOGoBackend.MAPIStore/./SOGoBackend(+0x64892) [0x7f770d74d892]

                /usr/lib/GNUstep/SOGo/SOGoBackend.MAPIStore/./SOGoBackend(+0x80d15) [0x7f770d769d15]

                /usr/lib/GNUstep/SOGo/SOGoBackend.MAPIStore/./SOGoBackend(+0x6c364) [0x7f770d755364]

                /usr/lib/x86_64-linux-gnu/mapistore_backends/SOGo.so(+0x3488) [0x7f77177ea488]

                /usr/lib/x86_64-linux-gnu/libmapistore.so.0(mapistore_backend_list_contexts+0x9e) [0x7f7719dd4610]

                /usr/lib/x86_64-linux-gnu/libmapistore.so.0(mapistore_list_contexts_for_user+0x56) [0x7f7719dcfb06]

                /usr/lib/x86_64-linux-gnu/openchange/dcerpc_mapiproxy_server/exchange_emsmdb.so(emsmdbp_mailbox_provision+0xcc) [0x7f77189f96c6]

                /usr/lib/x86_64-linux-gnu/openchange/dcerpc_mapiproxy_server/exchange_emsmdb.so(+0x216eb) [0x7f77189fc6eb]

                /usr/lib/x86_64-linux-gnu/openchange/dcerpc_mapiproxy_server/exchange_emsmdb.so(EcDoRpc_RopLogon+0x144) [0x7f77189fce19]

                /usr/lib/x86_64-linux-gnu/openchange/dcerpc_mapiproxy_server/exchange_emsmdb.so(+0xe3db) [0x7f77189e93db]

                /usr/lib/x86_64-linux-gnu/openchange/dcerpc_mapiproxy_server/exchange_emsmdb.so(+0xf8f8) [0x7f77189ea8f8]

                /usr/lib/x86_64-linux-gnu/openchange/dcerpc_mapiproxy_server/exchange_emsmdb.so(+0x1017a) [0x7f77189eb17a]

                /usr/lib/x86_64-linux-gnu/libmapiproxy.so.0(mapiproxy_server_dispatch+0xad) [0x7f771b3dab8f]

                /usr/lib/x86_64-linux-gnu/samba/dcerpc_server/dcesrv_mapiproxy.so(+0x165e2) [0x7f771b6325e2]

                /usr/lib/x86_64-linux-gnu/libdcerpc-server.so.0(+0x68022) [0x7f7729ddd022]

                /usr/lib/x86_64-linux-gnu/libdcerpc-binding.so.0(+0x116d7) [0x7f773799e6d7]

                /usr/lib/x86_64-linux-gnu/samba/libsamba-sockets.so.0(+0x9629) [0x7f77342f2629]

                /usr/lib/x86_64-linux-gnu/samba/libsamba-sockets.so.0(+0x853b) [0x7f77342f153b]

                /usr/lib/x86_64-linux-gnu/libtevent.so.0(tevent_common_loop_immediate+0xd4) [0x7f7737341594]

                /usr/lib/x86_64-linux-gnu/libtevent.so.0(+0x944e) [0x7f773734644e]

                /usr/lib/x86_64-linux-gnu/libtevent.so.0(+0x7b57) [0x7f7737344b57]

                /usr/lib/x86_64-linux-gnu/libtevent.so.0(_tevent_loop_once+0x8d) [0x7f7737340d3d]

                /usr/lib/x86_64-linux-gnu/libtevent.so.0(tevent_common_loop_wait+0x1b) [0x7f7737340edb]

                /usr/lib/x86_64-linux-gnu/libtevent.so.0(+0x7af7) [0x7f7737344af7]

                /usr/lib/x86_64-linux-gnu/samba/process_model/standard.so(+0x1c37) [0x7f772cdc4c37]

                /usr/lib/x86_64-linux-gnu/samba/libservice.so.0(task_server_startup+0x4a) [0x7f773a0598fa]

                /usr/lib/x86_64-linux-gnu/samba/libservice.so.0(server_service_startup+0x92) [0x7f773a058542]

                /usr/sbin/samba(+0x96c3) [0x55c5a1c8a6c3]

                /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7f7736d88830]

                /usr/sbin/samba(_start+0x29) [0x55c5a1c86a69]

2016-08-13 23:34:51.086 samba[2878] Backtrace using execinfo.h:

2016-08-13 23:34:51.086 samba[2878] /usr/lib/x86_64-linux-gnu/mapistore_backends/SOGo.so(+0x2740) [0x7f77177e9740]

2016-08-13 23:34:51.086 samba[2878] /usr/lib/x86_64-linux-gnu/mapistore_backends/SOGo.so(+0x352d) [0x7f77177ea52d]

2016-08-13 23:34:51.086 samba[2878] /usr/lib/x86_64-linux-gnu/libmapistore.so.0(mapistore_backend_list_contexts+0x9e) [0x7f7719dd4610]

2016-08-13 23:34:51.086 samba[2878] /usr/lib/x86_64-linux-gnu/libmapistore.so.0(mapistore_list_contexts_for_user+0x56) [0x7f7719dcfb06]

2016-08-13 23:34:51.086 samba[2878] /usr/lib/x86_64-linux-gnu/openchange/dcerpc_mapiproxy_server/exchange_emsmdb.so(emsmdbp_mailbox_provision+0xcc) [0x7f77189f96c6]

2016-08-13 23:34:51.086 samba[2878] /usr/lib/x86_64-linux-gnu/openchange/dcerpc_mapiproxy_server/exchange_emsmdb.so(+0x216eb) [0x7f77189fc6eb]

2016-08-13 23:34:51.087 samba[2878] /usr/lib/x86_64-linux-gnu/openchange/dcerpc_mapiproxy_server/exchange_emsmdb.so(EcDoRpc_RopLogon+0x144) [0x7f77189fce19]

2016-08-13 23:34:51.087 samba[2878] /usr/lib/x86_64-linux-gnu/openchange/dcerpc_mapiproxy_server/exchange_emsmdb.so(+0xe3db) [0x7f77189e93db]

2016-08-13 23:34:51.087 samba[2878] /usr/lib/x86_64-linux-gnu/openchange/dcerpc_mapiproxy_server/exchange_emsmdb.so(+0xf8f8) [0x7f77189ea8f8]

2016-08-13 23:34:51.087 samba[2878] /usr/lib/x86_64-linux-gnu/openchange/dcerpc_mapiproxy_server/exchange_emsmdb.so(+0x1017a) [0x7f77189eb17a]

2016-08-13 23:34:51.087 samba[2878] /usr/lib/x86_64-linux-gnu/libmapiproxy.so.0(mapiproxy_server_dispatch+0xad) [0x7f771b3dab8f]

2016-08-13 23:34:51.087 samba[2878] /usr/lib/x86_64-linux-gnu/samba/dcerpc_server/dcesrv_mapiproxy.so(+0x165e2) [0x7f771b6325e2]

2016-08-13 23:34:51.087 samba[2878] /usr/lib/x86_64-linux-gnu/libdcerpc-server.so.0(+0x68022) [0x7f7729ddd022]

2016-08-13 23:34:51.087 samba[2878] /usr/lib/x86_64-linux-gnu/libdcerpc-binding.so.0(+0x116d7) [0x7f773799e6d7]

2016-08-13 23:34:51.087 samba[2878] /usr/lib/x86_64-linux-gnu/samba/libsamba-sockets.so.0(+0x9629) [0x7f77342f2629]

2016-08-13 23:34:51.087 samba[2878] /usr/lib/x86_64-linux-gnu/samba/libsamba-sockets.so.0(+0x853b) [0x7f77342f153b]

2016-08-13 23:34:51.087 samba[2878] /usr/lib/x86_64-linux-gnu/libtevent.so.0(tevent_common_loop_immediate+0xd4) [0x7f7737341594]

2016-08-13 23:34:51.087 samba[2878] /usr/lib/x86_64-linux-gnu/libtevent.so.0(+0x944e) [0x7f773734644e]

2016-08-13 23:34:51.087 samba[2878] /usr/lib/x86_64-linux-gnu/libtevent.so.0(+0x7b57) [0x7f7737344b57]

2016-08-13 23:34:51.087 samba[2878] /usr/lib/x86_64-linux-gnu/libtevent.so.0(_tevent_loop_once+0x8d) [0x7f7737340d3d]

2016-08-13 23:34:51.087 samba[2878] /usr/lib/x86_64-linux-gnu/libtevent.so.0(tevent_common_loop_wait+0x1b) [0x7f7737340edb]

2016-08-13 23:34:51.088 samba[2878] /usr/lib/x86_64-linux-gnu/libtevent.so.0(+0x7af7) [0x7f7737344af7]

2016-08-13 23:34:51.088 samba[2878] /usr/lib/x86_64-linux-gnu/samba/process_model/standard.so(+0x1c37) [0x7f772cdc4c37]

2016-08-13 23:34:51.088 samba[2878] /usr/lib/x86_64-linux-gnu/samba/libservice.so.0(task_server_startup+0x4a) [0x7f773a0598fa]

2016-08-13 23:34:51.088 samba[2878] /usr/lib/x86_64-linux-gnu/samba/libservice.so.0(server_service_startup+0x92) [0x7f773a058542]

2016-08-13 23:34:51.088 samba[2878] /usr/sbin/samba(+0x96c3) [0x55c5a1c8a6c3]

2016-08-13 23:34:51.088 samba[2878] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7f7736d88830]

2016-08-13 23:34:51.088 samba[2878] /usr/sbin/samba(_start+0x29) [0x55c5a1c86a69]

[2016/08/13 23:34:51.102355,  0] libmapi/oc_log.c:52(oc_logv)

  mapiproxy/servers/default/emsmdb/dcesrv_exchange_emsmdb.c:304(EcDoRpc_process_transaction): MAPI Rop: 0xfe (6)

[...]

 

 

 

 

My SMB Config:

 

                                                               # Global parameters

                                                               [global]

                                                               server role = active directory domain controller

                                                               workgroup = MYDOMAIN

                                                               realm = MYDOMAIN.local

                                                               netbios name = vmmail

                                                               passdb backend = samba4

                                                               dns forwarder = MYDNSIP

 

                                                               ### Configuration required by OpenChange server ###

                                                               dsdb:schema update allowed = true

                                                               dcerpc endpoint servers = +epmapper, +mapiproxy, +dnsserver

                                                               dcerpc_mapiproxy:server = true

                                                               dcerpc_mapiproxy:interfaces = exchange_emsmdb, exchange_nsp, exchange_ds_rfr

                                                               dcerpc_mapiproxy:ndrdump = true

 

                                                               mapistore:namedproperties = mysql

                                                               namedproperties:mysql_user = openchange-user

                                                               namedproperties:mysql_pass = MYPASSORD

                                                               namedproperties:mysql_host = localhost

                                                               namedproperties:mysql_db = openchange

 

                                                               mapistore:indexing_backend = mysql://openchange-user:MYPASSORD@localhost/openchange

                                                               mapiproxy:openchangedb = mysql://openchange-user:MYPASSORD@localhost/openchange

                                                               ldap server require strong auth = no

                                                               ### Configuration required by OpenChange server ###

 

                                                               [netlogon]

                                                               path = /var/lib/samba/sysvol/MYDOMAIN.local/scripts

                                                               read _only_ = No

 

                                                               [sysvol]

                                                               path = /var/lib/samba/sysvol

                                                               read _only_ = No

 

 

 

My sogo.conf

 

 

                                                               {

                                                               SOGoUserSources = (

                                                               {

                                                               CNFieldName = cn;

                                                               IDFieldName = cn;

                                                               UIDFieldName = sAMAccountName;

                                                               baseDN = "cn=Users,dc=MYDOMAIN,dc=local";

                                                               bindDN = "cn=administrator,cn=Users,dc=MYDOMAIN,dc=local";

                                                               bindFields = (sAMAccountName);

                                                               bindPassword = "MYBINDPASSWORD";

                                                               canAuthenticate = YES;

                                                               displayName = "Shared Addresses";

                                                               hostname = "ldap://127.0.0.1:389/";

                                                               id = public;

                                                               isAddressBook = YES;

                                                               type = ldap;

                                                               }

                                                               );

                                                               SOGoAppointmentSendEMailNotifications = YES;

                                                               //SOGoSuperUsernames = (administrator);

 

                                                               SOGoProfileURL = mysql://sogo:MYPASSORD@127.0.0.1:3306/sogo/sogo_user_profile;

                                                               OCSFolderInfoURL = mysql://sogo:MYPASSORD@127.0.0.1:3306/sogo/sogo_folder_info;

                                                               OCSEMailAlarmsFolderURL = mysql://sogo:MYPASSORD@127.0.0.1:3306/sogo/sogo_alarms_folder;

                                                               OCSSessionsFolderURL = mysql://sogo:MYPASSORD@127.0.0.1:3306/sogo/sogo_sessions_info;

 

                                                               SOGoSieveScriptsEnabled = YES;

                                                               SOGoForwardEnabled = YES;

                                                               SOGoVacationEnabled = YES;

                                                               SOGoEnableEMailAlarms = YES;

                                                               SOGoTimeZone = Europe/Berlin;

                                                               SOGoIMAPServer = 127.0.0.1:1143;

                                                               SOGoSieveServer = sieve://127.0.0.1:4190;

                                                               SOGoMailingMechanism = smtp;

                                                               SOGoSMTPServer = 127.0.0.1;

                                                               SOGoCalendarDefaultRoles = ("PublicDAndTViewer");

 

                                                               //for big mailboxes.

                                                               SOGoMaximumSyncWindowSize = 25;

                                                               // test for many Outlooks ...

                                                               WOWorkersCount = 25;

 

                                                               /* Debugging */

                                                               //LDAPDebugEnabled = YES;

                                                               //MySQL4DebugEnabled = YES;

                                                               //OCSFolderManagerSQLDebugEnabled = YES;

                                                               //PGDebugEnabled = YES;

                                                               //SOGoDebugRequests = YES;

                                                               //WODebugTakeValues = YES;

                                                               SOGoUIxDebugEnabled = YES;

                                                               //SaxDebugReaderFactory = YES;

                                                               //SaxObjectDecoderDebugEnabled = YES;

                                                               //SoDebugObjectTraversal = YES;

                                                               //SoSecurityManagerDebugEnabled = YES;

                                                               //VSSaxDriverDebugEnabled = YES;

                                                               //WODebugResourceLookup = YES;

                                                               //WEResourceManagerDebugEnabled = YES;

                                                               //WEResourceManagerComponentDebugEnabled = YES;

                                                               }

                                                

                                                                                                                                                                                              

                                                                                                                                                                                              

My ocsmanager.ini

 

 

 

                                                               [DEFAULT]

                                                               debug = true

                                                               email_to = administrator@MYDOMAIN.local

                                                               smtp_server = localhost

                                                               error_email_from = administrator@MYDOMAIN.local

 

                                                               [main]

                                                               auth = ldap

                                                               mapistore_root = /var/lib/samba/private

                                                               mapistore_data = /var/lib/samba/private/mapistore

                                                               debug = yes

 

                                                               [auth:file]

 

                                                               [auth:ldap]

                                                               host = ldap://127.0.0.1

                                                               port = 389

                                                               bind_dn = cn=administrator,cn=Users,dc=MYDOMAIN,dc=local

                                                               bind_pw = MYBINDPASSWORD

                                                               basedn = cn=Users,dc=MYDOMAIN,dc=local

 

                                                               [auth:single]

                                                               username = openchange

                                                               # password is test

                                                               password = {SSHA}MYSSHAPASSWORD

 

                                                               [server:main]

                                                               use = egg:Paste#http

                                                               host = 127.0.0.1

                                                               port = 5000

                                                               protocol_version = HTTP/1.1

 

                                                               [app:main]

                                                               use = egg:ocsmanager

                                                               full_stack = true

                                                               static_files = true

                                                               cache_dir = %(here)s/data

                                                               beaker.session.key = ocsmanager

                                                               beaker.session.secret = MYSECRET

                                                               app_instance_uuid = {ee533ebc-f266-49d1-ae10-d017ee6aa98c}

                                                               NTLMAUTHHANDLER_WORKDIR = /var/cache/ntlmauthhandler

                                                               SAMBA_HOST = 127.0.0.1

 

                                                               [rpcproxy:ldap]

                                                               host = localhost

                                                               port = 389

                                                               basedn = CN=Users,DC=MYDOMAIN,DC=local

                                                               set debug = true

 

                                                               [autodiscover]

 

                                                               [autodiscover:rpcproxy]

                                                               enabled = true

 

                                                               [outofoffice]

 

                                                               [outofoffice:file]

                                                               sieve_script_path = /var/vmail/$domain/$user/sieve-script

                                                               sieve_script_path_mkdir = false

 

                                                               [outofoffice:managesieve]

                                                               secret = secret

 

                                                               # Logging configuration

                                                               [loggers]

                                                               keys = root

 

                                                               [handlers]

                                                               keys = console

 

                                                               [formatters]

                                                               keys = generic

 

                                                               [logger_root]

                                                               level = INFO

                                                               handlers = console

 

                                                               [handler_console]

                                                               class = StreamHandler

                                                               args = (sys.stderr,)

                                                               level = NOTSET

                                                               formatter = generic

 

                                                               [formatter_generic]

                                                               format = %(asctime)s %(levelname)-5.5s [%(name)s] [%(threadName)s] %(message)s

 

--
users@sogo.nu
https://inverse.ca/sogo/lists

Reply via email to