Hello Friends,
Today, I am going to explain a new issue that you might have faced sometimes.
Error Message:
~~~~~~~~~
retry_defer MAIN
== test@domain.com R=lookuphost T=remote_smtp defer (-53): retry time not reached for any host
~~~~~~~~~
Issue:
When you try to send a mail, you may get the above error.
Reason:
The Exim Retry Database has likely become corrupted ( corrupted exim db files ).
Resolution:
Go to the location “/var/spool/exim/db” and there you will see a list of files. Refer the below snapshot for your reference:
Now delete the below files and restart exim service:
retry, retry.lockfile, wait-remote_smtp, wait-remote_smtp.lockfile
Command to delete above files and to restart exim service
~~~~~~~~~
rm -f retry retry.lockfile rm -f wait-remote_smtp wait-remote_smtp.lockfile service exim restart
~~~~~~~~~
Or, use the following commands to fix the issue:
~~~~~~~~~
/usr/sbin/exim_tidydb -t 1d /var/spool/exim retry > /dev/null /usr/sbin/exim_tidydb -t 1d /var/spool/exim reject > /dev/null /usr/sbin/exim_tidydb -t 1d /var/spool/exim wait-remote_smtp > /dev/null /scripts/courierup -- force /scripts/eximup --force
~~~~~~~~~
Now try to send mail and you will see you are now able to send mails without any issue.
If you still get any error, feel free to comment here. I will try to resolve it. 🙂
My name is Shashank Shekhar. I am a DevOps Engineer, currently working in one of the best companies in India. I am having around 5 years of experience in Linux Server Administration and DevOps tools.
I love to work in Linux environment & love learning new things.
Powered by Facebook Comments
Leave a Reply