Re: [SOGo] rpcproxy not working with outlook 2007 / 2010

2015-10-25 Thread Chris Coleman


On 10/23/2015 4:13 PM, Steve Ankeny wrote:

On 10/23/2015 09:32 AM, Chris Coleman wrote:

And this tip:
"If you face strange issues from Microsoft Outlook, you might want to 
remove any data associated with the user from the SOGo server and 
recreate a Microsoft Outlook profile. To remove any data associated 
to a user, use the openchange_cleanup.py script distributed with 
sogo. The script can be found in |/usr/share/doc/sogo/| 
(|/usr/share/sogo-VERSION/| on |RHEL|). To reset a user, run the 
script as root: |python openchange_cleanup.py username|. See the 
usage output for additional options."


Chris . . .

What is meant by "strange issues?"  Can you give examples?

For instance, I'm receiving, "The name cannot be resolved.  The 
requested operation failed because no search criteria were given to 
the Microsoft Exchange Address Book." -- with errors in 
'/ocsmanager.log' --


Starting server in PID 1885.
serving on http://127.0.0.1:5000
2015-10-17 07:44:28,313 INFO [openchange.web.auth.NTLMAuthHandler] 
[worker 0] client did not pass auth cookie
2015-10-17 07:44:28,321 INFO [openchange.web.auth.NTLMAuthHandler] 
[worker 1] client did not pass auth cookie
2015-10-17 07:44:28,358 INFO [openchange.web.auth.NTLMAuthHandler] 
[worker 1] acquiring lock 
/var/cache/ntlmauthhandler/ntlm-127.0.0.1.lock (1885)
2015-10-17 07:44:29,019 INFO [openchange.web.auth.NTLMAuthHandler] 
[worker 2] acquiring lock 
/var/cache/ntlmauthhandler/ntlm-127.0.0.1.lock (1885)


Would clearing out any existing data and recreating an Outlook profile 
benefit my users?




Steve,

* That quote ("If you face strange issues from Microsoft Outlook, you 
might want to [...] run the script as root: openchange_cleanup.py 
username See the usage output for additional options.") comes from 
openchange 2.0 release notes at this URL:

http://www.openchange.org/developers/relnotes/2.0-quadrant.html
in the section "Known Issues from SOGo backend".
You can and certainly should try it out, clear out and recreate an 
Outlook profile.
I'd test it first.  Make new Outlook user profile, send it some email, 
then use that command line to clear it out (openchange_cleanup.py 
username), see what that does. Recreate the user profile it if the user 
profile for that username was truly removed completely.  Just to be 
totally sure that script works properly, before trying to run the script 
on your real user profile.


* Here is another quote from the same 2.0 release notes, explaining 
exactly how openchange and sogo interoperate.



   "Benefits of SOGo collaboration

OpenChange server and SOGo ( http://www.sogo.nu ) are both groupware 
servers sharing mutual interest in collaborating for the greatest 
benefits of end users. The cement of this cooperation lies in a backend 
developed by Inverse Inc on top of OpenChange API that plugs SOGo 
storage to OpenChange server through SOGo libraries. From a general 
perspective, it can be described as:


 * *OpenChange uses SOGo libraries to store Outlook data*
 * *SOGo uses OpenChange to serve Outlook clients*

In practice, it means that users primarily interested in an Exchange 
compatible server interoperable with Microsoft Outlook clients don't 
need anything but Samba4 and OpenChange. There is no need to run SOGo 
server.


In the meanwhile, as soon as users are looking for Webmail access, 
synchronization with Mozilla Thunderbird/Lighning, Apple iPhone or 
Blackberry, then SOGo server is needed."


* Here is yet another page well worth reading because it explains in 
more detail how OpenChange uses SOGo to store the user's Outlook (MAPI) 
information in what it calls a "MAPIStore".

http://www.openchange.org/documentation/programming/mapistore_python/concepts.html

* I highly suggest having a good read of this series of pages because 
they provide a more in depth look at how OpenChange and SOGo talk to one 
another.


** Did you know the "realm", which you provide in the configuration, 
(for example: mycompany.local which is 15 characters in length ) must be 
14 characters or less in length, to satisfy a Microsoft realm name 
length limit, otherwise strange and/or unpredictable results may occur? 
I didn't know that.  And it's undocumented in the SOGo documentation for 
Native Outlook aka OpenChange, 
http://www.sogo.nu/files/docs/SOGo%20Native%20Microsoft%20Outlook%20Configuration.pdf 
. Now I know, after having read this openchange "docs" and "cookbook"!

Here is the reference explaining this (it's in the first section):
http://www.openchange.org/cookbook/configuring.html
"For the purpose of this documentation, arbitrary domain (|OC|) and 
realm (|OC.LOCAL|) and passwords (|adminpass| and |user password|) have 
been chosen. Feel free to adjust values to match your requirements.


However, when configuring the domain name during OS installation, it is 
very important *NOT* to choose a realm which length is more or equal to 
15 characters. This is a limit on Windows domain side which may result 
in 

RE: [SOGo] rpcproxy not working with outlook 2007 / 2010

2015-10-23 Thread DurgaPrasad - DatasoftComnet
Hi all,

 

Can someone respond on this please.

 

Regards

DP

 

From: DurgaPrasad - DatasoftComnet [mailto:d...@datasoftcomnet.com] 
Sent: 20 October 2015 20:55
To: 'users@sogo.nu'
Subject: RE: [SOGo] rpcproxy not working with outlook 2007 / 2010

 

Hello all,

 

I have  installed sogo using apt-get. 

Followed the guide below. SOGo Native Microsoft Outlook Configuration.pdf 
<http://www.sogo.nu/files/docs/SOGo%20Native%20Microsoft%20Outlook%20Configuration.pdf>
  (PDF)

 

Can someone analyse and let me know. I have tried installing from scratch 
(formatting and installing) 2 or 3 times same situation.

 

Outlook 2007/2010 is not able to connect either through IP or name (via hosts 
file) using native MAPI.
Outlook 2007/2010 not connecting using Outlook Anywhere either.
The certificate is a valid paid cert

 

Activesync in 2013 works but I don’t want that.

 

Regards

DP

 

From: users-requ...@sogo.nu [mailto:users-requ...@sogo.nu] On Behalf Of Martin 
Simovic
Sent: 05 October 2015 15:59
To: users@sogo.nu
Subject: Re: [SOGo] rpcproxy not working with outlook 2007 / 2010

 

Hi,

 

 

On 04 Oct 2015, at 16:13, <d...@datasoftcomnet.com> <d...@datasoftcomnet.com> 
wrote:

 

Hello all,
Ive checked thoroughly that outlook is not able to wotj with sogo using native
mode.
below are the facts.

Environment
Ubuntu LTS trusty, Samba4 native mode., dovecot, postfix,sogo, ocsmanager with
rpcproxy installed.
Webmail  - working
Activesync - working
IMAP/POP3 - working.

Outlook 2007/2010 is not able to connect either through IP or name (via hosts
file) using native MAPI. (does this work on LAN only)
Outlook 2007/2010 not connecting using Outlook Anywhere either.
The certificate is a valid paid cert
this is what I get in the access.log of apache2

[04/Oct/2015:19:34:51 +0530] "RPC_IN_DATA /rpc/rpcproxy.dll?
mail.mydomain.com:6004 HTTP/1.1" 401 5757 "-" "MSRPC"
[04/Oct/2015:19:34:52 +0530] "RPC_OUT_DATA /rpc/rpcproxy.dll?
mail.mydomain.com:6004 HTTP/1.1" 401 5757 "-" "MSRPC"

mail.mydomain.com is a placeholder. the 6004 used to be 6002 an hour back so
it might not be relavent.

when I use activesync the username is seen
POST /Microsoft-Server-ActiveSync?
User=x...@mydomain.com=JF48EU1D7D0LL5QBAWWS3EVDQ0=iPhone=Ping
HTTP/1.1" 200 825 "-" "Apple-iPhone7C1/1301.404"

Can someone through some light on this?

 

I order to help you please post your smb.conf and ocsmanager.ini files. It’d 
also help if you stated how you installed your environment (compiling from 
source, installing from packages - if so, wha is package source (sogo , 
zentyal?)

 

Regards

Martin.

 

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

Re: [SOGo] rpcproxy not working with outlook 2007 / 2010

2015-10-23 Thread Chris Coleman

On 10/23/2015 7:29 AM, DurgaPrasad - DatasoftComnet wrote:


Hi all,

Can someone respond on this please.

Regards

DP

*From:*DurgaPrasad - DatasoftComnet [mailto:d...@datasoftcomnet.com]
*Sent:* 20 October 2015 20:55
*To:* 'users@sogo.nu'
*Subject:* RE: [SOGo] rpcproxy not working with outlook 2007 / 2010

Hello all,

I have  installed sogo using apt-get.

Followed the guide below. SOGo Native Microsoft Outlook 
Configuration.pdf 
<http://www.sogo.nu/files/docs/SOGo%20Native%20Microsoft%20Outlook%20Configuration.pdf> 
(PDF)


Can someone analyse and let me know. I have tried installing from 
scratch (formatting and installing) 2 or 3 times same situation.


Outlook 2007/2010 is not able to connect either through IP or name 
(via hosts file) using native MAPI.

Outlook 2007/2010 not connecting using Outlook Anywhere either.
The certificate is a valid paid cert

Activesync in 2013 works but I don’t want that.

Regards

DP

*From:*users-requ...@sogo.nu <mailto:users-requ...@sogo.nu> 
[mailto:users-requ...@sogo.nu] *On Behalf Of *Martin Simovic

*Sent:* 05 October 2015 15:59
*To:* users@sogo.nu <mailto:users@sogo.nu>
*Subject:* Re: [SOGo] rpcproxy not working with outlook 2007 / 2010

Hi,

On 04 Oct 2015, at 16:13, <d...@datasoftcomnet.com
<mailto:d...@datasoftcomnet.com>> <d...@datasoftcomnet.com
<mailto:d...@datasoftcomnet.com>> wrote:

Hello all,
Ive checked thoroughly that outlook is not able to wotj with sogo
using native
mode.
below are the facts.

Environment
Ubuntu LTS trusty, Samba4 native mode., dovecot, postfix,sogo,
ocsmanager with
rpcproxy installed.
Webmail  - working
Activesync - working
IMAP/POP3 - working.

Outlook 2007/2010 is not able to connect either through IP or name
(via hosts
file) using native MAPI. (does this work on LAN only)
Outlook 2007/2010 not connecting using Outlook Anywhere either.
The certificate is a valid paid cert
this is what I get in the access.log of apache2

[04/Oct/2015:19:34:51 +0530] "RPC_IN_DATA /rpc/rpcproxy.dll?
mail.mydomain.com <http://mail.mydomain.com>:6004 HTTP/1.1" 401
5757 "-" "MSRPC"
[04/Oct/2015:19:34:52 +0530] "RPC_OUT_DATA /rpc/rpcproxy.dll?
mail.mydomain.com <http://mail.mydomain.com>:6004 HTTP/1.1" 401
5757 "-" "MSRPC"

mail.mydomain.com <http://mail.mydomain.com> is a placeholder. the
6004 used to be 6002 an hour back so
it might not be relavent.

when I use activesync the username is seen
POST /Microsoft-Server-ActiveSync?
User=x...@mydomain.com

<mailto:User=x...@mydomain.com>=JF48EU1D7D0LL5QBAWWS3EVDQ0=iPhone=Ping
HTTP/1.1" 200 825 "-" "Apple-iPhone7C1/1301.404"

Can someone through some light on this?

I order to help you please post your smb.conf and ocsmanager.ini 
files. It’d also help if you stated how you installed your environment 
(compiling from source, installing from packages - if so, wha is 
package source (sogo , zentyal?)


Regards

Martin.


Durga,

I think the documentation is not perfect.

If you are having trouble logging in with native Outlook clients (MAPI), 
and same trouble with Outlook Anywhere, then you are missing the 
OpenChange part.  This OpenChange talks to SOGo for storing Outlook 
data, and talks to users Outlook clients with the outlook/exchange 
specific microsoft protocols.


Read more here:
http://www.openchange.org/developers/relnotes/2.0-quadrant.html

See section "Benefits of SOGo collaboration".

And this tip:
"If you face strange issues from Microsoft Outlook, you might want to 
remove any data associated with the user from the SOGo server and 
recreate a Microsoft Outlook profile. To remove any data associated to a 
user, use the openchange_cleanup.py script distributed with sogo. The 
script can be found in |/usr/share/doc/sogo/| 
(|/usr/share/sogo-VERSION/| on |RHEL|). To reset a user, run the script 
as root: |python openchange_cleanup.py username|. See the usage output 
for additional options."


The current release notes May 2015:
http://www.openchange.org/developers/relnotes/2.3-vulcan.html

If you have an issue with openchange, then click New Issue on the 
openchange github.

https://github.com/openchange/openchange/issues

If you want an easy solution for outlook compatible email server, based 
on samba4, sogo and openchange, you could try the free zentyal community 
server, it manages the configuration files for you, so you don't have to 
learn how to set them manually.


Good luck. Post back your results.

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

Re: [SOGo] rpcproxy not working with outlook 2007 / 2010

2015-10-23 Thread Steve Ankeny

On 10/23/2015 09:32 AM, Chris Coleman wrote:

And this tip:
"If you face strange issues from Microsoft Outlook, you might want to 
remove any data associated with the user from the SOGo server and 
recreate a Microsoft Outlook profile. To remove any data associated to 
a user, use the openchange_cleanup.py script distributed with sogo. 
The script can be found in |/usr/share/doc/sogo/| 
(|/usr/share/sogo-VERSION/| on |RHEL|). To reset a user, run the 
script as root: |python openchange_cleanup.py username|. See the usage 
output for additional options."


Chris . . .

What is meant by "strange issues?"  Can you give examples?

For instance, I'm receiving, "The name cannot be resolved.  The 
requested operation failed because no search criteria were given to the 
Microsoft Exchange Address Book." -- with errors in '/ocsmanager.log' --


Starting server in PID 1885.
serving on http://127.0.0.1:5000
2015-10-17 07:44:28,313 INFO  [openchange.web.auth.NTLMAuthHandler] 
[worker 0] client did not pass auth cookie
2015-10-17 07:44:28,321 INFO  [openchange.web.auth.NTLMAuthHandler] 
[worker 1] client did not pass auth cookie
2015-10-17 07:44:28,358 INFO  [openchange.web.auth.NTLMAuthHandler] 
[worker 1] acquiring lock /var/cache/ntlmauthhandler/ntlm-127.0.0.1.lock 
(1885)
2015-10-17 07:44:29,019 INFO  [openchange.web.auth.NTLMAuthHandler] 
[worker 2] acquiring lock /var/cache/ntlmauthhandler/ntlm-127.0.0.1.lock 
(1885)


Would clearing out any existing data and recreating an Outlook profile 
benefit my users?


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

RE: [SOGo] rpcproxy not working with outlook 2007 / 2010

2015-10-20 Thread DurgaPrasad - DatasoftComnet
Hello all,

 

I have  installed sogo using apt-get. 

Followed the guide below. SOGo Native Microsoft Outlook Configuration.pdf 
<http://www.sogo.nu/files/docs/SOGo%20Native%20Microsoft%20Outlook%20Configuration.pdf>
  (PDF)

 

Can someone analyse and let me know. I have tried installing from scratch 
(formatting and installing) 2 or 3 times same situation.

 

Outlook 2007/2010 is not able to connect either through IP or name (via hosts 
file) using native MAPI.
Outlook 2007/2010 not connecting using Outlook Anywhere either.
The certificate is a valid paid cert

 

Activesync in 2013 works but I don’t want that.

 

Regards

DP

 

From: users-requ...@sogo.nu [mailto:users-requ...@sogo.nu] On Behalf Of Martin 
Simovic
Sent: 05 October 2015 15:59
To: users@sogo.nu
Subject: Re: [SOGo] rpcproxy not working with outlook 2007 / 2010

 

Hi,

 

 

On 04 Oct 2015, at 16:13, <d...@datasoftcomnet.com> <d...@datasoftcomnet.com> 
wrote:

 

Hello all,
Ive checked thoroughly that outlook is not able to wotj with sogo using native
mode.
below are the facts.

Environment
Ubuntu LTS trusty, Samba4 native mode., dovecot, postfix,sogo, ocsmanager with
rpcproxy installed.
Webmail  - working
Activesync - working
IMAP/POP3 - working.

Outlook 2007/2010 is not able to connect either through IP or name (via hosts
file) using native MAPI. (does this work on LAN only)
Outlook 2007/2010 not connecting using Outlook Anywhere either.
The certificate is a valid paid cert
this is what I get in the access.log of apache2

[04/Oct/2015:19:34:51 +0530] "RPC_IN_DATA /rpc/rpcproxy.dll?
mail.mydomain.com:6004 HTTP/1.1" 401 5757 "-" "MSRPC"
[04/Oct/2015:19:34:52 +0530] "RPC_OUT_DATA /rpc/rpcproxy.dll?
mail.mydomain.com:6004 HTTP/1.1" 401 5757 "-" "MSRPC"

mail.mydomain.com is a placeholder. the 6004 used to be 6002 an hour back so
it might not be relavent.

when I use activesync the username is seen
POST /Microsoft-Server-ActiveSync?
User=x...@mydomain.com=JF48EU1D7D0LL5QBAWWS3EVDQ0=iPhone=Ping
HTTP/1.1" 200 825 "-" "Apple-iPhone7C1/1301.404"

Can someone through some light on this?

 

I order to help you please post your smb.conf and ocsmanager.ini files. It’d 
also help if you stated how you installed your environment (compiling from 
source, installing from packages - if so, wha is package source (sogo , 
zentyal?)

 

Regards

Martin.

 

root@mail:~# cat /etc/samba/smb.conf
# Global parameters
[global]
workgroup = YY
realm = YY.in
netbios name = mail
passdb backend = samba4
server role = active directory domain controller
dns forwarder = 8.8.8.8

### 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
### Configuration required by OpenChange server ###

mapistore:namedproperties = mysql
namedproperties:mysql_user = openchange-user
namedproperties:mysql_pass = YY
namedproperties:mysql_host = localhost
namedproperties:mysql_db = openchange

mapistore:indexing_backend = 
mysql://openchange-user:YY@localhost/openchange
mapiproxy:openchangedb = mysql://openchange-user:YY@localhost/openchange


load printers = No
printing = bsd
printcap name = /dev/null
disable spoolss = Yes

[netlogon]
path = /var/lib/samba/sysvol/YY.in/scripts
read only = No

[sysvol]
path = /var/lib/samba/sysvol
read only = No
root@mail:~#

##

root@mail:~# cat /etc/ocsmanager/ocsmanager.ini
#
# ocsmanager - Pylons configuration
#
# The %(here)s variable will be replaced with the parent directory of this file
#
[DEFAULT]
debug = true
email_to = d...@yy.in
smtp_server = localhost
error_email_from = paste@localhost

[main]
# Possible authentication system
# auth = file
#auth = ldap
auth = ldap
mapistore_root = /var/lib/samba/private
mapistore_data = /var/lib/samba/private/mapistore
debug = yes

[auth:file]
#file =

[auth:ldap]
host = ldap://127.0.0.1
port = 389
bind_dn = cn=Administrator,cn=Users,dc=YY,dc=in
bind_pw = MYLDAPPASS
basedn = cn=Users,dc=YY,dc=in
#filter = (cn=%s)
#attrs = userPassword, x-isActive

[auth:single]
username = openchange
# password is test
password = {SSHA}I6Hy5Wv0wuxyXvMBFWFQDVVN12_CLaX9

[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 = SDyKK3dKyDgW0mlpqttTMGU1f
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=YY,D

Re: [SOGo] rpcproxy not working with outlook 2007 / 2010

2015-10-05 Thread Martin Simovic
Hi,


> On 04 Oct 2015, at 16:13,   
> wrote:
> 
> Hello all,
> Ive checked thoroughly that outlook is not able to wotj with sogo using native
> mode.
> below are the facts.
> 
> Environment
> Ubuntu LTS trusty, Samba4 native mode., dovecot, postfix,sogo, ocsmanager with
> rpcproxy installed.
> Webmail  - working
> Activesync - working
> IMAP/POP3 - working.
> 
> Outlook 2007/2010 is not able to connect either through IP or name (via hosts
> file) using native MAPI. (does this work on LAN only)
> Outlook 2007/2010 not connecting using Outlook Anywhere either.
> The certificate is a valid paid cert
> this is what I get in the access.log of apache2
> 
> [04/Oct/2015:19:34:51 +0530] "RPC_IN_DATA /rpc/rpcproxy.dll?
> mail.mydomain.com:6004 HTTP/1.1" 401 5757 "-" "MSRPC"
> [04/Oct/2015:19:34:52 +0530] "RPC_OUT_DATA /rpc/rpcproxy.dll?
> mail.mydomain.com:6004 HTTP/1.1" 401 5757 "-" "MSRPC"
> 
> mail.mydomain.com is a placeholder. the 6004 used to be 6002 an hour back so
> it might not be relavent.
> 
> when I use activesync the username is seen
> POST /Microsoft-Server-ActiveSync?
> User=x...@mydomain.com=JF48EU1D7D0LL5QBAWWS3EVDQ0=iPhone=Ping
> HTTP/1.1" 200 825 "-" "Apple-iPhone7C1/1301.404"
> 
> Can someone through some light on this?

I order to help you please post your smb.conf and ocsmanager.ini files. It’d 
also help if you stated how you installed your environment (compiling from 
source, installing from packages - if so, wha is package source (sogo , 
zentyal?)

Regards
Martin.



smime.p7s
Description: S/MIME cryptographic signature