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.

Send mail not working

Discussion in 'E-mail Discussions' started by wagnerpk, Nov 5, 2011.

  1. wagnerpk

    wagnerpk Member

    Joined:
    Nov 5, 2011
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I recently installed WHM/cPanel in a VPS with CentOS, a few days.


    I created cPanel accounts and it looks like working. But, the email accounts created by these accounts can receive email, but can't send email. I look to Mail Queue Manager and all emails are there. I click "Deliver Now" but page just keep loading and nothing happens.


    What could be wrong?
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Could you provide the error message that is showing when you try to deliver one of these emails? Otherwise, run an exigrep on one of the emails to provide the error message:

    Code:
    exigrep email@domain.com /var/log/exim_mainlog
    Where email@domain.com is the email address you are sending to or from. Pick only the messages that are failing to show the return for the exigrep as they have to have some sort of error message.
     
  3. wagnerpk

    wagnerpk Member

    Joined:
    Nov 5, 2011
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thanks for helping me.

    contato@capadecouro.com.br is the email created and exemple@hotmail.com is the destination mailbox.

    Code:
    root@vps [~]# exigrep contato@capadecouro.com.br /var/log/exim_mainlog
    2011-11-06 12:08:22 1RN6Ck-0003Bb-7f <= <> R=1RMiUd-0005cr-RA U=mailnull P=local S=1150
    2011-11-06 12:08:22 1RN6Ck-0003Bb-7f => contato <contato@capadecouro.com.br> R=virtual_user T=virtual_userdelivery
    2011-11-06 12:08:22 1RN6Ck-0003Bb-7f Completed
    
    +++ 1RN81j-0003Vh-1O has not completed +++
    2011-11-06 14:05:07 1RN81j-0003Vh-1O <= contato@capadecouro.com.br H=localhost (capadecouro.com.br) [127.0.0.1] P=esmtpa A=dovecot_login:contato@capadecouro.com.br S=619 id=cac9f6fffb9d5e454accc529e760ebba@capadecouro.com.br
    2011-11-06 14:08:16 1RN81j-0003Vh-1O mx3.hotmail.com [65.54.188.94] Connection timed out
    2011-11-06 14:11:25 1RN81j-0003Vh-1O mx3.hotmail.com [65.55.37.104] Connection timed out
    2011-11-06 14:14:34 1RN81j-0003Vh-1O mx3.hotmail.com [65.55.92.136] Connection timed out
    2011-11-06 14:17:43 1RN81j-0003Vh-1O mx3.hotmail.com [65.55.92.184] Connection timed out
    2011-11-06 14:20:52 1RN81j-0003Vh-1O mx3.hotmail.com [65.55.37.72] Connection timed out
    2011-11-06 14:20:52 1RN81j-0003Vh-1O == exemple@hotmail.com R=lookuphost T=remote_smtp defer (110): Connection timed out
    
    root@vps [~]#
    And bellow is the "root@vps.myresellerdomain.com" (I created today the MX records for Google Apps account for "myresellerdomain.com", but the problems still the same of the past):

    Code:
    root@vps [~]# exigrep root@vps.myresellerdomain.com /var/log/exim_mainlog
    +++ 1RMuk5-0001Vg-Qh has not completed +++
    2011-11-06 04:02:02 1RMuk5-0001Vg-Qh == exemple@hotmail.com <root@vps.myresellerdomain.com> R=lookuphost T=remote_smtp defer (-53): retry time not reached for any host
    2011-11-06 04:02:03 1RMuk5-0001Vg-Qh == exemple@hotmail.com <root@vps.myresellerdomain.com> R=lookuphost T=remote_smtp defer (-53): retry time not reached for any host
    2011-11-06 04:02:04 1RMuk5-0001Vg-Qh == exemple@hotmail.com <root@vps.myresellerdomain.com> R=lookuphost T=remote_smtp defer (-53): retry time not reached for any host
    2011-11-06 05:24:08 1RMuk5-0001Vg-Qh mx2.hotmail.com [65.55.37.120] Connection timed out
    2011-11-06 05:27:17 1RMuk5-0001Vg-Qh mx2.hotmail.com [65.55.92.184] Connection timed out
    2011-11-06 05:30:26 1RMuk5-0001Vg-Qh mx2.hotmail.com [65.55.37.104] Connection timed out
    2011-11-06 05:33:35 1RMuk5-0001Vg-Qh mx2.hotmail.com [65.54.188.72] Connection timed out
    2011-11-06 05:36:44 1RMuk5-0001Vg-Qh mx2.hotmail.com [65.54.188.126] Connection timed out
    2011-11-06 05:36:44 1RMuk5-0001Vg-Qh == exemple@hotmail.com <root@vps.myresellerdomain.com> R=lookuphost T=remote_smtp defer (110): Connection timed out
    2011-11-06 06:17:49 1RMuk5-0001Vg-Qh == exemple@hotmail.com <root@vps.myresellerdomain.com> R=lookuphost T=remote_smtp defer (-53): retry time not reached for any host
    2011-11-06 07:05:14 1RMuk5-0001Vg-Qh == exemple@hotmail.com <root@vps.myresellerdomain.com> R=lookuphost T=remote_smtp defer (-53): retry time not reached for any host
    2011-11-06 08:05:13 1RMuk5-0001Vg-Qh == exemple@hotmail.com <root@vps.myresellerdomain.com> R=lookuphost T=remote_smtp defer (-53): retry time not reached for any host
    2011-11-06 09:02:04 1RMuk5-0001Vg-Qh == exemple@hotmail.com <root@vps.myresellerdomain.com> R=lookuphost T=remote_smtp defer (-53): retry time not reached for any host
    2011-11-06 10:27:17 1RMuk5-0001Vg-Qh == exemple@hotmail.com <root@vps.myresellerdomain.com> R=lookuphost T=remote_smtp defer (-53): retry time not reached for any host
    2011-11-06 11:05:14 1RMuk5-0001Vg-Qh == exemple@hotmail.com <root@vps.myresellerdomain.com> R=lookuphost T=remote_smtp defer (-53): retry time not reached for any host
    2011-11-06 13:02:00 1RMuk5-0001Vg-Qh == root@vps.myresellerdomain.com R=lookuphost T=remote_smtp defer (-53): retry time not reached for any host
    2011-11-06 13:02:04 1RMuk5-0001Vg-Qh == root@vps.myresellerdomain.com R=lookuphost T=remote_smtp defer (-53): retry time not reached for any host
    
    +++ 1RN8K8-0003aK-Pa has not completed +++
    2011-11-06 14:24:09 1RN8K8-0003aK-Pa <= <> R=1RMloe-0007NE-Ad U=mailnull P=local S=1189
    2011-11-06 14:27:18 1RN8K8-0003aK-Pa aspmx.l.google.com [209.85.227.26] Connection timed out
    2011-11-06 14:30:27 1RN8K8-0003aK-Pa alt1.aspmx.l.google.com [74.125.43.26] Connection timed out
    2011-11-06 14:33:36 1RN8K8-0003aK-Pa alt2.aspmx.l.google.com [209.85.173.26] Connection timed out
    2011-11-06 14:36:45 1RN8K8-0003aK-Pa aspmx2.googlemail.com [74.125.43.27] Connection timed out
    2011-11-06 14:39:54 1RN8K8-0003aK-Pa aspmx3.googlemail.com [74.125.127.27] Connection timed out
    2011-11-06 14:39:54 1RN8K8-0003aK-Pa == root@vps.myresellerdomain.com R=lookuphost T=remote_smtp defer (110): Connection timed out
    
    +++ 1RMy1a-000296-4c has not completed +++
    2011-11-06 04:02:02 1RMy1a-000296-4c == exemple@hotmail.com <root@vps.myresellerdomain.com> R=lookuphost T=remote_smtp defer (-53): retry time not reached for any host
    2011-11-06 04:02:02 1RMy1a-000296-4c == exemple@hotmail.com <root@vps.myresellerdomain.com> R=lookuphost T=remote_smtp defer (-53): retry time not reached for any host
    2011-11-06 04:02:05 1RMy1a-000296-4c == exemple@hotmail.com <root@vps.myresellerdomain.com> R=lookuphost T=remote_smtp defer (-53): retry time not reached for any host
    2011-11-06 06:17:43 1RMy1a-000296-4c == exemple@hotmail.com <root@vps.myresellerdomain.com> R=lookuphost T=remote_smtp defer (-53): retry time not reached for any host
    2011-11-06 06:17:49 1RMy1a-000296-4c == exemple@hotmail.com <root@vps.myresellerdomain.com> R=lookuphost T=remote_smtp defer (-53): retry time not reached for any host
    2011-11-06 07:05:14 1RMy1a-000296-4c == exemple@hotmail.com <root@vps.myresellerdomain.com> R=lookuphost T=remote_smtp defer (-53): retry time not reached for any host
    2011-11-06 08:05:14 1RMy1a-000296-4c == exemple@hotmail.com <root@vps.myresellerdomain.com> R=lookuphost T=remote_smtp defer (-53): retry time not reached for any host
    2011-11-06 09:02:05 1RMy1a-000296-4c == exemple@hotmail.com <root@vps.myresellerdomain.com> R=lookuphost T=remote_smtp defer (-53): retry time not reached for any host
    2011-11-06 10:27:17 1RMy1a-000296-4c == exemple@hotmail.com <root@vps.myresellerdomain.com> R=lookuphost T=remote_smtp defer (-53): retry time not reached for any host
    2011-11-06 11:05:14 1RMy1a-000296-4c == exemple@hotmail.com <root@vps.myresellerdomain.com> R=lookuphost T=remote_smtp defer (-53): retry time not reached for any host
    2011-11-06 13:02:00 1RMy1a-000296-4c aspmx.l.google.com [209.85.227.26] Connection timed out
    2011-11-06 13:02:00 1RMy1a-000296-4c == root@vps.myresellerdomain.com R=lookuphost T=remote_smtp defer (110): Connection timed out
    2011-11-06 13:02:04 1RMy1a-000296-4c == root@vps.myresellerdomain.com R=lookuphost T=remote_smtp defer (-53): retry time not reached for any host
    
    +++ 1RN5Dd-0002kJ-GO has not completed +++
    2011-11-06 11:05:13 1RN5Dd-0002kJ-GO <= <> R=1RMgjC-0004l5-Ps U=mailnull P=local S=1185
    2011-11-06 11:05:13 1RN5Dd-0002kJ-GO == exemple@hotmail.com <root@vps.myresellerdomain.com> R=lookuphost T=remote_smtp defer (-53): retry time not reached for any host
    2011-11-06 11:29:21 1RN5Dd-0002kJ-GO Spool file is locked (another process is handling this message)
    2011-11-06 11:29:21 1RN5Dd-0002kJ-GO Spool file is locked (another process is handling this message)
    2011-11-06 11:31:19 1RN5Dd-0002kJ-GO aspmx.l.google.com [209.85.229.26] Connection timed out
    2011-11-06 11:34:28 1RN5Dd-0002kJ-GO alt1.aspmx.l.google.com [74.125.43.26] Connection timed out
    2011-11-06 11:37:37 1RN5Dd-0002kJ-GO alt2.aspmx.l.google.com [209.85.173.26] Connection timed out
    2011-11-06 11:40:46 1RN5Dd-0002kJ-GO aspmx2.googlemail.com [74.125.43.27] Connection timed out
    2011-11-06 11:43:55 1RN5Dd-0002kJ-GO aspmx3.googlemail.com [74.125.127.27] Connection timed out
    2011-11-06 11:43:55 1RN5Dd-0002kJ-GO == root@vps.myresellerdomain.com R=lookuphost T=remote_smtp defer (110): Connection timed out
    2011-11-06 12:11:31 1RN5Dd-0002kJ-GO aspmx.l.google.com [209.85.227.27] Connection timed out
    2011-11-06 12:14:41 1RN5Dd-0002kJ-GO alt1.aspmx.l.google.com [74.125.43.27] Connection timed out
    2011-11-06 12:17:50 1RN5Dd-0002kJ-GO alt2.aspmx.l.google.com [209.85.173.27] Connection timed out
    2011-11-06 12:20:59 1RN5Dd-0002kJ-GO aspmx3.googlemail.com [74.125.127.27] Connection timed out
    2011-11-06 12:20:59 1RN5Dd-0002kJ-GO == root@vps.myresellerdomain.com R=lookuphost T=remote_smtp defer (110): Connection timed out
    2011-11-06 13:02:04 1RN5Dd-0002kJ-GO == root@vps.myresellerdomain.com R=lookuphost T=remote_smtp defer (-53): retry time not reached for any host
    2011-11-06 14:58:49 1RN5Dd-0002kJ-GO aspmx.l.google.com [209.85.229.26] Connection timed out
    2011-11-06 14:58:49 1RN5Dd-0002kJ-GO == root@vps.myresellerdomain.com R=lookuphost T=remote_smtp defer (110): Connection timed out
    2011-11-06 15:17:50 1RN5Dd-0002kJ-GO aspmx.l.google.com [209.85.227.27] Connection timed out
    2011-11-06 15:20:59 1RN5Dd-0002kJ-GO alt1.aspmx.l.google.com [74.125.43.27] Connection timed out
    2011-11-06 15:24:08 1RN5Dd-0002kJ-GO alt2.aspmx.l.google.com [209.85.173.27] Connection timed out
    2011-11-06 15:24:08 1RN5Dd-0002kJ-GO == root@vps.myresellerdomain.com R=lookuphost T=remote_smtp defer (110): Connection timed out
    
    +++ 1RN0jO-00020t-Tf has not completed +++
    2011-11-06 06:17:43 1RN0jO-00020t-Tf <= <> R=1RM9Dj-0000lD-IK U=mailnull P=local S=1189
    2011-11-06 06:17:43 1RN0jO-00020t-Tf == exemple@hotmail.com <root@vps.myresellerdomain.com> R=lookuphost T=remote_smtp defer (-53): retry time not reached for any host
    2011-11-06 07:05:13 1RN0jO-00020t-Tf == exemple@hotmail.com <root@vps.myresellerdomain.com> R=lookuphost T=remote_smtp defer (-53): retry time not reached for any host
    2011-11-06 08:05:13 1RN0jO-00020t-Tf == exemple@hotmail.com <root@vps.myresellerdomain.com> R=lookuphost T=remote_smtp defer (-53): retry time not reached for any host
    2011-11-06 09:02:05 1RN0jO-00020t-Tf == exemple@hotmail.com <root@vps.myresellerdomain.com> R=lookuphost T=remote_smtp defer (-53): retry time not reached for any host
    2011-11-06 10:27:17 1RN0jO-00020t-Tf == exemple@hotmail.com <root@vps.myresellerdomain.com> R=lookuphost T=remote_smtp defer (-53): retry time not reached for any host
    2011-11-06 11:05:14 1RN0jO-00020t-Tf == exemple@hotmail.com <root@vps.myresellerdomain.com> R=lookuphost T=remote_smtp defer (-53): retry time not reached for any host
    2011-11-06 11:33:16 1RN0jO-00020t-Tf aspmx.l.google.com [209.85.227.27] Connection timed out
    2011-11-06 11:36:25 1RN0jO-00020t-Tf alt1.aspmx.l.google.com [74.125.43.26] Connection timed out
    2011-11-06 11:39:34 1RN0jO-00020t-Tf alt2.aspmx.l.google.com [209.85.173.26] Connection timed out
    2011-11-06 11:42:43 1RN0jO-00020t-Tf aspmx2.googlemail.com [74.125.43.27] Connection timed out
    2011-11-06 11:45:52 1RN0jO-00020t-Tf aspmx3.googlemail.com [74.125.127.27] Connection timed out
    2011-11-06 11:45:52 1RN0jO-00020t-Tf == root@vps.myresellerdomain.com R=lookuphost T=remote_smtp defer (110): Connection timed out
    2011-11-06 13:02:00 1RN0jO-00020t-Tf == root@vps.myresellerdomain.com R=lookuphost T=remote_smtp defer (-53): retry time not reached for any host
    2011-11-06 13:02:04 1RN0jO-00020t-Tf == root@vps.myresellerdomain.com R=lookuphost T=remote_smtp defer (-53): retry time not reached for any host
    
    +++ 1RN9VO-0003nD-1M has not completed +++
    2011-11-06 15:39:50 1RN9VO-0003nD-1M <= <> R=1RMiiJ-0005rW-R2 U=mailnull P=local S=1190
    2011-11-06 15:39:50 1RN9VO-0003nD-1M == root@vps.myresellerdomain.com R=lookuphost T=remote_smtp defer (-53): retry time not reached for any host
    
    +++ 1RN6bA-0003Fl-Ai has not completed +++
    2011-11-06 12:33:36 1RN6bA-0003Fl-Ai <= <> R=1RMNZj-00017A-6o U=mailnull P=local S=1178
    2011-11-06 12:36:46 1RN6bA-0003Fl-Ai aspmx.l.google.com [209.85.229.27] Connection timed out
    2011-11-06 12:39:55 1RN6bA-0003Fl-Ai alt1.aspmx.l.google.com [74.125.43.26] Connection timed out
    2011-11-06 12:43:04 1RN6bA-0003Fl-Ai alt2.aspmx.l.google.com [209.85.173.26] Connection timed out
    2011-11-06 12:46:13 1RN6bA-0003Fl-Ai aspmx2.googlemail.com [74.125.43.27] Connection timed out
    2011-11-06 12:49:22 1RN6bA-0003Fl-Ai aspmx3.googlemail.com [74.125.127.27] Connection timed out
    2011-11-06 12:49:22 1RN6bA-0003Fl-Ai == root@vps.myresellerdomain.com R=lookuphost T=remote_smtp defer (110): Connection timed out
    2011-11-06 13:05:14 1RN6bA-0003Fl-Ai alt1.aspmx.l.google.com [74.125.43.27] Connection timed out
    2011-11-06 13:08:23 1RN6bA-0003Fl-Ai alt2.aspmx.l.google.com [209.85.173.27] Connection timed out
    2011-11-06 13:11:32 1RN6bA-0003Fl-Ai aspmx3.googlemail.com [74.125.127.27] Connection timed out
    2011-11-06 13:11:32 1RN6bA-0003Fl-Ai == root@vps.myresellerdomain.com R=lookuphost T=remote_smtp defer (110): Connection timed out
    
    root@vps [~]#
     
  4. wagnerpk

    wagnerpk Member

    Joined:
    Nov 5, 2011
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    [EDIT] my fail, sorry

    I'm trying to post but my messages are not appearing.
     
    #4 wagnerpk, Nov 6, 2011
    Last edited: Nov 6, 2011
  5. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    The posts were moderated and that's why they weren't appearing. The reason the emails aren't delivering is that the connection is timing out. Can you paste the contents of your /etc/resolv.conf file?

    Code:
    cat /etc/resolv.conf
    Next, can you try running exim -bt on one of the hotmail addresses:

    Code:
    exim -bt emailuser@hotmail.com
    Replace emailuser with the actual email address part before the @hotmail part.
     
  6. wagnerpk

    wagnerpk Member

    Joined:
    Nov 5, 2011
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Here we go:

    Code:
    login as: root
    Access denied
    root@xxx.xxx.xxx.241's password:
    Last login: Sun Nov  6 15:53:25 2011 from xxx-xxx-xxx-xxx.cpecexxx.dsl.xxx.net
    root@vps [~]# cat /etc/resolv.conf
    nameserver 80.84.58.27
    nameserver 80.84.58.28
    root@vps [~]# exim -bt usermail@hotmail.com
    usermail@hotmail.com
      router = lookuphost, transport = remote_smtp
      host mx3.hotmail.com [65.55.37.104]  MX=5
      host mx3.hotmail.com [65.54.188.72]  MX=5
      host mx3.hotmail.com [65.55.92.168]  MX=5
      host mx3.hotmail.com [65.54.188.126] MX=5
      host mx3.hotmail.com [65.55.37.72]   MX=5
      host mx3.hotmail.com [65.54.188.94]  MX=5
      host mx3.hotmail.com [65.55.37.120]  MX=5
      host mx3.hotmail.com [65.55.92.184]  MX=5
      host mx3.hotmail.com [65.55.37.88]   MX=5
      host mx3.hotmail.com [65.55.92.152]  MX=5
      host mx3.hotmail.com [65.55.92.136]  MX=5
      host mx3.hotmail.com [65.54.188.110] MX=5
    root@vps [~]#
     
  7. wagnerpk

    wagnerpk Member

    Joined:
    Nov 5, 2011
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thanks for all... I paid a little tax to the server host team and someone adjust config. I just know that he changed these followings files:

    exim.conf (add a line "system_filter=/etc/cpanel_exim_system_filter")
    local.domains (added ns1 and ns2 DNS servers and deleted main "myresellerdomain.com")
    remote.domains (was empty, he added domains)

    I don't know if he changed some more things, but now its working.

    The stucked messages were send.
     
  8. SciFiGuy

    SciFiGuy Registered

    Joined:
    Apr 3, 2012
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I BATTLED with this issue. I eventually found the solution. I turned off iptables and disabled the CSF firewall. I put the firewall into a medium security setting (was on high) and it immediately started working again.

    Sending mails without any issues now....whew!
     
  9. wagnerpk

    wagnerpk Member

    Joined:
    Nov 5, 2011
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    SciFiGuy, thanks for the tip. But I'm very noob... How to turn off iptables and firewall? Inside WHM options? Through ftp client? In serial console?
     
  10. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Are you running CSF? If so, you'll see a link in WHM > Plugins > ConfigServer Security & Firewall option. You'd select to disable the firewall there (a button should be there for that option).

    Otherwise, you can try flushing the firewall in command line:

    Code:
    /sbin/iptables -F
    That wouldn't keep the firewall cleared of rules, though, since a server restart or iptables restart will bring the previous rules back. The point of temporarily flushing the rules would be to see if it is causing the issue.
     
Loading...

Share This Page