mirror of
https://github.com/gronke/email-autodiscover.git
synced 2026-04-25 06:15:58 +03:00
[PR #3] Support StartTLS for SMTP autoconfiguration #6
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/email-autodiscover#6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/gronke/email-autodiscover/pull/3
Author: @aspettl
Created: 3/18/2018
Status: 🔄 Open
Base:
master← Head:master📝 Commits (4)
8fd2e64Use "Encryption" tag for SMTP instead of "SSL" for autodiscover.xml0ae1a9fExceptions instead of warnings on reading file problems0744b93Require PHP 7.3be8a742Make 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.