sending and receiving email not working.

kicon

Member
May 12, 2011
16
0
51
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
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.
 

luigidelgado

Well-Known Member
Nov 6, 2010
119
5
68
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][email protected][/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][email protected][/email] <[email protected]> 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 <[email protected]>: 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
 

Aaron.Edwards

Active Member
Sep 21, 2013
36
0
6
cPanel Access Level
Root Administrator
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 protected] 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 protected] <[email protected]> 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 <[email protected]>: 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
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 : [email protected] (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 ?
 

luigidelgado

Well-Known Member
Nov 6, 2010
119
5
68
Mexico
cPanel Access Level
Root Administrator
Twitter
Appears to be OK:
Code:
[email protected] [~]# 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:
[email protected] [~]# 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...
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
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.