Remote_smtp defer 53 retry time not reached any Host
Post old, but if anyone wants to try ... Today I needed, and solved, see how I did:
Try,
#Delete files:#Clear file:#Then restart Exim4 OR Restart VPS
First off, you have to ensure that remote smtp server is accepting connections on 25/tcp by telnet commnad,
Next step is to tidy up exim database in case of you databases are correpted,
Another possibility is your Email server IP Address may be blocked in Exim databases so you should unblock that.
Before that you need to take a db directory backup,
Stop the exim and remove ratelimit and retry and start the exim,
May remote smtp server is not accepting connections and shows below error,
Need to check, may be IP address has been blocked in csf or allow the Email server IP address in both files.
Once saved both files need to restart exim,
Try,
#Delete files:
CODE: SELECT ALL
rm /var/spool/exim/db/*
rm /var/spool/exim/input/*
rm /var/spool/exim/msglog/*
rm /var/log/exim/*
CODE: SELECT ALL
> /var/log/dovecot.log
CODE: SELECT ALL
service exim restart
You may get an error in exim_mainlog while sending an email as below,
2014-04-01 12:01:41 [10040] 1Wb2Kq-0002bq-UH == admin@domain.com R=dkim_lookuphost T=dkim_remote_smtp defer (-53): retry time not reached for any host
First off, you have to ensure that remote smtp server is accepting connections on 25/tcp by telnet commnad,
# telnet host.hostname.com 25
Trying 192.168.0.1...
Connected to host.hostname.com.
220-host.hostname.com ESMTP Exim 4.80.1 #2 Wed, 01 Jan 2014 11:14:46 +0530
220-We do not authorize the use of this system to transport unsolicited,
220 and/or bulk e-mail.
Trying 192.168.0.1...
Connected to host.hostname.com.
220-host.hostname.com ESMTP Exim 4.80.1 #2 Wed, 01 Jan 2014 11:14:46 +0530
220-We do not authorize the use of this system to transport unsolicited,
220 and/or bulk e-mail.
Next step is to tidy up exim database in case of you databases are correpted,
# /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
# /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
Another possibility is your Email server IP Address may be blocked in Exim databases so you should unblock that.
Before that you need to take a db directory backup,
# cp -rf /var/spool/exim/db /var/spool/exim/db_bak
Stop the exim and remove ratelimit and retry and start the exim,
# /etc/init.d/exim stop
# cd /var/spool/exim/
# rm -rf ratelimit*
# rm -rf ratelimit.lockfile
# rm -rf retry
# rm -rf retry.lockfile
#/etc/init.d/exim start
# cd /var/spool/exim/
# rm -rf ratelimit*
# rm -rf ratelimit.lockfile
# rm -rf retry
# rm -rf retry.lockfile
#/etc/init.d/exim start
May remote smtp server is not accepting connections and shows below error,
# telnet domain.com 25
Trying 192.168.0.1...
Connected to domain.com.
451 Temporary local problem - please try later
Connection closed by foreign host.
Trying 192.168.0.1...
Connected to domain.com.
451 Temporary local problem - please try later
Connection closed by foreign host.
Need to check, may be IP address has been blocked in csf or allow the Email server IP address in both files.
# vim /etc/alwaysrelay
192.168.0.1
# /etc/senderverifybypasshosts
192.168.0.1
192.168.0.1
# /etc/senderverifybypasshosts
192.168.0.1
Once saved both files need to restart exim,
#/etc/init.d/exim restart
Now, you can able to send an email from server.IF you want to do from inside a vim editor in command line, you can try this
vim file.txt
Press Esc.
:1,$d
Press Enter.
Comments
Post a Comment