You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
When Synapse is deployed in an IPv6 only environment and resolves the email.smtp_host value via DNS, it only connects to IPv4.
The DNS record in question (smtp.ungleich.ch) has both, AAAA and A entries, however synapse/twisted, don't try the AAAA entry, not even at a later stage.
The error message is:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/synapse/handlers/identity.py", line 412, in send_threepid_validation
await send_email_func(email_address, token, client_secret, session_id)
File "/usr/local/lib/python3.9/site-packages/synapse/push/mailer.py", line 179, in send_registration_mail
await self.send_email(
File "/usr/local/lib/python3.9/site-packages/synapse/push/mailer.py", line 325, in send_email
await self.send_email_handler.send_email(
File "/usr/local/lib/python3.9/site-packages/synapse/handlers/send_email.py", line 180, in send_email
await self._sendmail(
File "/usr/local/lib/python3.9/site-packages/synapse/handlers/send_email.py", line 116, in _sendmail
await make_deferred_yieldable(d)
twisted.internet.error.NoRouteError: No route to host: 101: Network is unreachable.
Steps to reproduce
deploy matrix in an IPv6 only environment (f.i. ipv6 only kubernetes cluster)
Configure synapse to send emails via a mailserver that has both AAAA and A DNS entries
Suggested fix
Synapse should
get both AAAA and A entries
try all records in parallel
Use the first connection that works
(standard happy eyeballs algorithm)
Further information
This problem is a blocker, as it is impossible to specifiy the IPv6 address of the mail server directly
If the IPv6 address is specified directly, the following error happens which indicates an SSL error:
2022-04-22 22:01:15,959 - synapse.handlers.identity - 414 - ERROR - POST-18- Error sending threepid validation email to ...@ungleich.ch
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/synapse/handlers/identity.py", line 412, in send_threepid_validation
await send_email_func(email_address, token, client_secret, session_id)
File "/usr/local/lib/python3.9/site-packages/synapse/push/mailer.py", line 179, in send_registration_mail
await self.send_email(
File "/usr/local/lib/python3.9/site-packages/synapse/push/mailer.py", line 325, in send_email
await self.send_email_handler.send_email(
File "/usr/local/lib/python3.9/site-packages/synapse/handlers/send_email.py", line 180, in send_email
await self._sendmail(
File "/usr/local/lib/python3.9/site-packages/synapse/handlers/send_email.py", line 116, in _sendmail
await make_deferred_yieldable(d)
twisted.internet.error.ConnectionAborted: Connection was aborted locally using ITCPTransport.abortConnection.
Version information
Synapse 1.57.1
Homeserver: ANY
If not matrix.org:
Version: 1.57.1
Install method: docker/kubernetes
Platform: kubernetes
The text was updated successfully, but these errors were encountered:
Description
When Synapse is deployed in an IPv6 only environment and resolves the
email.smtp_host
value via DNS, it only connects to IPv4.The DNS record in question (smtp.ungleich.ch) has both, AAAA and A entries, however synapse/twisted, don't try the AAAA entry, not even at a later stage.
The error message is:
Steps to reproduce
Suggested fix
Synapse should
(standard happy eyeballs algorithm)
Further information
Version information
If not matrix.org:
Version: 1.57.1
Install method: docker/kubernetes
Platform: kubernetes
The text was updated successfully, but these errors were encountered: