From michael.menge at zdv.uni-tuebingen.de Mon Oct 5 17:38:46 2015 From: michael.menge at zdv.uni-tuebingen.de (Michael Menge) Date: Mon, 05 Oct 2015 17:38:46 +0200 Subject: How to configure username for ActiveSync Message-ID: <20151005173846.Horde._FW0c2mCpkLpGUV9hxwGxOq@webmail.uni-tuebingen.de> Hi, we would like to use automx to configure ActiveSync Clients. The clients where able to receive a configuration from automx, but the username was set to the email address. As we don't use the email address but the loginid I tried to change it, but I couldn't find a config option. We use automx 0.10.1. Did I miss something? If not could this feature be implemented by automx or is it restricted by the protocol? Regards, Michael Menge -------------------------------------------------------------------------------- M.Menge Tel.: (49) 7071/29-70316 Universit?t T?bingen Fax.: (49) 7071/29-5912 Zentrum f?r Datenverarbeitung mail: michael.menge at zdv.uni-tuebingen.de W?chterstra?e 76 72074 T?bingen From c at roessner-network-solutions.com Wed Oct 7 09:17:05 2015 From: c at roessner-network-solutions.com (=?utf-8?Q?Christian_R=C3=B6=C3=9Fner?=) Date: Wed, 7 Oct 2015 09:17:05 +0200 Subject: Status updates Message-ID: Hi, unfortunately I did not have much time to work on automx in the last weeks. As I am on vacation right now and it is raining, I found some time to modify the current master branch. I dropped python <= 2.6 support, as I want to develop automx towards python 3 somewhere in time. I also used some 2to3 tweaks and tested the current code stage. Right now it seems to work for me, but I ask you also to test it and give some feedback (possibly on github; issue tracker). It does not work with python 3 at the moment, as I have to use new LDAP and SQL modules. The ones I used have not been ported to python 3 yet and I need to dive into their APIs. So at the moment automx still requires python 2.7 Concerning some questions here on the list, I was not able to answer them in short time. I feel sorry for this: Unfortunately I do not have an Exchange server and I never could test the ActiveSync-feature for myself. If you have trouble with it, I ask you to fill a bug report on Github with details abou your configuration and the results you expect/get. Best wishes Christian -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2449 bytes Desc: not available URL: From c at roessner-network-solutions.com Wed Oct 7 09:24:07 2015 From: c at roessner-network-solutions.com (=?utf-8?Q?Christian_R=C3=B6=C3=9Fner?=) Date: Wed, 7 Oct 2015 09:24:07 +0200 Subject: How to configure username for ActiveSync In-Reply-To: <20151005173846.Horde._FW0c2mCpkLpGUV9hxwGxOq@webmail.uni-tuebingen.de> References: <20151005173846.Horde._FW0c2mCpkLpGUV9hxwGxOq@webmail.uni-tuebingen.de> Message-ID: Hi, > we would like to use automx to configure ActiveSync Clients. The clients where able to receive > a configuration from automx, but the username was set to the email address. As we don't use > the email address but the loginid I tried to change it, but I couldn't find a config option. > > We use automx 0.10.1. Did I miss something? > If not could this feature be implemented by automx or is it restricted by the protocol? automx does not have a configuration option for this, yet. I will see, if I find time today to implement such a configuration option. Just to clarify: en:us Christian R??ner c at roessner.co <------------------- you talk about this? MobileSync https://www.roessner-net.de/Microsoft-Server-ActiveSync https://www.roessner-net.de/Microsoft-Server-ActiveSync Regards Christian -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2449 bytes Desc: not available URL: From c at roessner-network-solutions.com Wed Oct 7 09:36:03 2015 From: c at roessner-network-solutions.com (=?utf-8?Q?Christian_R=C3=B6=C3=9Fner?=) Date: Wed, 7 Oct 2015 09:36:03 +0200 Subject: automx for outlook not working In-Reply-To: <5603D1FF.7000405@alstercom.de> References: <5603D1FF.7000405@alstercom.de> Message-ID: <46C0435A-44BA-4D56-8684-CA45D018883A@roessner-network-solutions.com> > Am 24.09.2015 um 12:35 schrieb Peter Buettner : > > Hello, > > i am a newbe with automx-0.10.2. > > With standard config automx-test works fine. > > automx-test pb at hosting-vergleich.com > > > > Thunderbird autoconfig works fine too. > > Outlook autodiscover fails. > > The automx-test delivers: > > Testing Autodiscover (Microsoft Outlook(tm)) ... > Connecting to > https://autodiscover.alstercom.de/autodiscover/autodiscover.xml ... > > HTTP/1.1 200 OK > Date: Thu, 24 Sep 2015 09:34:06 GMT > Server: Apache/2.2.15 (CentOS) > Content-Length: 1416 > Connection: close > Content-Type: text/xml > > xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006"> > xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a"> > > email > mandantory > > SMTP > nge.alstercom.de > 587 > off > pb at hosting-vergleich.com > off > TLS > on > 6 > > > POP3 > nge.alstercom.de > 995 > off > pb at hosting-vergleich.com > off > SSL > on > 6 > > > IMAP > nge.alstercom.de > 993 > off > pb at hosting-vergleich.com > off > SSL > on > 6 > > > > > > > A Test with a working static XML-File from posteo.de delivers: > > Testing Autodiscover (Microsoft Outlook(tm)) ... > Connecting to > https://autodiscover.posteo.de/autodiscover/autodiscover.xml ... > > HTTP/1.1 200 OK > Date: Thu, 24 Sep 2015 10:28:23 GMT > Server: Apache > X-Powered-By: PHP/5.4.35-0+deb7u2 > Strict-Transport-Security: max-age=31536000; preload > Vary: Accept-Encoding > Connection: close > Content-Type: text/xml > xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006"> > xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a"> > > email > settings > > IMAP > posteo.de > 993 > postmaster at posteo.de > off > off > on > on > > > SMTP > posteo.de > 465 > postmaster at posteo.de > off > off > on > on > off > off > > > POP3 > posteo.de > 995 > postmaster at posteo.de > off > off > on > on > > > > > > I consider two solutions: > > a) How can i implement on in autoconfig? Did you configure smtp_encryption? Try setting it to ssl. I also see a difference in the two examples, you showed us. In the automx-version you use Submission, Port 587 with TLS. In the second you use the Microsoft idea of SSL over Port 465 aka smtps. What happens, if you configure automx to also use port 465 and smtp_encryption=ssl? Did you mix settings? > b) How can i deliver a static XML-File like poster.de? For this, you can define a section like this: [example.com] backend = file autodiscover = /var/www/autodiscover/foo.xml - Christian -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2449 bytes Desc: not available URL: From c at roessner-network-solutions.com Wed Oct 7 11:02:08 2015 From: c at roessner-network-solutions.com (=?utf-8?Q?Christian_R=C3=B6=C3=9Fner?=) Date: Wed, 7 Oct 2015 11:02:08 +0200 Subject: How to configure username for ActiveSync In-Reply-To: References: <20151005173846.Horde._FW0c2mCpkLpGUV9hxwGxOq@webmail.uni-tuebingen.de> Message-ID: <30EF1FE9-1C82-4EA9-9E0C-146D3FFE7C0D@roessner-network-solutions.com> > > > > en:us > > Christian R??ner > > > c at roessner.co <------------------- you talk about this? I just added an option for this in the current master branch on Github. The new setting is named: activesync_email You can assign macros and variables as for any other setting, too. I have tested it with: %s, %u and ${cn}, ${mail} and it works for me. If you can give it a try, let me know, if that solved your problem - Christian -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2449 bytes Desc: not available URL: From michael.menge at zdv.uni-tuebingen.de Wed Oct 7 13:00:50 2015 From: michael.menge at zdv.uni-tuebingen.de (Michael Menge) Date: Wed, 07 Oct 2015 13:00:50 +0200 Subject: How to configure username for ActiveSync In-Reply-To: References: <20151005173846.Horde._FW0c2mCpkLpGUV9hxwGxOq@webmail.uni-tuebingen.de> Message-ID: <20151007130050.Horde.94F2nrgG_vmLONdZ-eZ-ZOq@webmail.uni-tuebingen.de> Hi Quoting Christian R??ner : > Hi, > >> we would like to use automx to configure ActiveSync Clients. The >> clients where able to receive >> a configuration from automx, but the username was set to the email >> address. As we don't use >> the email address but the loginid I tried to change it, but I >> couldn't find a config option. >> >> We use automx 0.10.1. Did I miss something? >> If not could this feature be implemented by automx or is it >> restricted by the protocol? > > automx does not have a configuration option for this, yet. I will > see, if I find time today to implement such a configuration option. > > Just to clarify: > > > xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006"> > xmlns="http://schemas.microsoft.com/exchange/autodiscover/mobilesync/responseschema/2006"> > en:us > > Christian R??ner > > > c at roessner.co > <------------------- you talk about this? > > > > > > > MobileSync > https://www.roessner-net.de/Microsoft-Server-ActiveSync > > https://www.roessner-net.de/Microsoft-Server-ActiveSync > > > > > I did test it on a Android device, and did see that the server url was correct, but that the configuration for the username contained the email address. As the xml element is named EmailAddress I don't know if there are unintended consequences as the email address is needed too (e.g. sending emails) I searched for documentation and found https://msdn.microsoft.com/en-us/library/office/bb204196%28v=exchg.150%29.aspx So LegacyDN could be an option, but i didn't have the opportunity to test if it is used by the clients Regards Michael Menge -------------------------------------------------------------------------------- M.Menge Tel.: (49) 7071/29-70316 Universit?t T?bingen Fax.: (49) 7071/29-5912 Zentrum f?r Datenverarbeitung mail: michael.menge at zdv.uni-tuebingen.de W?chterstra?e 76 72074 T?bingen From michael.menge at zdv.uni-tuebingen.de Wed Oct 7 13:02:55 2015 From: michael.menge at zdv.uni-tuebingen.de (Michael Menge) Date: Wed, 07 Oct 2015 13:02:55 +0200 Subject: Status updates In-Reply-To: Message-ID: <20151007130255.Horde.46RV0vfUfcUoIDjY9rCq_oq@webmail.uni-tuebingen.de> Hi, Quoting Christian R??ner : > Hi, > > ... > > Unfortunately I do not have an Exchange server and I never could > test the ActiveSync-feature for myself. You may want to have a look at Horde www.horde.org as as ActiveSync Server Regards, Michael Menge -------------------------------------------------------------------------------- M.Menge Tel.: (49) 7071/29-70316 Universit?t T?bingen Fax.: (49) 7071/29-5912 Zentrum f?r Datenverarbeitung mail: michael.menge at zdv.uni-tuebingen.de W?chterstra?e 76 72074 T?bingen From michael.menge at zdv.uni-tuebingen.de Wed Oct 7 15:07:54 2015 From: michael.menge at zdv.uni-tuebingen.de (Michael Menge) Date: Wed, 07 Oct 2015 15:07:54 +0200 Subject: How to configure username for ActiveSync In-Reply-To: <30EF1FE9-1C82-4EA9-9E0C-146D3FFE7C0D@roessner-network-solutions.com> References: <20151005173846.Horde._FW0c2mCpkLpGUV9hxwGxOq@webmail.uni-tuebingen.de> <30EF1FE9-1C82-4EA9-9E0C-146D3FFE7C0D@roessner-network-solutions.com> Message-ID: <20151007150754.Horde.F1-ZUWw-bhcKFed2sxP6L0e@webmail.uni-tuebingen.de> Hi, Quoting Christian R??ner : >> >> > xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006"> >> > xmlns="http://schemas.microsoft.com/exchange/autodiscover/mobilesync/responseschema/2006"> >> en:us >> >> Christian R??ner >> >> >> c at roessner.co >> <------------------- you talk about this? > > I just added an option for this in the current master branch on > Github. The new setting is named: > > activesync_email > > You can assign macros and variables as for any other setting, too. I > have tested it with: > > %s, %u and ${cn}, ${mail} > > and it works for me. > > If you can give it a try, let me know, if that solved your problem Thanks for your patch, i did test it with an Android and an iPhone, but both still used the email address :-( I changed automx do use legacyDN without success. I will try to dig deeper. Regards Michael Menge -------------------------------------------------------------------------------- M.Menge Tel.: (49) 7071/29-70316 Universit?t T?bingen Fax.: (49) 7071/29-5912 Zentrum f?r Datenverarbeitung mail: michael.menge at zdv.uni-tuebingen.de W?chterstra?e 76 72074 T?bingen From c at roessner-network-solutions.com Thu Oct 8 22:38:15 2015 From: c at roessner-network-solutions.com (=?utf-8?Q?Christian_R=C3=B6=C3=9Fner?=) Date: Thu, 8 Oct 2015 22:38:15 +0200 Subject: How to configure username for ActiveSync In-Reply-To: <20151007150754.Horde.F1-ZUWw-bhcKFed2sxP6L0e@webmail.uni-tuebingen.de> References: <20151005173846.Horde._FW0c2mCpkLpGUV9hxwGxOq@webmail.uni-tuebingen.de> <30EF1FE9-1C82-4EA9-9E0C-146D3FFE7C0D@roessner-network-solutions.com> <20151007150754.Horde.F1-ZUWw-bhcKFed2sxP6L0e@webmail.uni-tuebingen.de> Message-ID: <024C26F7-561F-489F-9BEE-90020507FC9C@roessner-network-solutions.com> > Am 07.10.2015 um 15:07 schrieb Michael Menge : > > Hi, > > > Quoting Christian R??ner : > >>> >>> >>> >>> en:us >>> >>> Christian R??ner >>> >>> >>> c at roessner.co <------------------- you talk about this? >> >> I just added an option for this in the current master branch on Github. The new setting is named: >> >> activesync_email >> >> You can assign macros and variables as for any other setting, too. I have tested it with: >> >> %s, %u and ${cn}, ${mail} >> >> and it works for me. >> >> If you can give it a try, let me know, if that solved your problem > > Thanks for your patch, > > i did test it with an Android and an iPhone, but both still used the email address :-( > I changed automx do use legacyDN without success. > > I will try to dig deeper. Thanks for testing the patch. If you have updates, feel free to contact me :-) Regards Christian -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2449 bytes Desc: not available URL: From c at roessner-network-solutions.com Thu Oct 8 22:44:13 2015 From: c at roessner-network-solutions.com (=?utf-8?Q?Christian_R=C3=B6=C3=9Fner?=) Date: Thu, 8 Oct 2015 22:44:13 +0200 Subject: Status updates In-Reply-To: <20151007130255.Horde.46RV0vfUfcUoIDjY9rCq_oq@webmail.uni-tuebingen.de> References: <20151007130255.Horde.46RV0vfUfcUoIDjY9rCq_oq@webmail.uni-tuebingen.de> Message-ID: <942BC11D-E2ED-470E-ADD0-5B1ADBE8FB88@roessner-network-solutions.com> > Am 07.10.2015 um 13:02 schrieb Michael Menge : > > Hi, > > > Quoting Christian R??ner : > >> Hi, >> >> ... >> >> Unfortunately I do not have an Exchange server and I never could test the ActiveSync-feature for myself. > > You may want to have a look at Horde www.horde.org as as ActiveSync Server Thank you for this information. Maybe I find some time later to look at Horde. At the moment I have some trouble porting automx to Python 3. I updated the current master branch and got a first rudimentary version based on Python 3. Unfortunately I have sevral issues: M2Crypto was not ported to P3 and it seems that there does not exist any other library with S/MIME-PKCS#7 support. That means I have to use external file operations with openssl. That is really bad And I tried pyldap, a python-ldap fork that supports P3. Unfortunately that lib seg faults if using SASL. So there is a lot of work to be done to get automx P3 ready. I was thinking about P3 for several months now. I think it is time to move code to P3. Many external modules have been integrated into standad lib (i.e. ipaddr->ipaddress) and utf-8 support. If someone likes to help me porting the code and maybe getting it to work with P2.7 as well, feel free to send me pull requests on Github. Thanks in advance Christian -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2449 bytes Desc: not available URL: From c at roessner-network-solutions.com Sun Oct 11 22:48:19 2015 From: c at roessner-network-solutions.com (=?utf-8?Q?Christian_R=C3=B6=C3=9Fner?=) Date: Sun, 11 Oct 2015 22:48:19 +0200 Subject: Status update Message-ID: <044E4383-6B7B-483E-8A79-A4F2DE636B7C@roessner-network-solutions.com> Hi, I got a first automx code base that runs under Python3. If you use LDAP, you must change python-ldap to the pyldap implementation. The current stable release of this library has a bug that is currently fixed in their master branch. But I tested it and it works. I also evaluate ldap3, which seems to have a SASL-bind bug as well. Not very easy to find a stable LDAP module for Python3. I removed the m2crypto code and call openssl directly from within automx. Currently, automx will only run on Python3 now, but I noticed that it does not need too much work, to get it working for Python2.7 and Python3.x. So I will do my best to get a version for both interpreters. If there are people who like to test the current snapshot on Github, feel free to give me feedback. Thanks in advance Christian -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2449 bytes Desc: not available URL: