Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
IndianaJoe Posted April 1, 2016 Posted April 1, 2016 Just a couple days ago my website stopped sending emails for PM's and all that fancy stuff. I am using a gmail account to send emails. The error I am receiving is HELO (using: HELO)501 501-5.5.4 HELO/EHLO argument ssl://smtp.gmail.com:465 invalid, closing 501 5.5.4 connection. k139sm4490919ioe.42 - gsmtp I have tried tls://smtp.gmail.com:465 tls://smtp.gmail.com:587 tls://smtp.gmail.com ssl://smtp.gmail.com:465 ssl://smtp.gmail.com:587 ssl://smtp.gmail.com All with 465 and 587 ports. Override SMTP host Default is 'localhost' Revert Override SMTP port Default is 25 Revert Add '<' and '>' to 'to' and 'from' addresses YesNoSome SMTP mailers require that email addresses are in the following format '<' address '>' (no quotes). If you are getting errors in the mail error log, enabled this option Revert SMTP username Not required in most cases when using 'localhost' SMTP password Not required in most cases when using 'localhost' Enhanced SMTP HELO HELO EHLO Select which identification clause you need to use with your SMTP server.
Nathan Explosion Posted April 1, 2016 Posted April 1, 2016 It's definitly this....working just fine for me, hasn't changed in ages: Host: tls://smtp.gmail.com Port: 587 HELO: set to EHLO only.
IndianaJoe Posted April 1, 2016 Author Posted April 1, 2016 When I use port 587 I get this in the email error log Could not open a socket to the SMTP server (0:)
Nathan Explosion Posted April 1, 2016 Posted April 1, 2016 Have you discussed with your host yet? Assuming that "Just a couple days ago" you've made no changes to cause this, then it would be a good idea to ask them if they've made any changes that could cause your server to be unable to communicate with tls://smtp.gmail.com on port 587,
IndianaJoe Posted April 1, 2016 Author Posted April 1, 2016 I haven't said anything to the host yet. Wanted to verify that it wasn't my fault first. Nothing has changed on the website side of things.
Nathan Explosion Posted April 1, 2016 Posted April 1, 2016 Ok - next step is talk to host...if you've made no changes, then that's the logical step. My gmail set up is working fine, and I think the last time I changed things there was well over a year ago.
Private55555 Posted April 1, 2016 Posted April 1, 2016 7 hours ago, IndianaJoe said: I haven't said anything to the host yet. Wanted to verify that it wasn't my fault first. Nothing has changed on the website side of things. In classEmail.php, change this line: this->_smtpSendCmd( "{$this->smtp_helo} " . $this->smtp_host ); to this: $this->_smtpSendCmd( "{$this->smtp_helo} " . str_replace("tls://", "", $this->smtp_host) ); The email isn't being sent because Google is now rejecting the HELO message for having "tls://" in it, although in the IPBoard settings the "tls://" is needed to make the connection to Google's server in the first place. Going off the error message, I figured this was the problem and stripped "tls://" off the hostname. May not apply to newer versions of IPS.
IndianaJoe Posted April 1, 2016 Author Posted April 1, 2016 Thanks that looks to have fixed it! You get a gold star for the day!
rswinkel Posted April 5, 2016 Posted April 5, 2016 On 4/1/2016 at 11:03 PM, Private55555 said: In classEmail.php, change this line: this->_smtpSendCmd( "{$this->smtp_helo} " . $this->smtp_host ); to this: $this->_smtpSendCmd( "{$this->smtp_helo} " . str_replace("tls://", "", $this->smtp_host) ); The email isn't being sent because Google is now rejecting the HELO message for having "tls://" in it, although in the IPBoard settings the "tls://" is needed to make the connection to Google's server in the first place. Going off the error message, I figured this was the problem and stripped "tls://" off the hostname. May not apply to newer versions of IPS. I've tested it and it seems to work fine, thanks!
Windwalker222 Posted April 6, 2016 Posted April 6, 2016 Not sure if this will help anyone in the future that stumbles across this thread. I had been using ssl forever with gmail. About 7 days ago it stopped working. I changed it to tls in the settings in the ACP and it works fine now. Not sure why it changed but it was an easy fix.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.