As the title / tags say, I am running sSMTP for Linux for the PHP server.
Whenever I try to send an email, I get these errors (which do not appear in PHP, only in sendmail / sudo service sendmail status or "sudo service php5-fpm status")
From / var / log / mail.log
Mar 31 03:34:34 ip-172-31-22-38 sSMTP[2004]: Creating SSL connection to host Mar 31 03:34:34 ip-172-31-22-38 sSMTP[2004]: Invalid response: 501 5.5.4 HELO/ELO argument MYEMAILADDRESS@gmail.com invalid, closing connection. v74sm9147441pfa.7- gsmtp (MYEMAILADDRESS@gmail.com) Mar 31 03:34:34 ip-172-31-22-38 sSMTP[2004]: SSL connection using (null) Mar 31 03:34:34 ip-172-31-22-38 sSMTP[2004]: Cannot open smtp.gmail.com:587
From / var / log / mail.err and mail.warn
Mar 31 03:34:10 ip-172-31-22-38 sSMTP[1997]: Cannot open smtp.gmail.com:587 Mar 31 03:34:34 ip-172-31-22-38 sSMTP[2004]: Invalid response: 501 5.5.4 HELO/EHLO argument MYEMAILADDRESS@gmail.com invalid, closing connection. v74sm9147441pfa.7 - gsmtp (MYEMAILADDRESS@gmail.com) Mar 31 03:34:34 ip-172-31-22-38 sSMTP[2004]: Cannot open smtp.gmail.com:587
My / etc / ssmtp / ssmtp.conf
#
My revaliases
root:MYEMAILADDRESS@gmail.com:smtp.gmail.com:587 localusername:MYEMAILADDRESS@gmail.com:smtp.gmail.com:587
linux php email ssmtp
Tony sesek
source share