Server not sending emails through Gmail

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

Server not sending emails through Gmail

Post by sirtyface »

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, 8:24 am

Re: Server not sending emails through Gmail

Post by RacerBas »

So that's why I stopped recieving emails...
RacerBas
Member
Member
Posts: 7
Joined: October 29th, 2014, 8:24 am

Re: Server not sending emails through Gmail

Post by RacerBas »

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