My emails are not reaching the recipient (Amazon SES)

Dgomez

Member
Jul 20, 2021
7
0
1
Guanajuato
cPanel Access Level
Website Owner
When I send an email, within the logs they do not show me any problem, everything seems to be fine but the emails do not arrive, i already checked the configuration of amazon ses and from there the emails go out without any problem.
The firewall is correctly configured.

I do not know if there is any configuration that I am skipping, I am attaching some images with my configuration.

Exim configuration:
1626820796194.png
1626820633027.png

This is my logs,
They do not show any problem but the emails do not arrive:
1626820526388.png
 

Attachments

Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,625
2,625
363
cPanel Access Level
Root Administrator
Hey there! We'd need a bit more information than that log snippet to determine what the issue could be. I'd recommend running this command on the server to get all the entries related to that IP address on the system:

Code:
grep 1m5uTN-0006cK-Vp /var/log/exim_mainlog
That will show the entire mail transaction, and the last line should say something like "COMPLETED" if it did leave your server and get to the destination machine. Can you try that and post the results?
 

Dgomez

Member
Jul 20, 2021
7
0
1
Guanajuato
cPanel Access Level
Website Owner
I already ran the command again and now it shows the following:

2021-07-21 14:23:13 1k80Xn-0001sd-S1 == [email protected] R=send_via_ses T=ses_smtp defer (-53): retry time not reached for any host for 'gmail.com'

the problem with "retry time not reached for any host for" i have it with any domain to which I send emails, I already have port 25 enabled and I don't know what else to do
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,625
2,625
363
cPanel Access Level
Root Administrator
Thanks for that - that's an important clue.

This error message indicates that your server has one of two things happening - it's already sent mail to Gmail which has failed, or it can't look up the addresses so it doesn't know where to send them. Since you indicated this is happening with any domain, it is likely the second issue.

Can you run the following command on your server and post the results?

Code:
dig google.com
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,625
2,625
363
cPanel Access Level
Root Administrator
Interesting - it would seem things are working well now.

I'm wondering if there were earlier DNS issues that kept this from working that have been resolved. Can you run these commands to clear the Exim retry database and then try to send a message again?

Code:
/usr/sbin/exim_tidydb -t 0d /var/spool/exim retry > /dev/null
/usr/sbin/exim_tidydb -t 0d /var/spool/exim reject > /dev/null
/usr/sbin/exim_tidydb -t 0d /var/spool/exim wait-remote_smtp > /dev/null
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,625
2,625
363
cPanel Access Level
Root Administrator
That's odd, as those commands should at least reset the Exim retry database to keep that from happening.

At this point it would be best to open a ticket with our Technical Support team so we can check things directly on the system.
 

Dgomez

Member
Jul 20, 2021
7
0
1
Guanajuato
cPanel Access Level
Website Owner
this is the ticket number: #94345980

I already managed to send the emails:

The problem was in the Stunnel connection, just change port 2525 to 587, apparently the only ports to work with amazon SES are 25 and 587.

I had already presented other problems but they were only syntax.