Skip to main content

Email sending to gmail is not working.

Comments

10 comments

  • kodeslogic
    Can you share the output for the following command on your server: $ telnet smtp.gmail.com 587
    0
  • YesitsRafid
    Hey, I used it, and it says command not found.
    0
  • kvngwitty
    Got the same error and ive not been able to send mails to Gmail also
    0
  • kodeslogic
    Install telnet using: # yum install telnet -y
    then the telnet command should work
    0
  • kvngwitty
    this is the response i get when I tried to install telnet
    0
  • ServerHealers
    Instead, you could use the following commands and share the outputs: [QUOTE]nc smtp.gmail.com 587
    [QUOTE]nc smtp.gmail.com 25
    0
  • kvngwitty
    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 command
    0
  • ServerHealers
    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 25
    0
  • kvngwitty
    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 - gsmtp
    0
  • ServerHealers
    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.