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.

Emails doesn't work!

Discussion in 'E-mail Discussions' started by L맆å†, Aug 3, 2013.

  1. L맆å†

    Lë§†å† Member

    Joined:
    Feb 11, 2007
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Mascouche, Quebec, Canada
    Hi Support,

    First of all I'm french (Quebec)

    I got a dedicated server with CENTOS 6.4 x86_64 standard WHM 11.38.1 (build 15).

    I created new emails in the cpanel:2082 but they don't work!

    Code:
    User/Email : [email]admin@*********.com[/email]
    Pass : **********
    
    Secure SSL/TLS Settings
    (Recommended)
    Incoming Server: 	*********.com
    
        IMAP: Port 993 
        POP3: Port 995
    
    Outgoing Server: 	*********.com
    
        SMTP: Port 465
    
    Authentication is required for IMAP, POP3, and SMTP.
    
    Non-SSL Settings
    (NOT Recommended)
    Incoming Server: 	mail.*********.com
    
        IMAP: Port 143
        POP3: Port 110
    
    Outgoing Server: 	mail.*********.com
    
        SMTP: Port 26
    Authentication is required for IMAP, POP3, and SMTP.
    -----------------------------------------------------------------


    And I'm sure is for that reason there's no emails going out of the website such as the inscription's email.

    Any ideas ?
     
    #1 L맆å†, Aug 3, 2013
    Last edited by a moderator: Aug 6, 2013
  2. ThinIce

    ThinIce Well-Known Member

    Joined:
    Apr 27, 2006
    Messages:
    346
    Likes Received:
    7
    Trophy Points:
    18
    Location:
    Disillusioned in England
    cPanel Access Level:
    Root Administrator
    Two things to check if your website isn't sending email

    1. How is it configured to send message (i.e. with an smtp account)
    2. Is there anything relevant in the servers exim log? / are any errors being shown that may be indicative
     
  3. L맆å†

    Lë§†å† Member

    Joined:
    Feb 11, 2007
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Mascouche, Quebec, Canada
    I don't know what to say: PHP? For 7 years (5 differents servers) no problem only with this last one.


    exim_mainlog (couples of lines):
    Code:
    2013-08-04 03:36:19 1V5sqh-000CVi-3N Completed
    2013-08-04 03:41:20 cwd=/ 2 args: /usr/sbin/sendmail -t
    2013-08-04 03:41:20 cwd=/ 2 args: /usr/sbin/sendmail -t
    2013-08-04 03:41:21 1V5swK-000Eny-UI <= [email]root@************.com[/email] U=root P=local S=11760 T="FAILED: lfd on ************.com (************)" for ************@hotmail.com
    2013-08-04 03:41:21 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1V5swK-000Eny-UI
    2013-08-04 03:41:21 1V5swK-000Eo1-UK <= [email]root@************.com[/email] U=root P=local S=11760 T="FAILED: lfd on ************.com (************)" for ************@hotmail.com
    2013-08-04 03:41:21 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1V5swK-000Eo1-UK
    2013-08-04 03:42:08 1V5swK-000Eny-UI => ************@hotmail.com R=dkim_lookuphost T=dkim_remote_smtp H=mx1.hotmail.com [************]
    2013-08-04 03:42:08 1V5swK-000Eny-UI Completed
    exim_paniclog (couples of lines):
    Code:
    2013-07-22 04:55:27 1V1BsX-000Edg-E2 User 0 set for local_delivery transport is on the never_users list
    2013-07-22 04:55:27 1V1Btv-000FE9-AK User 0 set for local_delivery transport is on the never_users list
    2013-07-22 15:42:01 socket bind() to port 25 for address (any IPv6) failed: Address already in use: daemon abandoned
    2013-07-22 15:43:48 socket bind() to port 25 for address (any IPv6) failed: Address already in use: daemon abandoned
    2013-07-23 05:00:32 1V1YM5-0006Wq-Iq User 0 set for local_delivery transport is on the never_users list
    2013-07-23 05:00:33 1V1YSO-00096d-Vr User 0 set for local_delivery transport is on the never_users list
    2013-07-23 20:48:12 socket bind() to port 25 for address (any IPv6) failed: Address already in use: daemon abandoned
    2013-07-23 20:58:14 socket bind() to port 25 for address (any IPv6) failed: Address already in use: daemon abandoned
     
    #3 L맆å†, Aug 4, 2013
    Last edited by a moderator: Aug 6, 2013
  4. 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,

    I can see some other process is still using your port 25 and due to that you are geting the following error in your exim logs

     
  5. L맆å†

    Lë§†å† Member

    Joined:
    Feb 11, 2007
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Mascouche, Quebec, Canada
    Any idea how to fix it?
     
  6. 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
  7. L맆å†

    Lë§†å† Member

    Joined:
    Feb 11, 2007
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Mascouche, Quebec, Canada
    -bash: /scripts/installcpbsdpkg: No such file or directory

    - - - Updated - - -

    Now I try netstat -lnp | grep :25 and nothing happen.

    - - - Updated - - -

    And with netstat -tulpn I don't see port 25 or 26
     
  8. L맆å†

    Lë§†å† Member

    Joined:
    Feb 11, 2007
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Mascouche, Quebec, Canada
    netstat -tulpn | grep 25 return:

    tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 25824/pure-ftpd (SE
    tcp 0 0 :::21 :::* LISTEN 25824/pure-ftpd (SE
    tcp 0 0 :::995 :::* LISTEN 12250/couriertcpd

    - - - Updated - - -

    netstat -lnp | grep 25

    tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 25824/pure-ftpd (SE
    tcp 0 0 :::21 :::* LISTEN 25824/pure-ftpd (SE
    tcp 0 0 :::995 :::* LISTEN 12250/couriertcpd
    unix 2 [ ACC ] STREAM LISTENING 1034427213 25826/pure-authd /var/run/ftpd.sock
    unix 2 [ ACC ] STREAM LISTENING 1842836641 25235/saslauthd /var/run/saslauthd/mux
     
  9. L맆å†

    Lë§†å† Member

    Joined:
    Feb 11, 2007
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Mascouche, Quebec, Canada
    After I kill 25826 and 25235 AND /etc/init.d/exim restart :

    netstat -lnp | grep 25
    tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 25118/exim
    tcp 0 0 0.0.0.0:465 0.0.0.0:* LISTEN 25118/exim
    tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 25118/exim
    tcp 0 0 0.0.0.0:26 0.0.0.0:* LISTEN 25118/exim
    tcp 0 0 :::587 :::* LISTEN 25118/exim
    tcp 0 0 :::465 :::* LISTEN 25118/exim
    tcp 0 0 :::25 :::* LISTEN 25118/exim
    tcp 0 0 :::26 :::* LISTEN 25118/exim
    tcp 0 0 :::995 :::* LISTEN 12250/couriertcpd
    unix 2 [ ACC ] STREAM LISTENING 1842836641 25246/saslauthd /var/run/saslauthd/mux
     
  10. L맆å†

    Lë§†å† Member

    Joined:
    Feb 11, 2007
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Mascouche, Quebec, Canada
    But it still don't work!
     
  11. 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
    What error are you getting now in your exim logs ?
     
  12. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    You can ensure Exim is listening on port 25 with a command such as:

    Code:
    netstat -lnp | grep :25
    This will result in a better output because it includes the colon before the 25. If Exim is running well, please try sending a test email from one of the email accounts via Webmail or an email client. This will help determine if the issue is isolated to your PHP script.

    Thank you.
     
  13. L맆å†

    Lë§†å† Member

    Joined:
    Feb 11, 2007
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Mascouche, Quebec, Canada
    Code:
    [B]netstat -lnp | grep 25[/B]
    
    tcp        0      0 0.0.0.0:587                 0.0.0.0:*                   LISTEN      25118/exim
    tcp        0      0 0.0.0.0:465                 0.0.0.0:*                   LISTEN      25118/exim
    tcp        0      0 0.0.0.0:25                  0.0.0.0:*                   LISTEN      25118/exim
    tcp        0      0 0.0.0.0:26                  0.0.0.0:*                   LISTEN      25118/exim
    tcp        0      0 :::587                      :::*                        LISTEN      25118/exim
    tcp        0      0 :::465                      :::*                        LISTEN      25118/exim
    tcp        0      0 :::25                       :::*                        LISTEN      25118/exim
    tcp        0      0 :::26                       :::*                        LISTEN      25118/exim
    tcp        0      0 :::995                      :::*                        LISTEN      12250/couriertcpd
    unix  2      [ ACC ]     STREAM     LISTENING     1842836641 25246/saslauthd     /var/run/saslauthd/mux
    
    exim_mainlog (couple of lines)

    Code:
    2013-08-04 03:35:31 1V5sqh-000CVf-3N <= [email]root@*********.com[/email] U=root P=local S=11758 T="FAILED: lfd on *********.com (*********)" for *********@hotmail.com
    2013-08-04 03:35:31 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1V5sqh-000CVf-3N
    2013-08-04 03:35:31 1V5sqh-000CVi-3N <= [email]root@*********.com[/email] U=root P=local S=11758 T="FAILED: lfd on *********.com (*********)" for *********@hotmail.com
    2013-08-04 03:35:31 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1V5sqh-000CVi-3N
    2013-08-04 03:36:19 1V5sqh-000CVf-3N => *********@hotmail.com R=dkim_lookuphost T=dkim_remote_smtp H=mx2.hotmail.com [65.55.92.152]
    2013-08-04 03:36:19 1V5sqh-000CVi-3N => *********@hotmail.com R=dkim_lookuphost T=dkim_remote_smtp H=mx1.hotmail.com [65.55.37.104]
    2013-08-04 03:36:19 1V5sqh-000CVf-3N Completed
    2013-08-04 03:36:19 1V5sqh-000CVi-3N Completed
    2013-08-04 03:41:20 cwd=/ 2 args: /usr/sbin/sendmail -t
    2013-08-04 03:41:20 cwd=/ 2 args: /usr/sbin/sendmail -t
    2013-08-04 03:41:21 1V5swK-000Eny-UI <= [email]root@*********.com[/email] U=root P=local S=11760 T="FAILED: lfd on *********.com (*********)" for *********@hotmail.com
    2013-08-04 03:41:21 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1V5swK-000Eny-UI
    2013-08-04 03:41:21 1V5swK-000Eo1-UK <= [email]root@*********.com[/email] U=root P=local S=11760 T="FAILED: lfd on *********.com (*********)" for *********@hotmail.com
    2013-08-04 03:41:21 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1V5swK-000Eo1-UK
    2013-08-04 03:42:08 1V5swK-000Eny-UI => *********@hotmail.com R=dkim_lookuphost T=dkim_remote_smtp H=mx1.hotmail.com [65.55.92.168]
    2013-08-04 03:42:08 1V5swK-000Eny-UI Completed
    2013-08-04 03:42:08 1V5swK-000Eo1-UK => *********@hotmail.com R=dkim_lookuphost T=dkim_remote_smtp H=mx2.hotmail.com [65.54.188.94]
    2013-08-04 03:42:08 1V5swK-000Eo1-UK Completed
    
    
    exim_rejectlog (couple of lines)
    Code:
    2013-08-05 13:55:02 H=(93.85.225.223) [93.85.225.223]:16877 rejected MAIL <>: Access denied - Invalid HELO name (See RFC2821 4.1.3)
    2013-08-05 14:15:06 H=(SERVER) [190.117.242.70]:61144 rejected MAIL <pseudoutlf@arolfo.com.ar>: Access denied - Invalid HELO name (See RFC2821 4.1.1.1)
    2013-08-05 14:20:30 H=(46.16.230.68) [46.16.230.68]:22966 rejected MAIL <>: Access denied - Invalid HELO name (See RFC2821 4.1.3)
    2013-08-05 14:24:59 H=(93.84.97.206) [178.123.192.47]:3857 rejected MAIL <>: Access denied - Invalid HELO name (See RFC2821 4.1.3)
    2013-08-05 14:38:29 H=(178.122.14.66) [178.122.21.228]:27515 rejected MAIL <>: Access denied - Invalid HELO name (See RFC2821 4.1.3)
    2013-08-05 14:40:05 H=(95.57.46.209) [95.57.46.209]:52994 rejected MAIL <>: Access denied - Invalid HELO name (See RFC2821 4.1.3)
    2013-08-05 15:06:10 H=(188.55.44.148) [188.55.44.148]:59992 rejected MAIL <>: Access denied - Invalid HELO name (See RFC2821 4.1.3)
    2013-08-05 16:08:14 H=(user-THINK) [27.4.66.249]:60146 rejected MAIL <053d1c286qxfpd@01concept.com>: Access denied - Invalid HELO name (See RFC2821 4.1.1.1)
    2013-08-05 16:09:52 H=(livebox) [90.170.195.63]:4254 rejected MAIL <3dmario37sqwjf@artcouro.com.br>: Access denied - Invalid HELO name (See RFC2821 4.1.1.1)
    2013-08-05 16:39:19 H=(user-PC) [189.76.234.14]:52426 rejected MAIL <c152d7b4rm@andrewtaylor.co.nz>: Access denied - Invalid HELO name (See RFC2821 4.1.1.1)
    2013-08-05 16:43:47 H=(LUFFIPC) [190.143.44.183]:63591 rejected MAIL <fe31db9ja@abundanthealing.com>: Access denied - Invalid HELO name (See RFC2821 4.1.1.1)
    2013-08-05 16:47:29 H=cable-178-148-143-254.dynamic.sbb.rs (178.148.143.254) [178.148.143.254]:50154 rejected MAIL <>: Access denied - Invalid HELO name (See RFC2821 4.1.3)
     
    #13 L맆å†, Aug 5, 2013
    Last edited by a moderator: Aug 6, 2013
  14. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Please try sending a test email from one of the email accounts via Webmail or an email client. This will help determine if the issue is isolated to your PHP script.

    Thank you.
     
  15. L맆å†

    Lë§†å† Member

    Joined:
    Feb 11, 2007
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Mascouche, Quebec, Canada
    Here's the error, which I translate from french. I'm using Thunderbird:

    Sending the message failed.
    The message could not be sent using the "*********.com" SMTP server for an unknown reason. Please verify that your SMTP server settings are correct and try again or contact your network administrator.
     
  16. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    It's difficult to pinpoint the exact issue because that is an unknown error message. Could you try sending via Webmail and let us know the result?

    Thank you.
     
  17. L맆å†

    Lë§†å† Member

    Joined:
    Feb 11, 2007
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Mascouche, Quebec, Canada
    With Webmail (SquirrelMail) it work, I received the email.

    And, like I said, I don't touch the PHP script, I just move the website from one server to another!
     
  18. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Feel free to open a support ticket so we can take a closer look:

    Submit A Ticket

    You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
  19. L맆å†

    Lë§†å† Member

    Joined:
    Feb 11, 2007
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Mascouche, Quebec, Canada
    Ticket 4314991

    Thank you!
     
  20. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    To update, there were several issues that contributed to this problem. The hostname of the server needed to be a fully qualified domain name, and some permissions on the email account needed correction with the "/scripts/mailperm" utility. However, the primary culprit was that the domain name was not added to the /etc/localdomains file.

    Thank you.
     
Loading...

Share This Page