SOLVED Sending emails through webmail issue on google cloud server

Feb 5, 2017
5
1
3
Brazil
cPanel Access Level
Reseller Owner
Hello everyone.

I've read all related posts to "not sending emails" issue but in my situation I can configure the email account in Gmail, send and receive emails using TSL (587) but when I try to send emails using the webmail panel, it simply don't work.

The question is, if I can configure the account into Gmail and use it, why the same account can receive emails but can NOT send emails using the webmail panel?

Thank you all in advance...

Just to add more relevant information, I've used a wordpress plugin to test the email account and this is it's return:

Test Message Sent

The result was:

bool(true)

The full debugging output is shown below:

- Removed -
 
Last edited by a moderator:

SysSachin

Well-Known Member
Aug 23, 2015
604
48
28
India
cPanel Access Level
Root Administrator
Twitter
Hi,

Are you showing any error message while sending mails ?

If there is no error message while sending mails then you have to check error logs on the server with help your hosting provider.
 

Eminds

Well-Known Member
Nov 10, 2016
319
32
28
India
cPanel Access Level
Root Administrator
Check the /var/log/exim_mainlog through root access of the server while sending the mails from webmail and it will show you whats happening exactly.
 

24x7server

Well-Known Member
Apr 17, 2013
1,911
96
78
India
cPanel Access Level
Root Administrator
Twitter
Hi,

If you are using a Wordpress plugin and that you have a Google Apps configured for emails, then you have to make sure that you use the proper email configuration in the plugin because for world DNS you are using Google apps, so mails will go to Gmail only and not on the server..
 
Feb 5, 2017
5
1
3
Brazil
cPanel Access Level
Reseller Owner
Hello and thank you all in advance for helping me out with this issue.

The interest thing is when I register the same email account into Gmail I'm able to send and receive the emails, but when I use the webmail panel, I can only receive but NOT send.

I just tested the WHM server using "telnet" and I could log in using port 25 and 587 that are open in the Google Cloud firewall rules according to their documentation.

I also took a look at the file "/var/log/exim_mainlog" and below is the output.

- Removed -

The server don't return any error but the emails simply don't go out...

Any other suggestion?

Thank you in advance.

Sal
 
Feb 5, 2017
5
1
3
Brazil
cPanel Access Level
Reseller Owner
This is the log below:
Code:
2017-02-06 12:51:00 SMTP connection from [10.142.0.3]:55124 (TCP/IP connection count = 2)2017-02-06 12:51:00 1cakdA-0003Aq-66 <= (removed) H=whmcp17jan171251.c.wide-maxim-140716.internal ((removed)) [10.142.0.3]:55124 P=esmtpsa X=TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128 CV=no A=dovecot_login:(removed) S=754 [email protected](removed) T="WP Mail SMTP: Test mail to (removed)" for (removed)2017-02-06 12:51:00 SMTP connection from whmcp17jan171251.c.wide-maxim-140716.internal ((removed)) [10.142.0.3]:55124 closed by QUIT2017-02-06 12:51:00 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1cakdA-0003Aq-662017-02-06 12:51:00 1cakdA-0003Aq-66 SMTP connection outbound 1486392660 1cakdA-0003Aq-66 (removed) (removed)2017-02-06 12:51:10 SMTP connection from [198.50.206.90]:57108 lost2017-02-06 12:51:10 SMTP connection from [198.50.206.90]:64614 (TCP/IP connection count = 1)2017-02-06 12:51:10 no host name found for IP address 198.50.206.902017-02-06 12:51:20 SMTP connection from [198.50.206.90]:64614 lost
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,213
363
no host name found for IP address
Hello,

This message suggests RDNS is not configured for the IP address referenced in the log output. It looks like this is the IP address assigned to you by your ISP. Are you able to contact your ISP to determine why no host record is configured for your IP Address?

Thank you.
 
Feb 5, 2017
5
1
3
Brazil
cPanel Access Level
Reseller Owner
It's a Google Cloud Instance Fix IP.
I just create the instance and attach an fix IP to it.
Then I installed the WHM into this Debian instance and registered the domains into the brazilian entity control (Registro.BR) poiting the domain to it's WHM server.
I configured the webmail, smtp, A, MX, CNAME, etc etc...

Considering that I can receive and not send the emails (only when I'm using the webmail) do you have any suggestion that I could verify.

Thank you in advance!

Sal
 
Feb 5, 2017
5
1
3
Brazil
cPanel Access Level
Reseller Owner
Hi to everybody.

After a long, long, long research, we can close this post as "SOLVED" because Google Cloud don't allow any traffic using port 25, even if we create the firewall rules, or if we try to use SSL or TSL ports. There is NO way!
Therefore, if anybody wants to use virtual machines inside Google Cloud are going to need to use external exchange server throug any ephemeral port.

This is some information if needed: Sending Email from an Instance  |  Compute Engine Documentation  |  Google Cloud Platform

Thanks a lot for you guys support.
 
  • Like
Reactions: cPanelMichael