FairEmail+K9 seem to ignore our Thunderbird Autoconfig XML file #60

Closed
opened 2024-02-13 12:01:54 +00:00 by quentin · 2 comments
Owner

Thunderbird Autoconfig is specified on this page: Thunderbird:Autoconfiguration:ConfigFileFormat

We have an entry to says that the IMAP login = email local part (and not the full email address):

    <incomingServer type="imap">
      <hostname>imap.saint-ex.deuxfleurs.org</hostname>
      <port>993</port>
      <socketType>SSL</socketType>
      <authentication>plain</authentication>
      <username>%EMAILLOCALPART%</username>
    </incomingServer>

But it seems ignored by FairEmail despite advertising support for this file.

Requests:

nginx-1  | x.y.z.a - - [13/Feb/2024:11:31:33 +0000] "GET /.well-known/autoconfig/mail/config-v1.1.xml?emailaddress=nicolas@saint-ex.deuxfleurs.org HTTP/1.1" 200 1020 "-" "Mozilla/5.0 (Linux; Android 10; Nokia 7.1 Build/QKQ1.190828.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/91.0.4472.101 Mobile Safari/537.36"
nginx-1  | x.y.z.a - - [13/Feb/2024:11:31:33 +0000] "GET /autodiscover/autodiscover.xml HTTP/1.1" 404 19 "-" "Mozilla/5.0 (Linux; Android 10; Nokia 7.1 Build/QKQ1.190828.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/91.0.4472.101 Mobile Safari/537.36"

Hypothesis:

  • We don't send the correct mime type currently, it might be the issue (we send Content-Type: text/plain and should send Content-Type: text/xml instead).
  • %EMAILLOCALPART% might not be supported (should check the source code)

Possible fixes:

  • Send the correct MIME type
  • Use the ?emailaddress= query parameter to fill the field
  • Implement Microsoft autodiscover.xml
Thunderbird Autoconfig is specified on this page: [Thunderbird:Autoconfiguration:ConfigFileFormat](https://wiki.mozilla.org/Thunderbird:Autoconfiguration:ConfigFileFormat) We have an entry to says that the IMAP login = email local part (and not the full email address): ```xml <incomingServer type="imap"> <hostname>imap.saint-ex.deuxfleurs.org</hostname> <port>993</port> <socketType>SSL</socketType> <authentication>plain</authentication> <username>%EMAILLOCALPART%</username> </incomingServer> ``` But it seems ignored by FairEmail despite advertising [support for this file](https://github.com/M66B/FairEmail/blob/master/FAQ.md#faq174). Requests: ``` nginx-1 | x.y.z.a - - [13/Feb/2024:11:31:33 +0000] "GET /.well-known/autoconfig/mail/config-v1.1.xml?emailaddress=nicolas@saint-ex.deuxfleurs.org HTTP/1.1" 200 1020 "-" "Mozilla/5.0 (Linux; Android 10; Nokia 7.1 Build/QKQ1.190828.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/91.0.4472.101 Mobile Safari/537.36" nginx-1 | x.y.z.a - - [13/Feb/2024:11:31:33 +0000] "GET /autodiscover/autodiscover.xml HTTP/1.1" 404 19 "-" "Mozilla/5.0 (Linux; Android 10; Nokia 7.1 Build/QKQ1.190828.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/91.0.4472.101 Mobile Safari/537.36" ``` Hypothesis: - We don't send the correct mime type currently, it might be the issue (we send `Content-Type: text/plain` and should send `Content-Type: text/xml` instead). - `%EMAILLOCALPART%` might not be supported (should check the source code) Possible fixes: - Send the correct MIME type - Use the `?emailaddress=` query parameter to fill the field - Implement Microsoft autodiscover.xml
quentin added the
cat
bug
label 2024-02-13 12:01:57 +00:00
quentin added this to the Deuxfleurs Email project 2024-02-13 12:02:01 +00:00

See attached screenshot of FairEmail autoconfiguration.

The 50 at the end of the smtp and imap addresses remind me of the DNS based auto discovery, where each possibility can have a priority value. Maybe this could be related?

EDIT: it does not seems so, the numbers do not match:

$ dig +short SRV _submissions._tcp.saint-ex.deuxfleurs.org
10 10 465 smtp.saint-ex.deuxfleurs.org.
$ dig +short SRV _imaps._tcp.saint-ex.deuxfleurs.org
10 10 993 imap.saint-ex.deuxfleurs.org.
See attached screenshot of FairEmail autoconfiguration. The `50` at the end of the smtp and imap addresses remind me of the [DNS based auto discovery](http://www.pscs.co.uk/manual/dns-srv-autodiscover.html), where each possibility can have a priority value. Maybe this could be related? EDIT: it does not seems so, the numbers do not match: ```console $ dig +short SRV _submissions._tcp.saint-ex.deuxfleurs.org 10 10 465 smtp.saint-ex.deuxfleurs.org. $ dig +short SRV _imaps._tcp.saint-ex.deuxfleurs.org 10 10 993 imap.saint-ex.deuxfleurs.org. ```
quentin changed title from FairEmail seems to ignore our Thunderbird Autoconfig XML file to FairEmail+K9 seems to ignore our Thunderbird Autoconfig XML file 2024-02-13 12:47:12 +00:00
quentin changed title from FairEmail+K9 seems to ignore our Thunderbird Autoconfig XML file to FairEmail+K9 seem to ignore our Thunderbird Autoconfig XML file 2024-02-13 12:47:32 +00:00
Author
Owner

Fixed:

  • Stable K9 ignores %EMAILLOCALPART%
  • Beta K9 does not support old authentication field (plain instead of password-cleartext), fixed
  • FairEmail sends a non-empty authorization field, fixed in Aerogramme
  • FairEmail might require a Content-Type: text/xml in order to accept the autodiscovery file, fixed
Fixed: - Stable K9 ignores %EMAILLOCALPART% - Beta K9 does not support old authentication field (plain instead of password-cleartext), fixed - FairEmail sends a non-empty authorization field, fixed in Aerogramme - FairEmail might require a `Content-Type: text/xml` in order to accept the autodiscovery file, fixed
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Deuxfleurs/guichet#60
No description provided.