SMTP External for Email Notification
SMTP External for Email Notification
I tried to configure Email Notifications from server to registered users via external SMTP (gmail smtp) but always failed with error :
Failed to connect to SMTP server
Why is that ? gmail smtp at : smtp.gmail.com port 587 with username and password generated-app via gmail security console. The same settings works on my other server (not keyhelp server).
Re: SMTP External for Email Notification
please explain the problem more in detail. What excatly was configured on the server.
Florian Cheno
**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Re: SMTP External for Email Notification
Google have a strict policy regarding such requests and flagging them as "insecure" - not that their preferred method would be more secure at all...
Alexander Mahr
**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Re: SMTP External for Email Notification
Re: SMTP External for Email Notification
if you use Port 587 you must choose STARTTLS and not SSL/TLS
Also test via telnet if your server can reach the Google mail server:
Code: Select all
telnet smtp.gmail.com 587
Trying 2a00:1450:4013:c04::6c...
Connected to smtp.gmail.com.
Escape character is '^]'.
220 smtp.gmail.com ESMTP n15sm10806206edw.70 - gsmtp
Florian Cheno
**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Re: SMTP External for Email Notification
Tried multiple times with STARTTLS or SSL/TLS.. both of them always Failed.Florian wrote: ↑Wed 1. Sep 2021, 11:32 Hallo,
if you use Port 587 you must choose STARTTLS and not SSL/TLS
Also test via telnet if your server can reach the Google mail server:Code: Select all
telnet smtp.gmail.com 587 Trying 2a00:1450:4013:c04::6c... Connected to smtp.gmail.com. Escape character is '^]'. 220 smtp.gmail.com ESMTP n15sm10806206edw.70 - gsmtp
Here attached successfull Telnet to Gmail SMTP firectly from KeyHelp shell console (via SSH).
- Attachments
-
- C.png (8.99 KiB) Viewed 5452 times
Re: SMTP External for Email Notification
I will try to implement XOAUTH2 (their preferred method) for using Googles SMTP services at some point in the future.
Alexander Mahr
**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************