Email sending to gmail is not working.
Hello,
When I try to send an email from my Gmail to my cPanel the mail is received. But if I send something to a Gmail account an error occurs. If I try to send another provider, it works.
---------------------------
This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
astinternational07@gmail.com
(ultimately generated from alkaj@astinter.com)
retry timeout exceeded
Reporting-MTA: dns; zap.reallyfastserver.com
Action: failed
Final-Recipient: rfc822;alkaj@astinter.com
Status: 5.0.0
Test By Rasel
--------------------------------
| Subject | Test By Rasel |
| From | ='mohshin@astinter.com'>Mohshin |
| To | alkaj@astinter.com |
| Date | Today 18:30 |
-
Can you share the output for the following command on your server: $ telnet smtp.gmail.com 5870 -
Hey, I used it, and it says command not found. 0 -
Got the same error and ive not been able to send mails to Gmail also 0 -
Install telnet using: # yum install telnet -y
then the telnet command should work0 -
this is the response i get when I tried to install telnet 0 -
Instead, you could use the following commands and share the outputs: [QUOTE]nc smtp.gmail.com 587
[QUOTE]nc smtp.gmail.com 250 -
Instead, you could use the following commands and share the outputs:
[centos@ip-172-31-19-103 ~]$ nc smtp.gmail.com 587 220-ip-172-31-19-103.us-east-2.compute.internal ESMTP Exim 4.95 #2 Thu, 01 Dec 2022 16:43:24 +0000 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail. nc smtp.gmail.com 25 500 unrecognized command0 -
80509 this is the response i get when I tried to install telnet
In order to install this, you have to switch to root user or run it with sudo as follows: [QUOTE]To switch to root user: sudo -i
[QUOTE]To run as current user centos: sudo yum install telnet -y
[centos@ip-172-31-19-103 ~]$ nc smtp.gmail.com 587 220-ip-172-31-19-103.us-east-2.compute.internal ESMTP Exim 4.95 #2 Thu, 01 Dec 2022 16:43:24 +0000 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail. nc smtp.gmail.com 25 500 unrecognized command
Looks like the server has connection to Gmail SMTP server, however, the second command seems ran incorrectly there. Run below command correctly from your terminal, not from inside nc prompt. [QUOTE]nc smtp.gmail.com 250 -
In order to install this, you have to switch to root user or run it with sudo as follows: Looks like the server has connection to Gmail SMTP server, however, the second command seems ran incorrectly there. Run below command correctly from your terminal, not from inside nc prompt.
Using username "centos". Authenticating with public key "imported-openssh-key" Last login: Thu Dec 1 16:43:00 2022 from 197.211.58.185 [centos@ip-172-31-19-103 ~]$ sudo -i [root@ip-172-31-19-103 ~]# sudo yum install telnet -y Loaded plugins: fastestmirror, universal-hooks Loading mirror speeds from cached hostfile * EA4: 63.247.64.58 * cpanel-plugins: 63.247.64.58 * base: download.cf.centos.org * extras: download.cf.centos.org * updates: download.cf.centos.org Resolving Dependencies --> Running transaction check ---> Package telnet.x86_64 1:0.17-66.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: telnet x86_64 1:0.17-66.el7 updates 64 k Transaction Summary ================================================================================ Install 1 Package Total download size: 64 k Installed size: 113 k Downloading packages: telnet-0.17-66.el7.x86_64.rpm | 64 kB 00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : 1:telnet-0.17-66.el7.x86_64 1/1 Verifying : 1:telnet-0.17-66.el7.x86_64 1/1 Installed: telnet.x86_64 1:0.17-66.el7 Complete! [root@ip-172-31-19-103 ~]# nc smtp.gmail.com 587 220 smtp.gmail.com ESMTP b11-20020a92dccb000000b002f139ba4135sm2626705ilr.86 - g smtp nc smtp.gmail.com 25 502 5.5.1 Unrecognized command. b11-20020a92dccb000000b002f139ba4135sm2626705ilr .86 - gsmtp0 -
Looks like, you are running the nc commands wrong. Run the below command separately instead of from inside the nc prompt of towards 587. [QUOTE] nc smtp.gmail.com 25
OR [QUOTE]telnet smtp.gmail.com 25
Run above command once you logged into the server, and share the outputs here.0
Please sign in to leave a comment.
Comments
10 comments