From automx2 at seichter.de Mon Oct 4 18:18:41 2021 From: automx2 at seichter.de (Ralph Seichter) Date: Mon, 04 Oct 2021 18:18:41 +0200 Subject: Announcing automx2 release 2021.5 Message-ID: <87bl44u5jy.fsf@wedjat.horus-it.com> Changes in release 2021.5 include: 1. The Mobileconfig generator acts smarter when choosing among multiple servers defined in the database. 2. Attributes mapped to VARCHAR columns in the DB now define column sizes. This resolves a problem when combining SQLAlchemy with MySQL 8. 3. automx2 now logs a deprecation error message when unable to determine whether or not a user-defined socket type uses encrypted communication, i.e. for types other than SSL and STARTTLS. Starting in a yet to be determined future release, automx2 will handle unknown socket types as hard errors, and users are therefore encouraged change their DB entries. See also: https://rseichter.github.io/automx2/ https://pypi.org/project/automx2/ -Ralph From taeuber at bbaw.de Tue Oct 5 07:51:57 2021 From: taeuber at bbaw.de (Lars =?UTF-8?B?VMOkdWJlcg==?=) Date: Tue, 5 Oct 2021 07:51:57 +0200 Subject: Announcing automx2 release 2021.5 In-Reply-To: <87bl44u5jy.fsf@wedjat.horus-it.com> References: <87bl44u5jy.fsf@wedjat.horus-it.com> Message-ID: <20211005075157.12dc0ced@bbaw.de> Hello Ralph, thanks for your effort and support for open source software. Do you plan to support LDAP in the near future? Thanks Lars Mon, 04 Oct 2021 18:18:41 +0200 Ralph Seichter ==> automx-users at sys4.de : > Changes in release 2021.5 include: > > 1. The Mobileconfig generator acts smarter when choosing among multiple > servers defined in the database. > > 2. Attributes mapped to VARCHAR columns in the DB now define column > sizes. This resolves a problem when combining SQLAlchemy with MySQL 8. > > 3. automx2 now logs a deprecation error message when unable to determine > whether or not a user-defined socket type uses encrypted communication, > i.e. for types other than SSL and STARTTLS. > Starting in a yet to be determined future release, automx2 will handle > unknown socket types as hard errors, and users are therefore encouraged > change their DB entries. > > See also: > > https://rseichter.github.io/automx2/ > https://pypi.org/project/automx2/ > > -Ralph From automx2 at seichter.de Tue Oct 5 15:05:14 2021 From: automx2 at seichter.de (Ralph Seichter) Date: Tue, 05 Oct 2021 15:05:14 +0200 Subject: LDAP support (Re: Announcing automx2 release 2021.5) In-Reply-To: <20211005075157.12dc0ced@bbaw.de> References: <87bl44u5jy.fsf@wedjat.horus-it.com> <20211005075157.12dc0ced@bbaw.de> Message-ID: <87h7dvaagl.fsf@wedjat.horus-it.com> * Lars T?uber: > Do you plan to support LDAP in the near future? Your question surprised me a little, so I looked things up. According to the change log [1], LDAP support has been available since January 2020, but it turns out that the documentation does not make a mention of how to employ this feature. I guess I should update the docs. In brief, LDAP servers can be used to look up a user's ID and common name attributes based on the email address supplied by the MUA contacting automx2. Is this what you had in mind? -Ralph [1] https://github.com/rseichter/automx2/blob/master/CHANGELOG From taeuber at bbaw.de Tue Oct 5 15:42:48 2021 From: taeuber at bbaw.de (Lars =?UTF-8?B?VMOkdWJlcg==?=) Date: Tue, 5 Oct 2021 15:42:48 +0200 Subject: LDAP support (Re: Announcing automx2 release 2021.5) In-Reply-To: <87h7dvaagl.fsf@wedjat.horus-it.com> References: <87bl44u5jy.fsf@wedjat.horus-it.com> <20211005075157.12dc0ced@bbaw.de> <87h7dvaagl.fsf@wedjat.horus-it.com> Message-ID: <20211005154112.6b72f8e2@bbaw.de> Yes, thanks. This is what we need. Best regards, Lars T?uber Tue, 05 Oct 2021 15:05:14 +0200 Ralph Seichter ==> automx-users at sys4.de : > * Lars T?uber: > > > Do you plan to support LDAP in the near future? > > Your question surprised me a little, so I looked things up. According to > the change log [1], LDAP support has been available since January 2020, > but it turns out that the documentation does not make a mention of how > to employ this feature. I guess I should update the docs. > > In brief, LDAP servers can be used to look up a user's ID and common > name attributes based on the email address supplied by the MUA > contacting automx2. Is this what you had in mind? > > -Ralph > > [1] https://github.com/rseichter/automx2/blob/master/CHANGELOG -- Informationstechnologie Berlin-Brandenburgische Akademie der Wissenschaften J?gerstra?e 22-23 10117 Berlin Tel.: +49 30 20370-352 http://www.bbaw.de From automx2 at seichter.de Tue Oct 5 16:24:19 2021 From: automx2 at seichter.de (Ralph Seichter) Date: Tue, 05 Oct 2021 16:24:19 +0200 Subject: LDAP support In-Reply-To: <20211005154112.6b72f8e2@bbaw.de> References: <87bl44u5jy.fsf@wedjat.horus-it.com> <20211005075157.12dc0ced@bbaw.de> <87h7dvaagl.fsf@wedjat.horus-it.com> <20211005154112.6b72f8e2@bbaw.de> Message-ID: <87a6jnzh0s.fsf@wedjat.horus-it.com> * Lars T?uber: > Yes, thanks. This is what we need. Until I find time to upgrade the documentation, the following SQL statement might help to illustrate the configuration. INSERT INTO ldapserver (id, name, port, use_ssl, search_base, search_filter, attr_uid, attr_cn, bind_password, bind_user) VALUES ( 100, 'ldap.example.com', 636, 1, 'ou=mailusers,dc=example,dc=com', '(mail={0})', 'uid', 'cn', 'PASSWORD', 'cn=automx2,ou=services,dc=example,dc=com' ); An encrypted connection (LDAPS) is used and the filter and attributes work with objectClass=inetOrgPerson. Now all that is required is to set domain.ldapserver_id for the domains one wants to tie to the above server. I hope this helps. -Ralph From taeuber at bbaw.de Wed Oct 6 07:22:45 2021 From: taeuber at bbaw.de (Lars =?UTF-8?B?VMOkdWJlcg==?=) Date: Wed, 6 Oct 2021 07:22:45 +0200 Subject: LDAP support In-Reply-To: <87a6jnzh0s.fsf@wedjat.horus-it.com> References: <87bl44u5jy.fsf@wedjat.horus-it.com> <20211005075157.12dc0ced@bbaw.de> <87h7dvaagl.fsf@wedjat.horus-it.com> <20211005154112.6b72f8e2@bbaw.de> <87a6jnzh0s.fsf@wedjat.horus-it.com> Message-ID: <20211006072245.0b11d7bc@bbaw.de> Hi Ralph, seems I understand what is necessary to configure what we need. I'll have a try when I have time to test and report. Thanks again! Lars Tue, 05 Oct 2021 16:24:19 +0200 Ralph Seichter ==> automx-users at sys4.de : > * Lars T?uber: > > > Yes, thanks. This is what we need. > > Until I find time to upgrade the documentation, the following SQL > statement might help to illustrate the configuration. > > INSERT INTO ldapserver (id, name, port, use_ssl, search_base, > search_filter, attr_uid, attr_cn, bind_password, bind_user) > VALUES ( > 100, > 'ldap.example.com', 636, 1, > 'ou=mailusers,dc=example,dc=com', > '(mail={0})', 'uid', 'cn', > 'PASSWORD', 'cn=automx2,ou=services,dc=example,dc=com' > ); > > An encrypted connection (LDAPS) is used and the filter and attributes > work with objectClass=inetOrgPerson. > > Now all that is required is to set domain.ldapserver_id for the domains > one wants to tie to the above server. I hope this helps. > > -Ralph -- Informationstechnologie Berlin-Brandenburgische Akademie der Wissenschaften J?gerstra?e 22-23 10117 Berlin Tel.: +49 30 20370-352 http://www.bbaw.de From automx2 at seichter.de Mon Oct 11 18:05:41 2021 From: automx2 at seichter.de (Ralph Seichter) Date: Mon, 11 Oct 2021 18:05:41 +0200 Subject: LDAP support In-Reply-To: <87a6jnzh0s.fsf@wedjat.horus-it.com> References: <87bl44u5jy.fsf@wedjat.horus-it.com> <20211005075157.12dc0ced@bbaw.de> <87h7dvaagl.fsf@wedjat.horus-it.com> <20211005154112.6b72f8e2@bbaw.de> <87a6jnzh0s.fsf@wedjat.horus-it.com> Message-ID: <87lf2z8s2y.fsf@wedjat.horus-it.com> I have added documentation for automx2 LDAP support. Please see https://rseichter.github.io/automx2/#ldap . -Ralph From admin at beckspaced.com Fri Oct 15 09:29:57 2021 From: admin at beckspaced.com (Admin Beckspaced) Date: Fri, 15 Oct 2021 09:29:57 +0200 Subject: UI for database mail account configuration data? Message-ID: Dear automx2 users, came across automx2 via some postfix / dovecot mailing list. I'm currently in the process of installing and setting up automx2. Using mysql database as storage for mail account configuration data. Initialisation and sample data setup via URL works as described curl http://127.0.0.1:4243/initdb/ Is there a tool, apart from phpmyadmin, to manage mail account config data? Or does automx2 offer some CLI commands to add domains, provider, server? Any insights on how to manage mail account configuration data would be awesome. thanks for providing automx2 & keep up the good work you're doing :) Becki From admin at beckspaced.com Mon Oct 18 08:34:00 2021 From: admin at beckspaced.com (Admin Beckspaced) Date: Mon, 18 Oct 2021 08:34:00 +0200 Subject: Is this mailing list active? Message-ID: Dear automx2 users, sent an email to this list a few days ago. No replies so far ... Is this list still active? Used by anyone? Thanks & greetings Becki From ronny at boesger.de Mon Oct 18 08:43:37 2021 From: ronny at boesger.de (Ronny Boesger) Date: Mon, 18 Oct 2021 08:43:37 +0200 Subject: Is this mailing list active? In-Reply-To: References: Message-ID: Hello Becki, its active and read from me yes, but low traffic. Ronny Am 18.10.21 um 08:34 schrieb Admin Beckspaced: > Dear automx2 users, > > sent an email to this list a few days ago. > > No replies so far ... > > Is this list still active? Used by anyone? > > Thanks & greetings > Becki > -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4166 bytes Desc: S/MIME Cryptographic Signature URL: From ronny at boesger.de Mon Oct 18 08:44:55 2021 From: ronny at boesger.de (Ronny Boesger) Date: Mon, 18 Oct 2021 08:44:55 +0200 Subject: UI for database mail account configuration data? In-Reply-To: References: Message-ID: Hi, i think this has nothing to do with automx, really. But perhaps postfixadmin is somewhat useful for you. It really depends on your usecase and users. Ronny Am 15.10.21 um 09:29 schrieb Admin Beckspaced: > Dear automx2 users, > > came across automx2 via some postfix / dovecot mailing list. > > I'm currently in the process of installing and setting up automx2. > > Using mysql database as storage for mail account configuration data. > > Initialisation and sample data setup via URL works as described > > curl http://127.0.0.1:4243/initdb/ > > Is there a tool, apart from phpmyadmin, to manage mail account config data? > > Or does automx2 offer some CLI commands to add domains, provider, server? > > Any insights on how to manage mail account configuration data would be > awesome. > > thanks for providing automx2 > & keep up the good work you're doing :) > > Becki > > -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4166 bytes Desc: S/MIME Cryptographic Signature URL: From admin at beckspaced.com Mon Oct 18 08:49:10 2021 From: admin at beckspaced.com (Admin Beckspaced) Date: Mon, 18 Oct 2021 08:49:10 +0200 Subject: Is this mailing list active? In-Reply-To: References: Message-ID: <376a7c60-9363-fa2c-faff-bd33fd028ccd@beckspaced.com> Am 18.10.2021 um 08:34 schrieb Admin Beckspaced: > Dear automx2 users, > > sent an email to this list a few days ago. > > No replies so far ... > > Is this list still active? Used by anyone? > > Thanks & greetings > Becki > Hello :) when sending to this list why do I always get an autoresponder from eTAX Government Hong Kong? This message is an acknowledgement of receipt of your e-mail. Your e-mail will be forwarded to the responsible officer for processing/reply. We pledge to give reply to enquiries as soon as possible and generally not later than 7 working days on simple matters and 21 working days on technical matters. Please note that our online services are provided through the Internet under eTAX at GovHK. For details, please visit the following link: www.gov.hk/etax (The above message is generated by an auto-reply program) Inland Revenue Department Hong Kong Special Administrative Region ??????????????????????????/??????????? ??????????????????????????????????? ???????????????????????????????????? ??www.gov.hk/etax (???????????????) ??? ??????? -------------- next part -------------- An HTML attachment was scrubbed... URL: From p at sys4.de Mon Oct 18 08:58:34 2021 From: p at sys4.de (Patrick Ben Koetter) Date: Mon, 18 Oct 2021 08:58:34 +0200 Subject: Is this mailing list active? In-Reply-To: <376a7c60-9363-fa2c-faff-bd33fd028ccd@beckspaced.com> References: <376a7c60-9363-fa2c-faff-bd33fd028ccd@beckspaced.com> Message-ID: <4a09de9b-aa60-a712-c6df-cf3c6d9c4983@sys4.de> Becki, I've unsubscribed the autoresponsing mail address. p at rick Am 18.10.21 um 08:49 schrieb Admin Beckspaced: > Am 18.10.2021 um 08:34 schrieb Admin Beckspaced: >> Dear automx2 users, >> >> sent an email to this list a few days ago. >> >> No replies so far ... >> >> Is this list still active? Used by anyone? >> >> Thanks & greetings >> Becki >> > Hello :) > > when sending to this list why do I always get an autoresponder from > eTAX Government Hong Kong? > > > This message is an acknowledgement of receipt of your e-mail. Your e-mail > will > be forwarded to the responsible officer for processing/reply. > > We pledge to give reply to enquiries as soon as possible and generally not > later than 7 working days on simple matters and 21 working days on > technical > matters. > > Please note that our online services are provided through the Internet > under > eTAX at GovHK. For details, please visit the following link: > www.gov.hk/etax > (The above message is generated by an auto-reply program) > > Inland Revenue Department > Hong Kong Special Administrative Region > > > ??????????????????????????/??????????? > ??????????????????????????????????? > > ???????????????????????????????????? > ??www.gov.hk/etax > (???????????????) > > ??? > ??????? -- [*] sys4 AG https://sys4.de, +49 (89) 30 90 46 64 Schlei?heimer Stra?e 26/MG,80333 M?nchen Sitz der Gesellschaft: M?nchen, Amtsgericht M?nchen: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer, Wolfgang Stief Aufsichtsratsvorsitzender: Florian Kirstein -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4207 bytes Desc: S/MIME Cryptographic Signature URL: From automx2 at seichter.de Mon Oct 18 15:02:30 2021 From: automx2 at seichter.de (Ralph Seichter) Date: Mon, 18 Oct 2021 15:02:30 +0200 Subject: Is this mailing list active? In-Reply-To: References: Message-ID: <87lf2q7aft.fsf@wedjat.horus-it.com> * Admin Beckspaced: > sent an email to this list a few days ago. According to https://mail.sys4.de/pipermail/automx-users/2021-October/date.html no mail of yours made it to this mailing list. I definitely did not see one, and I tend to play close attention. ;-) -Ralph From automx2 at seichter.de Mon Oct 18 15:14:06 2021 From: automx2 at seichter.de (Ralph Seichter) Date: Mon, 18 Oct 2021 15:14:06 +0200 Subject: UI for database mail account configuration data? In-Reply-To: References: Message-ID: <87ilxu79wh.fsf@wedjat.horus-it.com> * Admin Beckspaced: > Is there a tool, apart from phpmyadmin, to manage mail account config > data? You can use any tool or method that allows changing the database content. Existing DB constraints should prevent bogus configurations to a certain degree. > does automx2 offer some CLI commands to add domains, provider, server? Not yet. If there was a sponsor (or sponsors, plural) who felt like throwing some money in the hat for me to write a RESTful API, it would be a useful addition to automx2. Such an API would obviously better than modifying database content directly, adding a layer of abstraction. -Ralph From admin at beckspaced.com Tue Oct 19 08:35:03 2021 From: admin at beckspaced.com (Admin Beckspaced) Date: Tue, 19 Oct 2021 08:35:03 +0200 Subject: Is this mailing list active? In-Reply-To: References: Message-ID: <49f938e0-fd6d-e0eb-d450-cbb7c976581c@beckspaced.com> Hello Ronny, glad to see that someone reads the messages. glad to see the list is active ... greetings Becki Am 18.10.2021 um 08:43 schrieb Ronny Boesger: > Hello Becki, > > its active and read from me yes, but low traffic. > > Ronny > > Am 18.10.21 um 08:34 schrieb Admin Beckspaced: >> Dear automx2 users, >> >> sent an email to this list a few days ago. >> >> No replies so far ... >> >> Is this list still active? Used by anyone? >> >> Thanks & greetings >> Becki >> > -- Beckspaced - Server Administration ------------------------------------------------ Ralf Flederer Marienplatz 9 97353 Wiesentheid Tel.: 09383-9033825 Mobil: 01577-7258912 Internet: www.beckspaced.com ------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From admin at beckspaced.com Tue Oct 19 08:37:13 2021 From: admin at beckspaced.com (Admin Beckspaced) Date: Tue, 19 Oct 2021 08:37:13 +0200 Subject: UI for database mail account configuration data? In-Reply-To: References: Message-ID: Hi Ronny, I used phpMyAdmin to look at the database and add providers, servers & domains. Using phpMyAdmin is perfectly enough to configure the mail config data. No additional user interface is needed Greetings Becki Am 18.10.2021 um 08:44 schrieb Ronny Boesger: > Hi, > > i think this has nothing to do with automx, really. > > But perhaps postfixadmin is somewhat useful for you. > It really depends on your usecase and users. > > Ronny > > Am 15.10.21 um 09:29 schrieb Admin Beckspaced: >> Dear automx2 users, >> >> came across automx2 via some postfix / dovecot mailing list. >> >> I'm currently in the process of installing and setting up automx2. >> >> Using mysql database as storage for mail account configuration data. >> >> Initialisation and sample data setup via URL works as described >> >> curl http://127.0.0.1:4243/initdb/ >> >> Is there a tool, apart from phpmyadmin, to manage mail account config >> data? >> >> Or does automx2 offer some CLI commands to add domains, provider, >> server? >> >> Any insights on how to manage mail account configuration data would >> be awesome. >> >> thanks for providing automx2 >> & keep up the good work you're doing :) >> >> Becki >> >> > -- Beckspaced - Server Administration ------------------------------------------------ Ralf Flederer Marienplatz 9 97353 Wiesentheid Tel.: 09383-9033825 Mobil: 01577-7258912 Internet: www.beckspaced.com ------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From admin at beckspaced.com Tue Oct 19 08:40:41 2021 From: admin at beckspaced.com (Admin Beckspaced) Date: Tue, 19 Oct 2021 08:40:41 +0200 Subject: Is this mailing list active? In-Reply-To: <87lf2q7aft.fsf@wedjat.horus-it.com> References: <87lf2q7aft.fsf@wedjat.horus-it.com> Message-ID: Am 18.10.2021 um 15:02 schrieb Ralph Seichter: > * Admin Beckspaced: > >> sent an email to this list a few days ago. > According to https://mail.sys4.de/pipermail/automx-users/2021-October/date.html > no mail of yours made it to this mailing list. I definitely did not see > one, and I tend to play close attention. ;-) > > -Ralph Hello Ralph, just had a look and now some emails of mine show up in the list archive :) thanks & greetings Becki From admin at beckspaced.com Tue Oct 19 08:48:47 2021 From: admin at beckspaced.com (Admin Beckspaced) Date: Tue, 19 Oct 2021 08:48:47 +0200 Subject: UI for database mail account configuration data? In-Reply-To: <87ilxu79wh.fsf@wedjat.horus-it.com> References: <87ilxu79wh.fsf@wedjat.horus-it.com> Message-ID: <3920e25c-dfbc-71a4-ad48-079b26911382@beckspaced.com> Am 18.10.2021 um 15:14 schrieb Ralph Seichter: > * Admin Beckspaced: > >> Is there a tool, apart from phpmyadmin, to manage mail account config >> data? > You can use any tool or method that allows changing the database > content. Existing DB constraints should prevent bogus configurations to > a certain degree. > >> does automx2 offer some CLI commands to add domains, provider, server? > Not yet. If there was a sponsor (or sponsors, plural) who felt like > throwing some money in the hat for me to write a RESTful API, it would > be a useful addition to automx2. Such an API would obviously better than > modifying database content directly, adding a layer of abstraction. > > -Ralph Yes, I understand that sponsors are needed to develop further. Are there currently any further plans with automx2? I did play around with automx2 in the last couple of days. Autoconfig & Thunderbird works like a breeze :) Autodiscover and Windows Mail / Outlook no success. But it's written in the docs that it is currently not supported. Did also try Samsung S20 with Samsung Mail App without any success. Are there any plans to develop further and add support to more clients? Or does it need more and more sponsors? Thanks & greetings Becki From automx2 at seichter.de Tue Oct 19 16:04:48 2021 From: automx2 at seichter.de (Ralph Seichter) Date: Tue, 19 Oct 2021 16:04:48 +0200 Subject: UI for database mail account configuration data? In-Reply-To: <3920e25c-dfbc-71a4-ad48-079b26911382@beckspaced.com> References: <87ilxu79wh.fsf@wedjat.horus-it.com> <3920e25c-dfbc-71a4-ad48-079b26911382@beckspaced.com> Message-ID: <87a6j5jekf.fsf@wedjat.horus-it.com> * Admin Beckspaced: > Autodiscover and Windows Mail / Outlook no success. > But it's written in the docs that it is currently not supported. To clarify: automx2 works fine for older versions of Outlook which use XML-based configuration data. I am lacking proper documentation about the latest, JSON-based method, and I am unwilling to pay for membership in the Microsoft developer program just to get access to that particular information. > Did also try Samsung S20 with Samsung Mail App without any success. I have never heard of this particular mail app before and don't know if it even supports any form of autoconfig? > Are there any plans to develop further and add support to more > clients? If by "more clients" you mean "additional autoconfig protocols": Which ones do you have in mind? I can't think of any off the top of my head. Generally speaking, I would ask the following questions, in no particular order: 1. Do I personally need the additional protocol? 2. Is there a sufficiently wide user base that would benefit from me supporting the protocol? 3. Is the full protocol specification readily available, free of charge? 4. Do I have access to the devices and/or software necessary to test my implementation? As I am sure you can understand, I don't plan to spend my own money on getting access to specifications, soft- or hardware beyond what I need, and my current use cases are already covered by Autodiscover and Mobileconfig. That's why I mentioned sponsorship. -Ralph From automx2 at seichter.de Tue Oct 19 16:31:36 2021 From: automx2 at seichter.de (Ralph Seichter) Date: Tue, 19 Oct 2021 16:31:36 +0200 Subject: UI for database mail account configuration data? In-Reply-To: <87a6j5jekf.fsf@wedjat.horus-it.com> References: <87ilxu79wh.fsf@wedjat.horus-it.com> <3920e25c-dfbc-71a4-ad48-079b26911382@beckspaced.com> <87a6j5jekf.fsf@wedjat.horus-it.com> Message-ID: <878rypm6gn.fsf@wedjat.horus-it.com> * Ralph Seichter: > [...] my current use cases are already covered by Autodiscover and > Mobileconfig. Correction: I meant to write Autoconfig and Mobileconfig. I don't use any MUAs which require Autodiscover, hence the lack of impetus for me to buy into the M$ developer program. -Ralph From admin at beckspaced.com Wed Oct 20 09:38:06 2021 From: admin at beckspaced.com (Admin Beckspaced) Date: Wed, 20 Oct 2021 09:38:06 +0200 Subject: UI for database mail account configuration data? In-Reply-To: <87a6j5jekf.fsf@wedjat.horus-it.com> References: <87ilxu79wh.fsf@wedjat.horus-it.com> <3920e25c-dfbc-71a4-ad48-079b26911382@beckspaced.com> <87a6j5jekf.fsf@wedjat.horus-it.com> Message-ID: Am 19.10.2021 um 16:04 schrieb Ralph Seichter: > * Admin Beckspaced: > >> Autodiscover and Windows Mail / Outlook no success. >> But it's written in the docs that it is currently not supported. > To clarify: automx2 works fine for older versions of Outlook which use > XML-based configuration data. I am lacking proper documentation about > the latest, JSON-based method, and I am unwilling to pay for membership > in the Microsoft developer program just to get access to that particular > information. > >> Did also try Samsung S20 with Samsung Mail App without any success. > I have never heard of this particular mail app before and don't know if > it even supports any form of autoconfig? > >> Are there any plans to develop further and add support to more >> clients? > If by "more clients" you mean "additional autoconfig protocols": Which > ones do you have in mind? I can't think of any off the top of my > head. Generally speaking, I would ask the following questions, in no > particular order: > > 1. Do I personally need the additional protocol? > > 2. Is there a sufficiently wide user base that would benefit from me > supporting the protocol? > > 3. Is the full protocol specification readily available, free of > charge? > > 4. Do I have access to the devices and/or software necessary to test > my implementation? > > As I am sure you can understand, I don't plan to spend my own money on > getting access to specifications, soft- or hardware beyond what I need, > and my current use cases are already covered by Autodiscover and > Mobileconfig. That's why I mentioned sponsorship. > > -Ralph Hello Ralph, thanks for your reply. Yes, I know how frustrating it can get to find proper documentation. Even if you're a member of the Microsoft Developer program it's sometimes hard to find what you need. Then what did work in Version x.1 doesn't work in version x.2 anymore ... more searching in the docs ...? more frustration. Also not sure if Samsung Mail App supports any form of autoconfig? Here's the link: https://play.google.com/store/apps/details?id=com.samsung.android.email.provider&hl=de&gl=US By 'more clients' I meant more software clients. I installed automx2 and then tested with Thunderbird -> Works! Windows Mail App -> No success Samsung Mail App -> No success Gmail App -> No sucess Did not test earlier Outlook version as I don't have any installed. Well ... I think I had the wrong impression that I just need to install automx2 and then magically most email clients will receive the proper mail config data. Sorry for that! And thanks for all your effort into automx2 and providing it to the public. I also totally understand alll your points about providing additional clients & protocols. Our time is precious and sometimes we better focus on other things. Thanks again Becki From p at sys4.de Wed Oct 20 09:56:46 2021 From: p at sys4.de (Patrick Ben Koetter) Date: Wed, 20 Oct 2021 09:56:46 +0200 Subject: UI for database mail account configuration data? In-Reply-To: References: <87ilxu79wh.fsf@wedjat.horus-it.com> <3920e25c-dfbc-71a4-ad48-079b26911382@beckspaced.com> <87a6j5jekf.fsf@wedjat.horus-it.com> Message-ID: <20211020075646.6rit2aduspu7q43r@sys4.de> Becki, * Admin Beckspaced : > Yes, I know how frustrating it can get to find proper documentation. > Even if you're a member of the Microsoft Developer program it's sometimes > hard to find what you need. > Then what did work in Version x.1 doesn't work in version x.2 anymore ... > more searching in the docs ...? more frustration. what worked in automx1 doesn't work in automx2 because Microsoft changed the data structures and they won't tell what they did. What we know so far is, they switched from XML to JSON. But that's about all. If we'd known how to handle the JSON we'd had implemented it long ago. > Also not sure if Samsung Mail App supports any form of autoconfig? > > Here's the link: https://play.google.com/store/apps/details?id=com.samsung.android.email.provider&hl=de&gl=US > > By 'more clients' I meant more software clients. > > I installed automx2 and then tested with > > Thunderbird -> Works! > Windows Mail App -> No success > Samsung Mail App -> No success > Gmail App -> No sucess > > Did not test earlier Outlook version as I don't have any installed. > > Well ... I think I had the wrong impression that I just need to install > automx2 and then magically most email clients will receive the proper mail > config data. It used to be that way until MS changed the autoconfigure protocol. I was in contact with someone at Microsoft for about half a year, but in the end she wouldn't tell. p at rick -- [*] sys4 AG https://sys4.de, +49 (89) 30 90 46 64 Schlei?heimer Stra?e 26/MG,80333 M?nchen Sitz der Gesellschaft: M?nchen, Amtsgericht M?nchen: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer, Wolfgang Stief Aufsichtsratsvorsitzender: Florian Kirstein From admin at beckspaced.com Wed Oct 20 14:24:44 2021 From: admin at beckspaced.com (Admin Beckspaced) Date: Wed, 20 Oct 2021 14:24:44 +0200 Subject: UI for database mail account configuration data? In-Reply-To: <20211020075646.6rit2aduspu7q43r@sys4.de> References: <87ilxu79wh.fsf@wedjat.horus-it.com> <3920e25c-dfbc-71a4-ad48-079b26911382@beckspaced.com> <87a6j5jekf.fsf@wedjat.horus-it.com> <20211020075646.6rit2aduspu7q43r@sys4.de> Message-ID: <0b599a7f-e8e4-e3d2-b4e8-69ffe8952562@beckspaced.com> > Becki, > > * Admin Beckspaced : >> Yes, I know how frustrating it can get to find proper documentation. >> Even if you're a member of the Microsoft Developer program it's sometimes >> hard to find what you need. >> Then what did work in Version x.1 doesn't work in version x.2 anymore ... >> more searching in the docs ...? more frustration. > what worked in automx1 doesn't work in automx2 because Microsoft changed the > data structures and they won't tell what they did. What we know so far is, > they switched from XML to JSON. But that's about all. If we'd known how to > handle the JSON we'd had implemented it long ago. > >> Also not sure if Samsung Mail App supports any form of autoconfig? >> >> Here's the link: https://play.google.com/store/apps/details?id=com.samsung.android.email.provider&hl=de&gl=US >> >> By 'more clients' I meant more software clients. >> >> I installed automx2 and then tested with >> >> Thunderbird -> Works! >> Windows Mail App -> No success >> Samsung Mail App -> No success >> Gmail App -> No sucess >> >> Did not test earlier Outlook version as I don't have any installed. >> >> Well ... I think I had the wrong impression that I just need to install >> automx2 and then magically most email clients will receive the proper mail >> config data. > It used to be that way until MS changed the autoconfigure protocol. I was in > contact with someone at Microsoft for about half a year, but in the end she > wouldn't tell. > > p at rick Hello p at rick, thanks for your reply. Yes, it's pretty hard to implement protocols from closed source and without any further information. But there are some detectives on the net trying to figure things out: https://www.msxfaq.de/exchange/autodiscover/autodiscover365.htm https://www.msxfaq.de/exchange/autodiscover/autodiscover_v2.htm Greetings Becki From admin at beckspaced.com Wed Oct 20 19:06:32 2021 From: admin at beckspaced.com (Admin Beckspaced) Date: Wed, 20 Oct 2021 19:06:32 +0200 Subject: UI for database mail account configuration data? In-Reply-To: <878rypm6gn.fsf@wedjat.horus-it.com> References: <87ilxu79wh.fsf@wedjat.horus-it.com> <3920e25c-dfbc-71a4-ad48-079b26911382@beckspaced.com> <87a6j5jekf.fsf@wedjat.horus-it.com> <878rypm6gn.fsf@wedjat.horus-it.com> Message-ID: Am 19.10.2021 um 16:31 schrieb Ralph Seichter: > * Ralph Seichter: > >> [...] my current use cases are already covered by Autodiscover and >> Mobileconfig. > Correction: I meant to write Autoconfig and Mobileconfig. I don't use > any MUAs which require Autodiscover, hence the lack of impetus for me > to buy into the M$ developer program. > > -Ralph Hello Ralph, could you perhaps shed some light on how to use mobileconfig with automx2? So far I figured out how to use autoconfig & autodiscover but nothing for mobileconfig. Is mobileconfig used for Apple & IOS? Thanks & greetings Becki From admin at beckspaced.com Thu Oct 21 08:44:41 2021 From: admin at beckspaced.com (Admin Beckspaced) Date: Thu, 21 Oct 2021 08:44:41 +0200 Subject: Outlook autodiscover and STARTTLS Message-ID: <775ef677-e8ce-deb3-3c9e-d539f4a79fb3@beckspaced.com> Hello again :) just a quick question about Outlook autodiscover and STARTTLS I've setup the following servers in the db: 4006??? 10??? mail.beckspaced.com??? 587??? smtp??? STARTTLS %EMAILADDRESS%??? password-cleartext 4007??? 20??? mail.beckspaced.com??? 110??? pop??? STARTTLS %EMAILADDRESS%??? password-cleartext 4008??? 30??? mail.beckspaced.com??? 143??? imap??? STARTTLS %EMAILADDRESS%??? password-cleartext 4009??? 60??? mail.beckspaced.com??? 993??? imap??? SSL %EMAILADDRESS%??? plain 4010??? 50??? mail.beckspaced.com??? 995??? pop??? SSL %EMAILADDRESS%??? plain 4011??? 40??? mail.beckspaced.com??? 465??? smtp??? SSL %EMAILADDRESS%??? plain If I query autoconfig for thunderbird & else all is fine. https://autoconfig.beckspaced.com/mail/config-v1.1.xml?emailaddress=automx2 at beckspaced.com It says to use STARTTLS on the non-encrypted port 110 / 143 If I query autodiscover for Outlook it does not show STARTTLS. Instead it shows off Should I worry about SSL OFF on the non-encrypted ports? Is there an option for STARTTLS for Outlook? Or should I just change the priorities and first offer ports 993 | 995 | 465 for SSL? What would the best approach be for Outlook? Below is the autodiscover xml Thanks & greetings Becki ?? ????? ???????? email ???????? settings ???????? ??????????? SMTP ??????????? mail.beckspaced.com ??????????? 587 automx2 at beckspaced.com ??????????? off ???????? ???????? ??????????? POP3 ??????????? mail.beckspaced.com ??????????? 110 automx2 at beckspaced.com ??????????? off ???????? ???????? ??????????? IMAP ??????????? mail.beckspaced.com ??????????? 143 automx2 at beckspaced.com ??????????? off ???????? ???????? ??????????? SMTP ??????????? mail.beckspaced.com ??????????? 465 automx2 at beckspaced.com ??????????? on ???????? ???????? ??????????? POP3 ??????????? mail.beckspaced.com ??????????? 995 automx2 at beckspaced.com ??????????? on ???????? ???????? ??????????? IMAP ??????????? mail.beckspaced.com ??????????? 993 automx2 at beckspaced.com ??????????? on ???????? ????? ?? From automx2 at seichter.de Fri Oct 22 20:32:56 2021 From: automx2 at seichter.de (Ralph Seichter) Date: Fri, 22 Oct 2021 20:32:56 +0200 Subject: Outlook autodiscover and STARTTLS In-Reply-To: <775ef677-e8ce-deb3-3c9e-d539f4a79fb3@beckspaced.com> References: <775ef677-e8ce-deb3-3c9e-d539f4a79fb3@beckspaced.com> Message-ID: <87k0i4c3l3.fsf@wedjat.horus-it.com> * Admin Beckspaced: > If I query autodiscover for Outlook it does not show STARTTLS. Instead > it shows off That's expected. The DB value "SSL" indicates that connections need to be encrypted right off the bat (e.g. ports 465, 993). "STARTTLS" means that the initial connection is unencrypted and then both sides agreee to enable encryption before authentication data is sent. > Or should I just change the priorities and first offer ports 993 | 995 > | 465 for SSL? The Mobileconfig generator actually prefers settings like 465/SSL over 587/STARTTLS (the same for the respective POP3 and IMAP ports) if both mechanisms are defined with identical priorities. Mobileconfig permits only one inbound and one outbound server, so automx2 needs to pick and choose, but for Autoconfig and Autodiscover, priority determines the order of servers listed in the output data. However, there is no guarantee that a given MUA respects the order of servers in the config data. This is a design oversight of the protocols, not of automx2. The only way to be certain what data is picked by the MUAs is to configure just one server per role in the DB. -Ralph P.S.: When asking for assistance, please make sure to state which version of automx2 you are using, otherwise I will assume the latest available release. From admin at beckspaced.com Sat Oct 23 09:25:24 2021 From: admin at beckspaced.com (Admin Beckspaced) Date: Sat, 23 Oct 2021 09:25:24 +0200 Subject: Outlook autodiscover and STARTTLS In-Reply-To: <87k0i4c3l3.fsf@wedjat.horus-it.com> References: <775ef677-e8ce-deb3-3c9e-d539f4a79fb3@beckspaced.com> <87k0i4c3l3.fsf@wedjat.horus-it.com> Message-ID: <2f0b8ea9-a105-8dba-c2f2-6ada0b95f620@beckspaced.com> > * Admin Beckspaced: > >> If I query autodiscover for Outlook it does not show STARTTLS. Instead >> it shows off > That's expected. The DB value "SSL" indicates that connections need to > be encrypted right off the bat (e.g. ports 465, 993). "STARTTLS" means > that the initial connection is unencrypted and then both sides agreee to > enable encryption before authentication data is sent. > >> Or should I just change the priorities and first offer ports 993 | 995 >> | 465 for SSL? > The Mobileconfig generator actually prefers settings like 465/SSL over > 587/STARTTLS (the same for the respective POP3 and IMAP ports) if both > mechanisms are defined with identical priorities. Mobileconfig permits > only one inbound and one outbound server, so automx2 needs to pick and > choose, but for Autoconfig and Autodiscover, priority determines the > order of servers listed in the output data. > > However, there is no guarantee that a given MUA respects the order of > servers in the config data. This is a design oversight of the protocols, > not of automx2. The only way to be certain what data is picked by the > MUAs is to configure just one server per role in the DB. > > -Ralph > > P.S.: When asking for assistance, please make sure to state which > version of automx2 you are using, otherwise I will assume the latest > available release. Hello Ralph, thanks again for you reply and clarifying things. Yes, I use the latest release automx2 I had trouble figuring out how generating a mobileconfig actually works. But luckily found a link in a closed topic at github https://github.com/rseichter/automx2/issues/1 There it states the different Curl request e.g. https://autodiscover.beckspaced.com/mobileconfig/?emailaddress=user at beckspaced.com At first I always got an error (400 Bad Request) when trying to access the mobileconfig URL But then I remembered that I changed the 'authentication' from 'plain' to 'password-cleartext' as 'plain' was marked as deprecated https://wiki.mozilla.org/Thunderbird:Autoconfiguration:ConfigFileFormat Changing 'authentication' back to 'plain' solves the 400 bad request. thanks again & have a nice weekend Becki From taeuber at bbaw.de Wed Oct 27 09:28:32 2021 From: taeuber at bbaw.de (Lars =?UTF-8?B?VMOkdWJlcg==?=) Date: Wed, 27 Oct 2021 09:28:32 +0200 Subject: LDAP support In-Reply-To: <87lf2z8s2y.fsf@wedjat.horus-it.com> References: <87bl44u5jy.fsf@wedjat.horus-it.com> <20211005075157.12dc0ced@bbaw.de> <87h7dvaagl.fsf@wedjat.horus-it.com> <20211005154112.6b72f8e2@bbaw.de> <87a6jnzh0s.fsf@wedjat.horus-it.com> <87lf2z8s2y.fsf@wedjat.horus-it.com> Message-ID: <20211027092832.5b6c3b11@bbaw.de> Hi Ralph, thanks for the docs. I managed to configure two domains and test them successfully. But for a third domain I get errors. I don't know where to start debugging it. Could you nudge me in the right direction? Here is an anonymized output: LDAP match uid=XYZ,ou=OU,dc=bbaw,dc=de Exception on /mail/config-v1.1.xml [GET] Traceback (most recent call last): File "/srv/automx2/venv/lib/python3.8/site-packages/flask/app.py", line 2073, in wsgi_app response = self.full_dispatch_request() File "/srv/automx2/venv/lib/python3.8/site-packages/flask/app.py", line 1518, in full_dispatch_request rv = self.handle_user_exception(e) File "/srv/automx2/venv/lib/python3.8/site-packages/flask/app.py", line 1516, in full_dispatch_request rv = self.dispatch_request() File "/srv/automx2/venv/lib/python3.8/site-packages/flask/app.py", line 1502, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args) File "/srv/automx2/venv/lib/python3.8/site-packages/flask/views.py", line 84, in view return current_app.ensure_sync(self.dispatch_request)(*args, **kwargs) File "/srv/automx2/venv/lib/python3.8/site-packages/flask/views.py", line 158, in dispatch_request return current_app.ensure_sync(meth)(*args, **kwargs) File "/srv/automx2/venv/lib/python3.8/site-packages/automx2/views/autoconfig.py", line 44, in get return self.config_from_address(address) File "/srv/automx2/venv/lib/python3.8/site-packages/automx2/views/__init__.py", line 38, in config_from_address data = self.config_response(local_part, domain_part, realname, password) File "/srv/automx2/venv/lib/python3.8/site-packages/automx2/views/autoconfig.py", line 52, in config_response data = MozillaGenerator().client_config(local_part, domain_part, realname) File "/srv/automx2/venv/lib/python3.8/site-packages/automx2/generators/mozilla.py", line 60, in client_config lookup_result: LookupResult = self.ldap_lookup(f'{local_part}@{domain_part}', domain.ldapserver) File "/srv/automx2/venv/lib/python3.8/site-packages/automx2/generators/__init__.py", line 54, in ldap_lookup r = ldap.lookup(server.search_base, server.search_filter.format(email_address), File "/srv/automx2/venv/lib/python3.8/site-packages/automx2/ldap.py", line 51, in lookup cn = self.get_attribute(ldap_entry, attr_cn) File "/srv/automx2/venv/lib/python3.8/site-packages/automx2/ldap.py", line 70, in get_attribute log.debug(f'Returning list element "{value[0]}"') IndexError: list index out of range 127.0.0.1 - - [27/Oct/2021 09:18:23] "GET /mail/config-v1.1.xml?emailaddress=name.surname at other.domain HTTP/1.1" 500 - I would sent you the corresponding SQL entries but not to the mailing list if you like to have a look. Thanks Lars Mon, 11 Oct 2021 18:05:41 +0200 Ralph Seichter ==> automx-users at sys4.de : > I have added documentation for automx2 LDAP support. Please see > https://rseichter.github.io/automx2/#ldap . > > -Ralph From taeuber at bbaw.de Thu Oct 28 09:50:31 2021 From: taeuber at bbaw.de (Lars =?UTF-8?B?VMOkdWJlcg==?=) Date: Thu, 28 Oct 2021 09:50:31 +0200 Subject: LDAP support In-Reply-To: <20211027092832.5b6c3b11@bbaw.de> References: <87bl44u5jy.fsf@wedjat.horus-it.com> <20211005075157.12dc0ced@bbaw.de> <87h7dvaagl.fsf@wedjat.horus-it.com> <20211005154112.6b72f8e2@bbaw.de> <87a6jnzh0s.fsf@wedjat.horus-it.com> <87lf2z8s2y.fsf@wedjat.horus-it.com> <20211027092832.5b6c3b11@bbaw.de> Message-ID: <20211028095031.21620cdf@mtaeuber.bbaw.de> Hi everybody, I solved my problem. It was a missing permission. The attribute "cn" was not readable in a special branch of the ldap tree. Thanks again Lars On Wed, 27 Oct 2021 09:28:32 +0200 Lars T?uber wrote: > Hi Ralph, > > thanks for the docs. > I managed to configure two domains and test them successfully. But for a third domain I get errors. > I don't know where to start debugging it. Could you nudge me in the right direction? > > Here is an anonymized output: > > LDAP match uid=XYZ,ou=OU,dc=bbaw,dc=de > Exception on /mail/config-v1.1.xml [GET] > Traceback (most recent call last): > File "/srv/automx2/venv/lib/python3.8/site-packages/flask/app.py", line 2073, in wsgi_app > response = self.full_dispatch_request() > File "/srv/automx2/venv/lib/python3.8/site-packages/flask/app.py", line 1518, in full_dispatch_request > rv = self.handle_user_exception(e) > File "/srv/automx2/venv/lib/python3.8/site-packages/flask/app.py", line 1516, in full_dispatch_request > rv = self.dispatch_request() > File "/srv/automx2/venv/lib/python3.8/site-packages/flask/app.py", line 1502, in dispatch_request > return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args) > File "/srv/automx2/venv/lib/python3.8/site-packages/flask/views.py", line 84, in view > return current_app.ensure_sync(self.dispatch_request)(*args, **kwargs) > File "/srv/automx2/venv/lib/python3.8/site-packages/flask/views.py", line 158, in dispatch_request > return current_app.ensure_sync(meth)(*args, **kwargs) > File "/srv/automx2/venv/lib/python3.8/site-packages/automx2/views/autoconfig.py", line 44, in get > return self.config_from_address(address) > File "/srv/automx2/venv/lib/python3.8/site-packages/automx2/views/__init__.py", line 38, in config_from_address > data = self.config_response(local_part, domain_part, realname, password) > File "/srv/automx2/venv/lib/python3.8/site-packages/automx2/views/autoconfig.py", line 52, in config_response > data = MozillaGenerator().client_config(local_part, domain_part, realname) > File "/srv/automx2/venv/lib/python3.8/site-packages/automx2/generators/mozilla.py", line 60, in client_config > lookup_result: LookupResult = self.ldap_lookup(f'{local_part}@{domain_part}', domain.ldapserver) > File "/srv/automx2/venv/lib/python3.8/site-packages/automx2/generators/__init__.py", line 54, in ldap_lookup > r = ldap.lookup(server.search_base, server.search_filter.format(email_address), > File "/srv/automx2/venv/lib/python3.8/site-packages/automx2/ldap.py", line 51, in lookup > cn = self.get_attribute(ldap_entry, attr_cn) > File "/srv/automx2/venv/lib/python3.8/site-packages/automx2/ldap.py", line 70, in get_attribute > log.debug(f'Returning list element "{value[0]}"') > IndexError: list index out of range > 127.0.0.1 - - [27/Oct/2021 09:18:23] "GET /mail/config-v1.1.xml?emailaddress=name.surname at other.domain HTTP/1.1" 500 - > > > I would sent you the corresponding SQL entries but not to the mailing list if you like to have a look. > > Thanks > Lars > > > > > > Mon, 11 Oct 2021 18:05:41 +0200 > Ralph Seichter ==> automx-users at sys4.de : > > I have added documentation for automx2 LDAP support. Please see > > https://rseichter.github.io/automx2/#ldap . > > > > -Ralph From wedwards at cyberfusion.nl Thu Oct 28 10:10:26 2021 From: wedwards at cyberfusion.nl (William Edwards) Date: Thu, 28 Oct 2021 10:10:26 +0200 Subject: LDAP support In-Reply-To: <20211028095031.21620cdf@mtaeuber.bbaw.de> References: <87bl44u5jy.fsf@wedjat.horus-it.com> <20211005075157.12dc0ced@bbaw.de> <87h7dvaagl.fsf@wedjat.horus-it.com> <20211005154112.6b72f8e2@bbaw.de> <87a6jnzh0s.fsf@wedjat.horus-it.com> <87lf2z8s2y.fsf@wedjat.horus-it.com> <20211027092832.5b6c3b11@bbaw.de> <20211028095031.21620cdf@mtaeuber.bbaw.de> Message-ID: <49c2a44aa53b5c4a79f5848ea017ecdf@cyberfusion.nl> Lars T?uber schreef op 2021-10-28 09:50: > Hi everybody, > > I solved my problem. It was a missing permission. The attribute "cn" > was not readable in a special branch of the ldap tree. Thanks for sharing your solution with the list. > > Thanks again > Lars > > On Wed, 27 Oct 2021 09:28:32 +0200 > Lars T?uber wrote: > >> Hi Ralph, >> >> thanks for the docs. >> I managed to configure two domains and test them successfully. But for >> a third domain I get errors. >> I don't know where to start debugging it. Could you nudge me in the >> right direction? >> >> Here is an anonymized output: >> >> LDAP match uid=XYZ,ou=OU,dc=bbaw,dc=de >> Exception on /mail/config-v1.1.xml [GET] >> Traceback (most recent call last): >> File "/srv/automx2/venv/lib/python3.8/site-packages/flask/app.py", >> line 2073, in wsgi_app >> response = self.full_dispatch_request() >> File "/srv/automx2/venv/lib/python3.8/site-packages/flask/app.py", >> line 1518, in full_dispatch_request >> rv = self.handle_user_exception(e) >> File "/srv/automx2/venv/lib/python3.8/site-packages/flask/app.py", >> line 1516, in full_dispatch_request >> rv = self.dispatch_request() >> File "/srv/automx2/venv/lib/python3.8/site-packages/flask/app.py", >> line 1502, in dispatch_request >> return >> self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args) >> File "/srv/automx2/venv/lib/python3.8/site-packages/flask/views.py", >> line 84, in view >> return current_app.ensure_sync(self.dispatch_request)(*args, >> **kwargs) >> File "/srv/automx2/venv/lib/python3.8/site-packages/flask/views.py", >> line 158, in dispatch_request >> return current_app.ensure_sync(meth)(*args, **kwargs) >> File >> "/srv/automx2/venv/lib/python3.8/site-packages/automx2/views/autoconfig.py", >> line 44, in get >> return self.config_from_address(address) >> File >> "/srv/automx2/venv/lib/python3.8/site-packages/automx2/views/__init__.py", >> line 38, in config_from_address >> data = self.config_response(local_part, domain_part, realname, >> password) >> File >> "/srv/automx2/venv/lib/python3.8/site-packages/automx2/views/autoconfig.py", >> line 52, in config_response >> data = MozillaGenerator().client_config(local_part, domain_part, >> realname) >> File >> "/srv/automx2/venv/lib/python3.8/site-packages/automx2/generators/mozilla.py", >> line 60, in client_config >> lookup_result: LookupResult = >> self.ldap_lookup(f'{local_part}@{domain_part}', domain.ldapserver) >> File >> "/srv/automx2/venv/lib/python3.8/site-packages/automx2/generators/__init__.py", >> line 54, in ldap_lookup >> r = ldap.lookup(server.search_base, >> server.search_filter.format(email_address), >> File >> "/srv/automx2/venv/lib/python3.8/site-packages/automx2/ldap.py", line >> 51, in lookup >> cn = self.get_attribute(ldap_entry, attr_cn) >> File >> "/srv/automx2/venv/lib/python3.8/site-packages/automx2/ldap.py", line >> 70, in get_attribute >> log.debug(f'Returning list element "{value[0]}"') >> IndexError: list index out of range >> 127.0.0.1 - - [27/Oct/2021 09:18:23] "GET >> /mail/config-v1.1.xml?emailaddress=name.surname at other.domain HTTP/1.1" >> 500 - >> >> >> I would sent you the corresponding SQL entries but not to the mailing >> list if you like to have a look. >> >> Thanks >> Lars >> >> >> >> >> >> Mon, 11 Oct 2021 18:05:41 +0200 >> Ralph Seichter ==> automx-users at sys4.de : >> > I have added documentation for automx2 LDAP support. Please see >> > https://rseichter.github.io/automx2/#ldap . >> > >> > -Ralph -- With kind regards, William Edwards From automx2 at seichter.de Fri Oct 29 16:25:43 2021 From: automx2 at seichter.de (Ralph Seichter) Date: Fri, 29 Oct 2021 16:25:43 +0200 Subject: LDAP support In-Reply-To: <20211028095031.21620cdf@mtaeuber.bbaw.de> References: <87bl44u5jy.fsf@wedjat.horus-it.com> <20211005075157.12dc0ced@bbaw.de> <87h7dvaagl.fsf@wedjat.horus-it.com> <20211005154112.6b72f8e2@bbaw.de> <87a6jnzh0s.fsf@wedjat.horus-it.com> <87lf2z8s2y.fsf@wedjat.horus-it.com> <20211027092832.5b6c3b11@bbaw.de> <20211028095031.21620cdf@mtaeuber.bbaw.de> Message-ID: <871r43syag.fsf@wedjat.horus-it.com> * Lars T?uber: > I solved my problem. It was a missing permission. The attribute "cn" > was not readable in a special branch of the ldap tree. Glad to hear you figured it out, and thanks for sharing. I am very busy this week and would not have been able to look into the issue before tomorrow. -Ralph