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.

sending and receiving email not working.

Discussion in 'E-mail Discussions' started by kicon, May 2, 2013.

  1. kicon

    kicon Member

    Joined:
    May 12, 2011
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    hi
    i have a server runing centos6 with solusvm vps hosting. cpanel is installed and running from a container by default. websites and anything are working fine except emails sending and receiving are not working. all the setup is run by default. any ideas why emails sending and receiving are not working? any steps that i missed? i would appreciate for this help.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    Are you receiving any specific error messages when sending/receiving emails? Try checking the following log files to see if you notice any specific errors:

    # /var/log/exim_mainlog
    # /var/log/exim_paniclog

    Thank you.
     
  3. luigidelgado

    luigidelgado Well-Known Member

    Joined:
    Nov 6, 2010
    Messages:
    109
    Likes Received:
    2
    Trophy Points:
    16
    Location:
    Mexico
    cPanel Access Level:
    Root Administrator
    Twitter:
    ok in the mainlog I have found this that seems to be the problem (edited for security reasons). Looks like its trying to connect to Gmail to send it??? why??:
    Code:
    2013-09-22 16:49:53 cwd=/etc/csf 4 args: /usr/sbin/sendmail -f root -t
    2013-09-22 16:49:54 1VNrXN-0005kk-UX <= [email]root@host.example.net[/email] U=root P=local S=627 T="lfd on host.example.net: SSH login alert for user root from 199.132.157.90 (MX/Mexico/dsl-199-132-157-" for root
    2013-09-22 16:49:54 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1VNrXN-0005kk-UX
    2013-09-22 16:49:54 1VNrXN-0005kk-UX => [email]sos@example.com[/email] <root@host.example.net> R=lookuphost T=remote_smtp H=aspmx.l.google.com [173.194.77.26] X=TLSv1:RC4-SHA:128
    2013-09-22 16:49:54 1VNrXN-0005kk-UX Completed
    2013-09-22 16:49:54 SMTP connection from [209.85.214.194]:46423 (TCP/IP connection count = 1)
    2013-09-22 16:49:54 H=mail-ob0-f194.google.com [209.85.214.194]:46423 F=<> rejected RCPT <root@host.example.net>: You do not have sufficient privileges to send mail to this address.  Please authenticate and try again.
    2013-09-22 16:49:54 H=mail-ob0-f194.google.com [209.85.214.194]:46423 Warning: "Detected session with all messages failed"
    2013-09-22 16:49:54 H=mail-ob0-f194.google.com [209.85.214.194]:46423 Warning: "Increment slow_fail_block Ratelimit - mail-ob0-f194.google.com [209.85.214.194]:46423 because of all messages failed"
    2013-09-22 16:49:54 SMTP connection from mail-ob0-f194.google.com [209.85.214.194]:46423 closed by QUIT
     
  4. Aaron.Edwards

    Aaron.Edwards Active Member

    Joined:
    Sep 21, 2013
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
  5. luigidelgado

    luigidelgado Well-Known Member

    Joined:
    Nov 6, 2010
    Messages:
    109
    Likes Received:
    2
    Trophy Points:
    16
    Location:
    Mexico
    cPanel Access Level:
    Root Administrator
    Twitter:

    root@host [~]# exim -bpc
    0
     
  6. Aaron.Edwards

    Aaron.Edwards Active Member

    Joined:
    Sep 21, 2013
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    I guess, the message id : 1VNrXN-0005kk-UX stats an email is sent from the server's lfd mentioning that there were a root login notification to the email address : sos@example.com (is this an gmail.com address ?)

    can you sent an email to any other gmail.com address ?, suspect that your server's ip is blocked at gmail.com, can you try

    1. nslookup -query=mx gmail.com (from your server)

    2. telnet gsmtp185.google.com 25 ( Replace 'gsmtp185.google.com' with the results from the DNS MX lookup ) from your server

    3. Are you able to ping any/all of the servers listed in the MX record from your server ?
     
  7. luigidelgado

    luigidelgado Well-Known Member

    Joined:
    Nov 6, 2010
    Messages:
    109
    Likes Received:
    2
    Trophy Points:
    16
    Location:
    Mexico
    cPanel Access Level:
    Root Administrator
    Twitter:
    Appears to be OK:
    Code:
    root@host [~]# nslookup -query=mx gmail.com
    Server:		127.0.0.1
    Address:	127.0.0.1#53
    
    Non-authoritative answer:
    gmail.com	mail exchanger = 10 alt1.gmail-smtp-in.l.google.com.
    gmail.com	mail exchanger = 40 alt4.gmail-smtp-in.l.google.com.
    gmail.com	mail exchanger = 30 alt3.gmail-smtp-in.l.google.com.
    gmail.com	mail exchanger = 20 alt2.gmail-smtp-in.l.google.com.
    gmail.com	mail exchanger = 5 gmail-smtp-in.l.google.com.
    
    Authoritative answers can be found from:
    gmail.com	nameserver = ns3.google.com.
    gmail.com	nameserver = ns2.google.com.
    gmail.com	nameserver = ns1.google.com.
    gmail.com	nameserver = ns4.google.com.
    alt3.gmail-smtp-in.l.google.com	internet address = 173.194.73.26
    alt3.gmail-smtp-in.l.google.com	has AAAA address 2607:f8b0:400c:c02::1b
    alt2.gmail-smtp-in.l.google.com	internet address = 173.194.74.26
    alt2.gmail-smtp-in.l.google.com	has AAAA address 2607:f8b0:400d:c01::1b
    gmail-smtp-in.l.google.com	internet address = 173.194.77.26
    gmail-smtp-in.l.google.com	has AAAA address 2607:f8b0:4003:c02::1a
    alt1.gmail-smtp-in.l.google.com	internet address = 74.125.137.26
    alt1.gmail-smtp-in.l.google.com	has AAAA address 2607:f8b0:4002:c01::1a
    alt4.gmail-smtp-in.l.google.com	internet address = 173.194.66.26
    alt4.gmail-smtp-in.l.google.com	has AAAA address 2a00:1450:400c:c05::1b
    ns2.google.com	internet address = 216.239.34.10
    ns1.google.com	internet address = 216.239.32.10
    ns3.google.com	internet address = 216.239.36.10
    ns4.google.com	internet address = 216.239.38.10
    
    2. Telnet results:
    Code:
    root@host [~]# telnet gmail-smtp-in.l.google.com 25
    Trying 173.194.77.26...
    Connected to gmail-smtp-in.l.google.com.
    Escape character is '^]'.
    220 mx.google.com ESMTP sp4si10902693oeb.72 - gsmtp
    
    3. I have no problem pinging the server...
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Did you make the initial post to this thread under of a different username? The reason I ask is because the initial problem on that post was sending/receiving any email, rather than an isolation of an issue with mail to Google. If that is the case, have you tried sending to another server to see if email works (E.g. Yahoo, Hotmail)?

    Thank you.
     
Loading...

Share This Page