SMTP Issues - Generic Error

I’m trying to configure the SMTP Email Settings to use Amazon SES for SMTP.

Every time I try to send a test email, it returns SmtpError - Error sending SMTP test email.

Is this error logged somewhere so that I can troubleshoot? As far as I’m aware, the details are all correct.

AWS lists the following connection details:
|Server Name:|email-smtp.us-east-2.amazonaws.com|
|Port:|25, 465 or 587|
|Use Transport Layer Security (TLS):|Yes|

I checked the enable SSL and use explicit TLS boxes, set the port to 465, entered credentials, set the from address, and every time I try to test it I get a generic error message.

Hello @guiltykeyboard,

The last few days there have been several changes and fixes regarding the e-mail sending.
Could you please try again using the latest (testing) image and report back?

Thanks.

I had the same error (SmtpError - Error sending SMTP test email.)

updated to testing

Still not connecting but the error changed to:
Error sending SMTP test email
SMTP IO error: failed to lookup address information: Temporary failure in name resolution

I’ve tried with two email accounts. Both servers ping from host.

If I try to curl google.com from the container it throws a “could not resolve host”

Cloud VPS centos 8. Docker version 19.03.13,

That indicates there is a dns issue within the container. So, the container can’t access the internet it seems. This is something the docker host should take care of for the container, so something is wrong there.

1 Like

Joy.

After some tooling around it seems to be a docker / firewalld incompatibility. Docker uses iptables. Centos 8 machine.

Checking ‘systemctl status firewalld’ I was getting a number of errors similar to these:
Sep 28 12:51:49 DOMAIN.COM rewalld[637]: WARNING: COMMAND_FAILED: ‘/usr/sbin/iptables -w10 -t filter -F DOCKER’ failed: iptables: No chain/target/match by that name.
Sep 28 12:51:49 3.DOMAIN.COM rt firewalld[637]: WARNING: COMMAND_FAILED: ‘/usr/sbin/iptables -w10 -t filter -X DOCKER’ failed: iptables: No chain/target/match by that name.

I uninstalled firewalld and installed iptables and setup. Restarted docker for it to reset its iptables rules.
Restarted the container. Tested SMTP and got confirmation on sending and I did receive.

1 Like