The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Receiving but unable to send email

Discussion in 'E-mail Discussions' started by tryingwebman, Dec 6, 2015.

  1. tryingwebman

    tryingwebman Well-Known Member

    Joined:
    Sep 27, 2015
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    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.
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,146
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    India
    cPanel Access Level:
    Root Administrator
    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
     
  3. tryingwebman

    tryingwebman Well-Known Member

    Joined:
    Sep 27, 2015
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    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:
    
    name@domain.com
    retry time not reached for any host after a long failure period
    Reporting-MTA: dns; server.domain.com
    
    Action: failed
    Final-Recipient: rfc822;name@domain.com
    Status: 5.0.0
    
    From: Name<name@domain.com>
    Date: 6 December 2015 at 12:09:31 GMT
    To: name@domain.com
    
    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 == root@servername.domain.com 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 ** root@servername.domain.com: 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 root@servername.domain.com
    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 == root@servername.domain.com 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 ** root@servername.domain.com: retry timeout exceeded
    2015-12-06 11:06:19 1a5bpK-0004aS-RA Completed
    2015-12-06 11:06:19 1a5bpK-0004bD-UG root@servername.domain.com: 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 <= username@domain.com 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:username@domain.com S=651 id=3FAE8D3E-C011-4C3E-8FF6-B361488AD4E7@domain.com T="Test" for username@msn.com
    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 username@msn.com
    2015-12-06 11:06:41 1a5bph-0004bS-2H ** username@msn.com 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 username@domain.com
    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 <username@domain.com> R=virtual_user T=virtual_userdelivery
    2015-12-06 11:06:41 1a5bph-0004bb-9L Completed
     
    #3 tryingwebman, Dec 6, 2015
    Last edited by a moderator: Dec 7, 2015
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    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.
     
  5. tryingwebman

    tryingwebman Well-Known Member

    Joined:
    Sep 27, 2015
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    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
     
    #5 tryingwebman, Dec 8, 2015
    Last edited: Dec 8, 2015
  6. tryingwebman

    tryingwebman Well-Known Member

    Joined:
    Sep 27, 2015
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    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
     
  7. tryingwebman

    tryingwebman Well-Known Member

    Joined:
    Sep 27, 2015
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    I have just checked my IPs and server domain and IPS on mxtoolbox and not on any lists
     
  8. tryingwebman

    tryingwebman Well-Known Member

    Joined:
    Sep 27, 2015
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    Sorry should have done some research first it seams this is the normal outcome? So whats going wrong?
     
  9. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  10. tryingwebman

    tryingwebman Well-Known Member

    Joined:
    Sep 27, 2015
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    All email messages are still failing i have tried multiple domains and nothing is sending the only difference now is i am not receiving bounce backs.
     
  11. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    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.
     
  12. tryingwebman

    tryingwebman Well-Known Member

    Joined:
    Sep 27, 2015
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    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.
     
    #12 tryingwebman, Dec 9, 2015
    Last edited: Dec 9, 2015
  13. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    You have to view a log file with a command such as "tail" or with the "exigrep" command. EX:

    Code:
    exigrep user@domain /var/log/exim_mainlog
    This thread will help:

    Reading and Understanding the exim main_log

    Thank you.
     
Loading...

Share This Page