Page 1 of 1
Failed to authenticate to mail server with Gmail
Posted: February 25th, 2015, 3:57 pm
by JohnnyBeGood
Hi all,
Notification feature worked for a long time now I'm not getting any notifications. Error when I try to test is:
Failed to authenticate to mail server Only what changed is that I installed Kaspersky IS. I even tried disabling but it does not make any difference.
Can someone please post their working settings?
Here's what worked for me until recently:

Re: Failed to authenticate to mail server with Gmail
Posted: February 25th, 2015, 3:59 pm
by sander
Just use gmail-smtp-in.l.google.com as SMTP server.
No username/password/authentication needed. That is ... as long as you send (from and) to gmail.com
Re: Failed to authenticate to mail server with Gmail
Posted: February 25th, 2015, 4:53 pm
by JohnnyBeGood
Thanks for the prompt reply!
Replaced smtp.gmail.com:587 with gmail-smtp-in.l.google.com left "OPTIONAL Account Username" and "OPTIONAL Account Password" blank, saved changes and did test, it was showing verifying and then at the end says "Failed to connect to mail server".
If I leave "Email Sender" blank and do a test, it says "Email Sent!" but I never receive it in my Gmail inbox?
And yes I was sending from/to Gmail before.
Re: Failed to authenticate to mail server with Gmail
Posted: February 26th, 2015, 1:37 am
by sander
On my setup, gmail-smtp-in.l.google.com works perfectly. See logging below.
If you get "Failed to connect to mail server", I would suspect a virusscanner or firewall on your system, or a blocking of port 25 by your ISP.
See
http://wiki.sabnzbd.org/firewalls-and-virus-scanners for some general information.
As you installed Kaspersky IS, I would suspect that. Easy test: de-install and remove Kaspersky completely (no, de-activating does not solve it), and try again.
Code: Select all
2015-02-26 07:28:42,990::INFO::[api:683] Sending testmail
2015-02-26 07:28:43,113::DEBUG::[emailer:80] Connecting to server gmail-smtp-in.l.google.com:25
2015-02-26 07:28:43,482::DEBUG::[emailer:93] Non-SSL mail server detected reconnecting to server gmail-smtp-in.l.google.com:25
2015-02-26 07:28:43,650::DEBUG::[emailer:107] TLS mail server detected
2015-02-26 07:28:44,652::INFO::[emailer:150] Notification e-mail succesfully sent
Re: Failed to authenticate to mail server with Gmail
Posted: February 26th, 2015, 10:41 am
by JohnnyBeGood
Got it to work with old settings!
Here's what I did:
Went to
http://www.google.com/settings/security "Access for less secure apps" was turned off, turned it on and voila started working right away.
Thanks again!

Re: Failed to authenticate to mail server with Gmail
Posted: February 26th, 2015, 10:46 am
by sander
Thanks for the followup
Re: Failed to authenticate to mail server with Gmail
Posted: February 26th, 2015, 2:38 pm
by shypike
Described also here:
http://wiki.sabnzbd.org/configure-notifications-0-7 section "How to setup for Google mail"