Sending Emails does not work while receiving does

Post Reply
nervenfacharzt
Posts: 4
Joined: Tue Jan 04, 2022 8:04 pm

Hello,

I just ported an old server of mine (in the same datacenter) to a newer one where I transfered accounts from vestaCB (at debian 7) to myvestaCB (at debian 11). Everything worked out fine, but I got a mailing issue that is really making me some troubles:

I can receive Emails but I cannot send them (in 2 ways):

-) Whenever I send to gmail addresses I will receive a bounce back saying that after a while: "all hosts for 'gmail.com' have been failing for a long time (and retry time not reached)"

-) Whenever I send to other email addresses I would not receive any failure and the mainlog at /var/log/exim4 would even suggest that the email was sent, but it never arrives anywhere (nor is in any junkbox or alike). That would be a copy and paste of such a process from mainlog:

2022-01-04 19:11:53 H=77.119.231.172.static.drei.at ([192.168.5.87]) [77.119.231.172] Warning: Sender rate [limitlog]: log / email / [email protected] / 2.7 / 1h
2022-01-04 19:11:53 1n4pDt-0002bN-Fr <= [email protected] H=77.119.231.172.static.drei.at ([192.168.5.87]) [77.119.231.172] P=esmtpsa X=TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128 CV=no A=dovecot_plain:[email protected] S=737 id=[email protected]
2022-01-04 19:11:53 1n4pDt-0002bN-Fr => albert <[email protected]> R=localuser T=local_delivery
2022-01-04 19:11:53 1n4pDt-0002bN-Fr Completed

I am trying to fix that problem now for a whole day and had not been able to. I am really desperate on a fast solution here as this is a productive server and I need the emails up working fast again and would be willing to pay someone if he/she only would fix the problem fast. I hope for soon replies.

Thanks a lot guys.
User avatar
myVesta
Site Admin
Posts: 928
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 8 times
Been thanked: 6 times

Did you put reverse DNS for IPv4 to be the same as server hostname?

Try to clean up exim queue:

Code: Select all

exim -bp | awk '/^ *[0-9]+[mhd]/{print "exim -Mrm " $3}' | bash
Then clean up retry database:

Code: Select all

/usr/sbin/exim_tidydb -t 1d /var/spool/exim retry > /dev/null
rm -rf /var/spool/exim/db/retry
rm -rf /var/spool/exim/db/retry.lockfile

/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

service exim4 restart
Then try to send email to gmail, and copy-paste here latest lines from exim4 mainlog.
nervenfacharzt
Posts: 4
Joined: Tue Jan 04, 2022 8:04 pm

Code: Select all

2022-01-04 20:25:01 1n4qMf-00043s-8o U=root Warning: Sender rate [limitlog]: log / account / root / 10.0 / 1h
2022-01-04 20:25:01 1n4qMf-00043s-8o <= [email protected] U=root P=local S=644
2022-01-04 20:25:01 1n4qMf-00043s-8o == [email protected] R=dnslookup T=remote_smtp defer (-53): retry time not reached for any host for 'gmail.com'
2022-01-04 20:25:06 H=77.119.231.172.static.drei.at ([192.168.5.87]) [77.119.231.172] Warning: Sender rate [limitlog]: log / email / [email protected] / 2.7 / 1h
2022-01-04 20:25:06 1n4qMk-00046r-J3 <= [email protected] H=77.119.231.172.static.drei.at ([192.168.5.87]) [77.119.231.172] P=esmtpsa X=TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128 CV=no A=dovecot_plain:[email protected] S=764 [email protected]

I didn´t XXX out so you can see more detailed (but will later on in order to prevent google from indexing the whole emails).
User avatar
myVesta
Site Admin
Posts: 928
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 8 times
Been thanked: 6 times

You tried to restart exim retry database, as I suggested?

If you want, send me SSH root login via private message, I will take a closer look.
nervenfacharzt
Posts: 4
Joined: Tue Jan 04, 2022 8:04 pm

Ya did as you asked.

Would be cool. Sending PM.
Post Reply