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.

SOLVED Sending emails through webmail issue on google cloud server

Discussion in 'E-mail Discussions' started by Salomao Kawakami, Feb 5, 2017.

Tags:
  1. Salomao Kawakami

    Joined:
    Feb 5, 2017
    Messages:
    5
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    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 -
     
    #1 Salomao Kawakami, Feb 5, 2017
    Last edited by a moderator: Feb 5, 2017
  2. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    542
    Likes Received:
    39
    Trophy Points:
    28
    Location:
    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.
     
  3. Eminds

    Eminds Well-Known Member

    Joined:
    Nov 10, 2016
    Messages:
    174
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    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.
     
  4. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,399
    Likes Received:
    52
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    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..
     
  5. Salomao Kawakami

    Joined:
    Feb 5, 2017
    Messages:
    5
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    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
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    15,617
    Likes Received:
    296
    Trophy Points:
    433
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Please be sure to remove any actual domain name, IP or email addresses when posting log data or it will be removed:
    Guide To Opening An Effective Forums Thread
     
  7. Eminds

    Eminds Well-Known Member

    Joined:
    Nov 10, 2016
    Messages:
    174
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Please paste the exim main log here as per the forum instructions in order to help you further.
     
  8. Salomao Kawakami

    Joined:
    Feb 5, 2017
    Messages:
    5
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    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 id=a7041c58ddf56a9cc9c4a128ba54357c@(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
    
     
    #8 Salomao Kawakami, Feb 6, 2017
    Last edited by a moderator: Feb 6, 2017
  9. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,286
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
  10. Salomao Kawakami

    Joined:
    Feb 5, 2017
    Messages:
    5
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    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
     
  11. Salomao Kawakami

    Joined:
    Feb 5, 2017
    Messages:
    5
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    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.
     
    cPanelMichael likes this.
  12. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    15,617
    Likes Received:
    296
    Trophy Points:
    433
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Thanks for updating this thread with your findings.
     
Loading...

Share This Page