-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiplex HTTPS, IMAP and SMTP on port 443 #357
Conversation
Related Delta Chat core PR making it request |
5abb52f
to
a57619d
Compare
13fec29
to
b5cd2ac
Compare
map $ssl_preread_alpn_protocols $proxy { | ||
default 127.0.0.1:8443; | ||
~\bsmtp\b 127.0.0.1:465; | ||
~\bimap\b 127.0.0.1:993; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this mean that establishing SSL is done by imap/postfix still?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it is controlled by proxy_ssl
which is off by default. Passing to plaintext port would not work, I think postfix and dovecot would not be happy about authentication before STARTTLS.
~\bsmtp\b 127.0.0.1:465; | ||
~\bimap\b 127.0.0.1:993; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we use the /etc/service names of "imaps" and "smtps" here? i'd prefer that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very nice!
b5cd2ac
to
10bf9d5
Compare
Services are distinguished based on ALPN. For example, openssl s_client -connect example.org:443 -alpn smtp gives SMTP connection and openssl s_client -connect example.org:443 -alpn imap gives IMAP connection.
10bf9d5
to
4a8ceaa
Compare
Services are distinguished based on ALPN.
For example,
openssl s_client -connect example.org:443 -alpn smtp
gives SMTP connection and
openssl s_client -connect example.org:443 -alpn imap
gives IMAP connection.