[PR #3] Support StartTLS for SMTP autoconfiguration #6

Open
opened 2026-03-04 03:27:51 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/gronke/email-autodiscover/pull/3
Author: @aspettl
Created: 3/18/2018
Status: 🔄 Open

Base: masterHead: master


📝 Commits (4)

  • 8fd2e64 Use "Encryption" tag for SMTP instead of "SSL" for autodiscover.xml
  • 0ae1a9f Exceptions instead of warnings on reading file problems
  • 0744b93 Require PHP 7.3
  • be8a742 Make use of PHP 7 null coalesce operator

📊 Changes

3 files changed (+16 additions, -7 deletions)

View changed files

📝 README.md (+1 -1)
📝 autodiscover.xml.php (+14 -5)
📝 mail/autodiscover.xml (+1 -1)

📄 Description

Hello

I want to advertise the submission port (SMTP with STARTTLS and authentication, port 587) instead of SMTP via SSL (port 465). Reason: port 587 is the standard, port 465 is not RFC compliant.

I use the "socket" variable of "smtp" with the value "STARTTLS" for that. This is exactly the right format for "config-v1.1.xml".

Unfortunately, for "autodiscover.xml" it is not that simple: it seems that Outlook 2007 understands only the "SSL" tag. Since Outlook 2010, there is an "Encryption" tag superseding "SSL" (which can have the value "SSL" or "TLS", see also [1]). In this PR, I switch over to the "Encryption" tag completely. This means Outlook 2007 cannot understand the new format.

To remedy this for users staying with "SSL" and needing Outlook 2007 support, one could probably let the SSL tag remain as before (I can make that change if this is favored). According to the documentation in [1], the presence of "Encryption" should make "SSL" irrelevant for Outlook 2010 and later. However, I'm not sure if the presence of "Encryption" lets some schema validation fail in Outlook 2007...

Just for cross-reference, I'm using this in the context of [2].

[1] https://msdn.microsoft.com/en-us/library/cc463896(EXCHG.80).aspx
[2] https://github.com/johansmitsnl/docker-email-autodiscover/issues/2


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/gronke/email-autodiscover/pull/3 **Author:** [@aspettl](https://github.com/aspettl) **Created:** 3/18/2018 **Status:** 🔄 Open **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (4) - [`8fd2e64`](https://github.com/gronke/email-autodiscover/commit/8fd2e645f3d40c7886dde7d5206d27c050fa4098) Use "Encryption" tag for SMTP instead of "SSL" for autodiscover.xml - [`0ae1a9f`](https://github.com/gronke/email-autodiscover/commit/0ae1a9fdc5e9d0eac31a02b17484572ce7d5e1e1) Exceptions instead of warnings on reading file problems - [`0744b93`](https://github.com/gronke/email-autodiscover/commit/0744b93c61e93dd4f95c09d4550ac42aec1e5262) Require PHP 7.3 - [`be8a742`](https://github.com/gronke/email-autodiscover/commit/be8a74205164ab5c76c9c35260c3a6902a4b4790) Make use of PHP 7 null coalesce operator ### 📊 Changes **3 files changed** (+16 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -1) 📝 `autodiscover.xml.php` (+14 -5) 📝 `mail/autodiscover.xml` (+1 -1) </details> ### 📄 Description Hello I want to advertise the submission port (SMTP with STARTTLS and authentication, port 587) instead of SMTP via SSL (port 465). Reason: port 587 is the standard, port 465 is not RFC compliant. I use the "socket" variable of "smtp" with the value "STARTTLS" for that. This is exactly the right format for "config-v1.1.xml". Unfortunately, for "autodiscover.xml" it is not that simple: it seems that Outlook 2007 understands only the "SSL" tag. Since Outlook 2010, there is an "Encryption" tag superseding "SSL" (which can have the value "SSL" or "TLS", see also [1]). In this PR, I switch over to the "Encryption" tag completely. This means Outlook 2007 cannot understand the new format. To remedy this for users staying with "SSL" and needing Outlook 2007 support, one could probably let the SSL tag remain as before (I can make that change if this is favored). According to the documentation in [1], the presence of "Encryption" should make "SSL" irrelevant for Outlook 2010 and later. However, I'm not sure if the presence of "Encryption" lets some schema validation fail in Outlook 2007... Just for cross-reference, I'm using this in the context of [2]. [1] https://msdn.microsoft.com/en-us/library/cc463896(EXCHG.80).aspx [2] https://github.com/johansmitsnl/docker-email-autodiscover/issues/2 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
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
starred/email-autodiscover#6
No description provided.