[ZBXNEXT-3367] SMTP AUTH LOGIN support Created: 2016 Aug 08  Updated: 2024 Jun 07

Status: Open
Project: ZABBIX FEATURE REQUESTS
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Change Request Priority: Minor
Reporter: Ostap Bender Assignee: Unassigned
Resolution: Unresolved Votes: 10
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File email-auth-login-support.patch    
Issue Links:
Duplicate
is duplicated by ZBX-11380 not working send email autentication ... Closed
Sub-task
depends on ZBX-11042 send_email_curl() fails to send to O365 Closed

 Description   

There are at least two basic authentication methods: AUTH PLAIN and AUTH LOGIN. libcurl 7.35 supports both of them. When CURLOPT_LOGIN_OPTIONS is set to “AUTH=PLAIN” then AUTH PLAIN method is used. When CURLOPT_LOGIN_OPTIONS is set to “AUTH=LOGIN” then AUTH LOGIN method is used. Zabbix 3.0 media types configuration allows to choose only AUTH PLAIN method. An AUTH LOGIN option in the media types configuration would be very helpful to connect some SMTP servers. Also an automatic detection of basic authentication method will be considered as more friendly.

AUTH LOGIN session example:
S: 220 smtp.server.com ESMTP
C: EHLO client.example.com
S: 250-smtp.server.com Hello client.example.com
250-SIZE 1000000
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-STARTTLS
250-AUTH LOGIN
250-8BITMIME
250-BINARYMIME
250 CHUNKING
C: AUTH LOGIN
S: 334 VXNlcm5hbWU6
C: adlxdkej
S: 334 UGFzc3dvcmQ6
C: lkujsefxlj
S: 235 2.0.0 OK



 Comments   
Comment by Aleksandrs Saveljevs [ 2016 Nov 22 ]

ZBXNEXT-3569 seems to ask for NTLM support.

Comment by Michel Meyers [ 2017 May 24 ]

+1 from me. Office 365 only supports AUTH LOGIN (doesn't allow AUTH PLAIN).
libcurl appears to support AUTH LOGIN: https://curl.haxx.se/docs/features.html

Comment by Michel Meyers [ 2017 May 24 ]

Hack to add AUTH LOGIN support for SMTP email. (including modifications to PHP frontend)

This is based on ZBX 3.0.7 currently available in Debian and may need adaptation for 3.2/3.4.

Comment by long_3000 [ 2017 Jun 22 ]

Please fix this bug in next release. Many companies are using office365 now.

Comment by Glebs Ivanovskis (Inactive) [ 2017 Aug 28 ]

ZBXNEXT-2979 is related.

Comment by Michel Meyers [ 2017 Sep 14 ]

Since ZBX-11042 is resolved, this can can probably closed as well.

Generated at Fri May 02 07:41:09 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.