Skip to content

"TLS error on connection (recv): A TLS fatal alert has been received: User canceled" error message

0

Hi,

I'm getting an error message: "H=email-smtp.eu-west-1.amazonaws.com [<SES IP address>] TLS error on connection (recv): A TLS fatal alert has been received: User canceled" every time I send an email to SES via exim. The error appears in the exim log in between the mail received log (<=) and the mail sent log (=>). The mail gets delivered successfully. I'm sending to a variety of recipients, and get the error message every time. Increasing the debug level in exim doesn't give me any more details on the error. This is happening only on my newly-built debian 12 machines and not with identically-configured debian 11 machines. Googling this particular error message returns very few results, but all are sending via SES: https://lists.exim.org/lurker/message/20240313.192339.afc81f8f.el.html https://github.com/knadh/listmonk/issues/1717 https://repost.aws/questions/QULOBzwPLMS2GkrUgOjWNshQ/amazon-ses-remote-error-tls-user-canceled-421-connection-closed-by-server-too-many-messages-in-one-session (I think the last two are the same reporter)

Given that the email is delivered, what does this error message mean? Is it actually a problem? Any ideas on how to troubleshoot the error further?

Many thanks,

Martin.

asked 2 years ago912 views

1 Answer
0

The error message you're encountering, "TLS error on connection (recv): A TLS fatal alert has been received: User canceled," is related to the TLS (Transport Layer Security) connection between your Exim mail server and Amazon SES SMTP endpoint. Despite this error, your emails are still being delivered successfully, which suggests that this isn't a critical issue affecting the actual email transmission.

This error typically occurs during the TLS handshake process. It appears that the connection is being terminated prematurely, possibly due to a mismatch in TLS versions or cipher suites between your Debian 12 system and the Amazon SES SMTP server.

The fact that this is happening only on your newly-built Debian 12 machines and not on identically-configured Debian 11 machines points to a potential change in the default TLS configuration or libraries in Debian 12.

While the error doesn't seem to be preventing email delivery, it's worth investigating further to ensure optimal performance and security. Here are some steps you can take to troubleshoot:

  1. Check your Exim TLS configuration: Ensure that your Exim is configured to use TLS versions and cipher suites compatible with Amazon SES.

  2. Update your system: Make sure your Debian 12 system and Exim are up to date with the latest security patches.

  3. Try different TLS versions: Experiment with forcing specific TLS versions (e.g., TLS 1.2 or TLS 1.3) in your Exim configuration to see if it resolves the issue.

  4. Check for any network issues: Ensure there are no firewall or proxy settings interfering with the TLS connection.

  5. Contact Amazon SES support: If the issue persists, it may be worth reaching out to Amazon SES support for further assistance, as they might have insights into any recent changes on their end that could be causing this behavior.

  6. Monitor closely: Keep an eye on your email deliverability and any potential performance impacts, even though the emails are currently being delivered successfully.

Remember, while this error doesn't seem to be impacting email delivery currently, it's important to resolve it to ensure the long-term reliability and security of your email sending process through Amazon SES.
Sources
Amazon SES SMTP issues - Amazon Simple Email Service
Amazon SES SMTP issues - Amazon Simple Email Service
Test your connection to the Amazon SES SMTP interface using the command line - Amazon Simple Email Service

answered 2 years ago

EXPERT

reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.