Server not sending emails through Gmail

Discussion and Technical Support for general software applications and utilities including OS related issues.
sirtyface
Member
Member
Posts: 4
Joined: November 15th, 2011, 10:59 pm

Server not sending emails through Gmail

Postby sirtyface » March 30th, 2016, 5:50 pm

Hey All,

Some info for anyone who might come across the same problem I did today:

This morning I woke up, expecting the usual SnapRAID daily email from my server, but was surprised to see nothing in my Inbox. I took a look back through my history, and noticed my Cron emails had also stopped being sent, with the last one arriving just before 2:30 EST yesterday. This is what I saw when I looked at the mail logs in /var/log/mail.err:

Code: Select all

Mar 30 08:05:06 server sSMTP[1777]: Invalid response: 501 5.5.4 HELO/EHLO argument email.address@gmail.com invalid, closing connection. ez6sm5598611pab.12 - gsmtp (email.address@gmail.com)
Mar 30 08:05:06 server sSMTP[1777]: Cannot open smtp.gmail.com:587

At first I thought it was Gmail somehow flagging my account as a spammer or something, but I noticed some of my FlexGet emails still went through... Then I decided maybe Gmail was suddenly rejecting usernames that included the @gmail.com part, but still no dice after I changed that. So maybe it was the server or port I was connecting to? Nope... But then... Then I struck gold!

It seems that Gmail is now filtering out special characters from the hostname we provide through SSMTP! I changed this to "email.address" instead of "email.address@gmail.com", and it works perfectly!

Hopefully this helps everyone else who happens to come across this little problem.

RacerBas
Member
Member
Posts: 7
Joined: October 29th, 2014, 9:24 am

Re: Server not sending emails through Gmail

Postby RacerBas » April 12th, 2016, 12:32 pm

So that's why I stopped recieving emails...

RacerBas
Member
Member
Posts: 7
Joined: October 29th, 2014, 9:24 am

Re: Server not sending emails through Gmail

Postby RacerBas » April 12th, 2016, 8:16 pm

ssmtp: Cannot open smtp.gmail.com:587
I'm getting this now though
any help?


Return to “Software - Applications and Operating Systems”

cron