Receiving but unable to send email

tryingwebman

Well-Known Member
Sep 27, 2015
57
0
6
UK
cPanel Access Level
Root Administrator
I can receive emails fine but when sending i get a bounce back now almost instantly. When this started i could check the Mail Queue manager and see the emails i attempted to send when clicking deliver selected i would receive the error:

Spool file is locked (another process is handling this message)

Doe anybody have any suggestions on fixing this issue? I have googled tirelessly but a lot of the problem were not exactly the same as mine so i didn't want to apply a fix which may cause more problems down the line.

Everything was working perfectly this seams to have happened out of no where.
 

24x7server

Well-Known Member
Apr 17, 2013
1,911
96
78
India
cPanel Access Level
Root Administrator
Twitter
Hello,

Can you please let us know what exact error are you getting in bounce back mail ?

Also you have root access of your server so you can check your mail server logs with the following command.

Code:
cat /var/log/exim_mainlog | grep message-ID
 

tryingwebman

Well-Known Member
Sep 27, 2015
57
0
6
UK
cPanel Access Level
Root Administrator
The bounce back error is,

Code:
This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

[email protected]
retry time not reached for any host after a long failure period
Reporting-MTA: dns; server.domain.com

Action: failed
Final-Recipient: rfc822;[email protected]
Status: 5.0.0

From: Name<[email protected]>
Date: 6 December 2015 at 12:09:31 GMT
To: [email protected]

Although it says long failure period this happens instantly.

Please find below the result of issuing: cat /var/log/exim_mainlog | grep message-ID
Hopefully this is what you need please bare with me I'm a linux noob and still learning.


2015-12-06 11:06:18 1a5bpK-0004aS-RA User 0 set for local_delivery transport is on the never_users list
2015-12-06 11:06:18 1a5bpK-0004aS-RA == [email protected] R=localuser T=local_delivery defer (-29): User 0 set for local_delivery transport is on the never_users list
2015-12-06 11:06:18 1a5bpK-0004aS-RA ** [email protected]: retry timeout exceeded
2015-12-06 11:06:18 cwd=/var/spool/exim 7 args: /usr/sbin/exim -t -oem -oi -f <> -E1a5bpK-0004aS-RA
2015-12-06 11:06:19 1a5bpK-0004bD-UG <= <> R=1a5bpK-0004aS-RA U=mailnull P=local S=1912 T="Mail delivery failed: returning message to sender" for [email protected]
2015-12-06 11:06:19 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1a5bpK-0004bD-UG
2015-12-06 11:06:19 1a5bpK-0004bD-UG User 0 set for local_delivery transport is on the never_users list
2015-12-06 11:06:19 1a5bpK-0004bD-UG == [email protected] R=localuser T=local_delivery defer (-29): User 0 set for local_delivery transport is on the never_users list
2015-12-06 11:06:19 1a5bpK-0004bD-UG ** [email protected]: retry timeout exceeded
2015-12-06 11:06:19 1a5bpK-0004aS-RA Completed
2015-12-06 11:06:19 1a5bpK-0004bD-UG [email protected]: error ignored
2015-12-06 11:06:19 1a5bpK-0004bD-UG Completed
2015-12-06 11:06:35 1a5bgS-0004TS-3s H=mx3.hotmail.com [207.46.8.167] Connection timed out
2015-12-06 11:06:40 SMTP connection from [222.222.22.222:50183 (TCP/IP connection count = 1)
2015-12-06 11:06:41 1a5bph-0004bS-2H <= [email protected] H=bcdd5cdf.provider.com ([111.111.1.11]) [222.222.22.222:50183 P=esmtpsa X=TLSv1:DHE-RSA-AES256-SHA:256 CV=no A=dovecot_plain:[email protected] S=651 [email protected] T="Test" for [email protected]
2015-12-06 11:06:41 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1a5bph-0004bS-2H
2015-12-06 11:06:41 1a5bph-0004bS-2H SMTP connection outbound 1449418001 1a5bph-0004bS-2H domain.com [email protected]
2015-12-06 11:06:41 1a5bph-0004bS-2H ** [email protected] R=dkim_lookuphost T=dkim_remote_smtp: retry time not reached for any host after a long failure period
2015-12-06 11:06:41 cwd=/var/spool/exim 7 args: /usr/sbin/exim -t -oem -oi -f <> -E1a5bph-0004bS-2H
2015-12-06 11:06:41 1a5bph-0004bb-9L <= <> R=1a5bph-0004bS-2H U=mailnull P=local S=1950 T="Mail delivery failed: returning message to sender" for [email protected]
2015-12-06 11:06:41 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1a5bph-0004bb-9L
2015-12-06 11:06:41 1a5bph-0004bS-2H Completed
2015-12-06 11:06:41 1a5bph-0004bb-9L => username <[email protected]> R=virtual_user T=virtual_userdelivery
2015-12-06 11:06:41 1a5bph-0004bb-9L Completed
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,225
463
Hello :)

The message you provided suggests the remote mail server is blocking connection attempts from your server. You can try testing the connection via the following command from your server:

Code:
telnet mx3.hotmail.com 25
Is the connection attempt rejected right away?

Thank you.
 

tryingwebman

Well-Known Member
Sep 27, 2015
57
0
6
UK
cPanel Access Level
Root Administrator
Hello :)

The message you provided suggests the remote mail server is blocking connection attempts from your server. You can try testing the connection via the following command from your server:

Code:
telnet mx3.hotmail.com 25
Is the connection attempt rejected right away?

Thank you.
I get the result,

220 SNT004-MC1F54.hotmail.com Sending unsolicited commercial or bulk e-mail to Microsoft's computer network is prohibited. Other restrictions are found at default.asp.
451 Timeout waiting for client input

Connection closed by foreign host.

Does this mean i have been marked as spam!?

Thanks for the help Michael
 
Last edited:

tryingwebman

Well-Known Member
Sep 27, 2015
57
0
6
UK
cPanel Access Level
Root Administrator
If this is the case I'm pretty sure intact 100% sure this wasn't my doing how do i find out how this came about or even if its still happening!?

Thanks again Jamie
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,225
463
The output from the "telnet" command suggests your server is no longer blocked. Are new messages to Hotmail still failing?

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,225
463
It's important to review /var/log/exim_mainlog when a message fails to send out to see exactly what's happening. Do you still see entries such as "2015-12-06 11:06:35 1a5bgS-0004TS-3s H=mx3.hotmail.com [207.46.8.167] Connection timed out" when messages failed, or is it something other than connection timeouts? The connection timeouts indicate the remote mail servers are blocking your messages, or an internal firewall (or provider policy) is blocking the message.

Thank you.
 

tryingwebman

Well-Known Member
Sep 27, 2015
57
0
6
UK
cPanel Access Level
Root Administrator
It's important to review /var/log/exim_mainlog when a message fails to send out to see exactly what's happening. Do you still see entries such as "2015-12-06 11:06:35 1a5bgS-0004TS-3s H=mx3.hotmail.com [207.46.8.167] Connection timed out" when messages failed, or is it something other than connection timeouts? The connection timeouts indicate the remote mail servers are blocking your messages, or an internal firewall (or provider policy) is blocking the message.

Thank you.
After seeing the log using

# /var/log/exim_mainlog

I can see retry timeout exceeded returning message to sender. And also i can see the error Excessive resource usage: from my root @ domain account what would be the cause of this?

I should of pointed out earlier but will point out now. All internal emails are fine i receive all alerts etc sent server side.
 
Last edited: