The server cannot send email to gmail ?

Operating System & Version
CentOS 7.3
cPanel & WHM Version
newrelease

hasral

Registered
Jun 22, 2020
2
0
1
Makassar
cPanel Access Level
Root Administrator
Please help me solve my problem, I have read many ways to solve my problem but it did not work. Finally I decided to ask in this forum.

Yesterday I tried to make a vps on digitalocean and had a problem not being able to send an email to [email protected] still being able to receive emails. I looked for some solutions and I did not find it, finally I decided to migrate to alibabacloud and make a simple server.

I experienced the same problem.

Can you help me to solve this problem. If I send email from gmail to my server it works fine but if I send email from my server to gmail it doesn't work?

I am very new to VPS and use Centos, what should I do and the settings to resolve my problem.

I have contacted CPanel.

Please see the following:

From your server:
Code:
cPs# telnet mx2.cpanel.net 25

Trying 208.74.123.210...

telnet: connect to address 208.74.123.210: Connection timed out

[03:17:43 server [email protected] ~]cPs#
To your server:
Code:
telnet 149.129.32.246 25

Trying 149.129.32.246...

telnet: connect to address 149.129.32.246: Connection timed out
Please ensure that you allow both inbound and outbound connections via port 25.

*** I included the file.

I have contacted alibabacloud and he gave an answer like this.
"""
We checked your provided screenshot but didn't see your mail server setting related to port 25, which is shut by default for security consideration. We suggest to consult your email server provider for better understanding of the error message. If the cause is narrowed down to SAS itself, we'd like to provide further assistance.
"""

I'm confused now.
 

Attachments

cPanelLauren

Technical Support Community Manager
Staff member
Nov 14, 2017
11,895
1,068
313
Houston
It sounds as though he's telling you that port 25 is disabled by default in some cases but he see's no evidence based on that screenshot that is what is causing the issue.

Since the server is new there are a few things you want to check:

Ensure that you've properly set your DNS records to point to the new server
Ensure that propagation is complete for DNS
Ensure that /etc/resolv.conf is set with working dns resolvers. Typically google's are easiest to use first 8.8.8.8 and 8.8.4.4

If the issue is JUST with gmail you might want to ensure that you have a valid PTR record, SPF and DKIM as they have been known to reject mail from senders without these items.
 

hasral

Registered
Jun 22, 2020
2
0
1
Makassar
cPanel Access Level
Root Administrator
I tried pinging 8.8.8.8 from my server and it works fine.

Where should I arrange. If this problem is ONLY with gmail you might want to ensure that you have valid PTR, SPF and DKIM records because they are known to reject letters from senders without these items?

After I set it up, can I send email from my server to example @ gmail .com?

[update]
I have set my DNS hostname, but it didn't work?
 
Last edited:

RoseHosting

Member
PartnerNOC
Jan 3, 2003
16
2
153
Both hosting provider you mentioned above close outgoing port 25 by default, you would want to consider using another provider that does not close outgoing port 25.