[ZBXNEXT-9805] Gmail (Google) is disabling Less Secure Apps. Zabbix mail doesn't work anymore Created: 2022 Jun 09 Updated: 2025 Apr 28 |
|
Status: | IN QA |
Project: | ZABBIX FEATURE REQUESTS |
Component/s: | Frontend (F), Server (S) |
Affects Version/s: | None |
Fix Version/s: | 7.4.0rc1 (master) |
Type: | New Feature Request | Priority: | Trivial |
Reporter: | Gatis Rumbens | Assignee: | Nikita Gogolevs |
Resolution: | Unresolved | Votes: | 10 |
Labels: | Zabbix7.4, application, gmail, google, mfa, oauth2, password | ||
Σ Remaining Estimate: | 0h | Remaining Estimate: | 0h |
Σ Time Spent: | 331.5h | Time Spent: | 331.5h |
Σ Original Estimate: | 130h | Original Estimate: | 130h |
Attachments: |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
||||||||||||||||
Issue Links: |
|
||||||||||||||||
Sub-Tasks: |
|
||||||||||||||||
Team: | |||||||||||||||||
Sprint: | S25-W6/7, S25-W8/9, S25-W10/11, S25-W12/13, S25-W14/15, S25-W16/17, S25-W18/19 | ||||||||||||||||
Story Points: | 12 |
Description |
From May 30, 2022, Google no longer supports the use of third-party apps or devices which ask you to sign in to your Google Account using only your username and password which is defined as "Less Secure App" enabled in Google account. Google gradually disable all accounts/domains with enabled less secure app option. So this means that classic username/password over TLS anymore doesn't work. Instead must be use oAuth2.0 token, MFA or Application password in place. As a result in Zabbix notifications, mail as media type, doesn't work anymore from Zabbix server
535-5.7.8 Username and Password not accepted. Learn more at 535 5.7.8 https://support.google.com/mail/?p=BadCredentials bd13-20020a05651c168d00b0025076cd5ef9sm3621534ljb.128 - gsmtp
I suggest make Zabbix email media type compatible with oAuth. It was asked already in 2015 in: ZBXNEXT-2979 . As I understand a special exclusion for Google Application password as option will not apply in Zabbix.
|
Comments |
Comment by Garcia Paco [ 2022 Jun 25 ] |
Any new about this project of adding google login with OAuth authentication, it's kinda a must-have now. They put it on Grafana and it's very effective, you can put it in place in litteraly 15 minutes ! I added SAML login with Google Workspace app last year but its stop working for no reason, so I went back to local authentication, and it sucks ? Best regards, hope it will be available soon ! |
Comment by Brian van Baekel [ 2022 Jun 28 ] |
Testing with this, it seems it is still working but only IF you enable 2fa on the google account... |
Comment by Antons Sincovs [ 2022 Aug 08 ] |
You can configure an App Password and still use Gmail for notifications:
|
Comment by Jay Campey [ 2022 Sep 09 ] |
At least Google hasn't taken away the "app password" functionality, but Microsoft is deprecating that piece of basic auth as well, even for people who have AAD P1/P2 licenses. |
Comment by dimir [ 2023 Mar 15 ] |
Might get fixed when ZBXNEXT-2979 is implemented. |
Comment by Nathan Liefting [ 2023 Mar 15 ] |
Just wanted to bump this ticket a bit and provide some additional info. Microsoft also disabled most basic authentication options. Although SMTP is still availabe it is considered a basic insecure type of communication. Microsoft has even gone as far disabeling SMTP by default in all Microsoft tenants not using it. According to Microsoft themselves: "We're also disabling SMTP AUTH in all tenants in which it's not being used." I know of quite a few Zabbix users that won't be happy upgrading to a non-LTS for this feature and there seems to be a heavy focus to switch to new Authentication types for security from Google and Microsof. They are both pushing towards oAuth2, as such I feel like 7.0 LTS would be the right place for this feature to be introduced. With 8.0 LTS planned for 2 years away, who knows what will happen with SMTP authentication in that time. Seems like a risk of possibly introducing a rushed oAuth implementation and better to get it done sooner than later. Hope to see this on the roadmap soon! |
Comment by Alex Kalimulin [ 2024 Feb 29 ] |
Nathan, we have already started working on this, but as much as we'd love to get this done in 7.0, it may not fit. 7.2 seems like a safer bet. |
Comment by Nathan Liefting [ 2024 Mar 01 ] |
Thanks for the update Alex! 7.0 is already packed with features and I definitely understand. Fingers crossed that 8.0 LTS would be early enough to not run into any issues with decissions from MS and/or Google. Also with the extended major support from 1 month to 6 months the risk is also a bit less high running a major release like 7.2 so I'm not too worried if it does happen |
Comment by Off by One [ 2024 Oct 03 ] |
Well, it has happened. Both Microsoft and Google have decided to switch off password-based authentication (including app passwords) in favour of OAuth2. So any notifications or reports that used to be sent outh through Office365 or Google web servers, will not work anymore. |
Comment by Alex Kalimulin [ 2024 Oct 10 ] |
Putteneers, can you please provide links? From what I read it seems that Google is not retiring app passwords yet. Exchange is removing basic SMTP AUTH in September, 2025. |
Comment by Off by One [ 2024 Oct 10 ] |
Kalimulin of course: https://support.microsoft.com/en-us/office/modern-authentication-methods-now-needed-to-continue-syncing-outlook-email-in-non-microsoft-email-apps-c5d65390-9676-4763-b41f-d7986499a90d contains a timeline, which I've reproduced here for convenience: Transition Timeline June 11th, 2024
End of June 2024
September 16th, 2024
Personal experimentation has confirmed that using SMTP auth isn't working anymore. Now that I'm thinking about it more, the timeline mentions "Outlook account", which I'm not sure is the same as Office365 account. For Google, the problem might be me instead of them disabling app passwords. I created a new Google account and after enabling 2FA, there was no option visible to create app passwords.
|
Comment by Alex Kalimulin [ 2024 Nov 28 ] |
Putteneers, thanks for the research. As for the Microsoft:
7.2 is coming soon, but SMTP OAuth didn't fit. Aiming for 7.4. |