<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[SMTP + STARTTLS notification error]]></title><description><![CDATA[<p dir="auto">Hi, </p>
<p dir="auto">I'm new to NetXMS, and I was trying to setup some notifications channels: it works well for Slack, but I struggle with SMTP which is always in error (ends up with status "Failure"  and error message "Driver error").</p>
<p dir="auto">I've set the ncd.smtp debug level to 6, and I can see the following messages:</p>
<pre><code>Sending mail with url="smtp://pro1.mail.ovh.net:587", to="contact@xxxx.com", subject="test", login="xxx@xxxx.com"
2023.10.09 12:15:18.234 *D* [ncd.smtp           ] Call to curl_easy_perform("smtp://pro1.mail.ovh.net:587") failed (56: Failure when receiving data from the peer)
</code></pre>
<p dir="auto">There is my SMTP notification channel configuration:</p>
<pre><code>FromAddr=xxx@xxx.com
FromName=NetXMS
IsHTML=no
Login=xxx@xxx.com
Password=my_smtp_password
Port=587
Server=pro1.mail.ovh.net
TLSMode=STARTTLS
</code></pre>
<p dir="auto">My mail provider (OVH) needs a secure SMTP connection on port 587 with STARTTLS and authentication is required using my email/password.<br />
There is the ';' caracter at the end of my password, so I thought the problem might be here, but even when I encode the password with the "nxencpassd" utility, SMTP notification are still in error.</p>
<p dir="auto">How could I solve this issue?</p>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.netxms.org/topic/7782/smtp-starttls-notification-error</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 07:24:13 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/7782.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 09 Oct 2023 12:32:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SMTP + STARTTLS notification error on Wed, 11 Oct 2023 11:04:39 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for your quick reply, I'll do that!</p>
]]></description><link>https://forum.netxms.org/post/32884</link><guid isPermaLink="true">https://forum.netxms.org/post/32884</guid><dc:creator><![CDATA[mrtur]]></dc:creator><pubDate>Wed, 11 Oct 2023 11:04:39 GMT</pubDate></item><item><title><![CDATA[Reply to SMTP + STARTTLS notification error on Wed, 11 Oct 2023 10:19:36 GMT]]></title><description><![CDATA[<p dir="auto">We will add option to specify authentication method in a future release, but currently that's not possible. Meanwhile you can use "shell" notification channel and call some script that would invoke curl from command line</p>
]]></description><link>https://forum.netxms.org/post/32883</link><guid isPermaLink="true">https://forum.netxms.org/post/32883</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Wed, 11 Oct 2023 10:19:36 GMT</pubDate></item><item><title><![CDATA[Reply to SMTP + STARTTLS notification error on Wed, 11 Oct 2023 08:53:47 GMT]]></title><description><![CDATA[<p dir="auto">I finally find the working command: I had to add the "--ntlm" flag at the end of the command line.</p>
<pre><code>curl -v --ssl-reqd  --url 'smtp://pro1.mail.ovh.net:587' --user 'username@gmail.com:password' --mail-from 'username@gmail.com' --mail-rcpt 'john@example.com' --upload-file mail.txt --ntlm
</code></pre>
<p dir="auto">What would be the netxms setup then?</p>
]]></description><link>https://forum.netxms.org/post/32881</link><guid isPermaLink="true">https://forum.netxms.org/post/32881</guid><dc:creator><![CDATA[mrtur]]></dc:creator><pubDate>Wed, 11 Oct 2023 08:53:47 GMT</pubDate></item><item><title><![CDATA[Reply to SMTP + STARTTLS notification error on Wed, 11 Oct 2023 08:31:42 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">It doesn't work. I tried with two different accounts to be sure the password was not involved. I had sensu on the same machine and I can send email with the same smtp account and credentials. Here's the command output:</p>
<pre><code>* Connected to pro1.mail.ovh.net (79.137.0.66) port 587 (#0)
&lt; 220 pro1.mail.ovh.net Microsoft ESMTP MAIL Service ready at Wed, 11 Oct 2023 10:26:50 +0200
&gt; EHLO mail.txt
&lt; 250-pro1.mail.ovh.net Hello [176.191.46.127]
&lt; 250-SIZE 104857600
&lt; 250-PIPELINING
&lt; 250-DSN
&lt; 250-ENHANCEDSTATUSCODES
&lt; 250-STARTTLS
&lt; 250-AUTH GSSAPI NTLM
&lt; 250-8BITMIME
&lt; 250-BINARYMIME
&lt; 250 CHUNKING
&gt; STARTTLS
&lt; 220 2.0.0 SMTP server ready
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: /etc/ssl/certs
* TLSv1.0 (OUT), TLS header, Certificate Status (22):
} [5 bytes data]
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
* TLSv1.2 (IN), TLS header, Certificate Status (22):
{ [5 bytes data]
* TLSv1.3 (IN), TLS handshake, Server hello (2):
{ [85 bytes data]
* TLSv1.2 (IN), TLS handshake, Certificate (11):
{ [3433 bytes data]
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
{ [657 bytes data]
* TLSv1.2 (IN), TLS handshake, Server finished (14):
{ [4 bytes data]
* TLSv1.2 (OUT), TLS header, Certificate Status (22):
} [5 bytes data]
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
} [138 bytes data]
* TLSv1.2 (OUT), TLS header, Finished (20):
} [5 bytes data]
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
} [1 bytes data]
* TLSv1.2 (OUT), TLS header, Certificate Status (22):
} [5 bytes data]
* TLSv1.2 (OUT), TLS handshake, Finished (20):
} [16 bytes data]
* TLSv1.2 (IN), TLS header, Finished (20):
{ [5 bytes data]
* TLSv1.2 (IN), TLS header, Certificate Status (22):
{ [5 bytes data]
* TLSv1.2 (IN), TLS handshake, Finished (20):
{ [16 bytes data]
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-SHA384
* Server certificate:
*  subject: CN=pro1.mail.ovh.net
*  start date: Jun  7 00:00:00 2023 GMT
*  expire date: Jun  6 23:59:59 2024 GMT
*  subjectAltName: host "pro1.mail.ovh.net" matched cert's "pro1.mail.ovh.net"
*  issuer: C=GB; ST=Greater Manchester; L=Salford; O=Sectigo Limited; CN=Sectigo RSA Domain Validation Secure Server CA
*  SSL certificate verify ok.
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
} [5 bytes data]
&gt; EHLO mail.txt
* TLSv1.2 (IN), TLS header, Supplemental data (23):
{ [5 bytes data]
&lt; 250-pro1.mail.ovh.net Hello [176.191.46.127]
&lt; 250-SIZE 104857600
&lt; 250-PIPELINING
&lt; 250-DSN
&lt; 250-ENHANCEDSTATUSCODES
&lt; 250-AUTH GSSAPI NTLM LOGIN
&lt; 250-8BITMIME
&lt; 250-BINARYMIME
&lt; 250 CHUNKING
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
} [5 bytes data]
&gt; AUTH GSSAPI
* TLSv1.2 (IN), TLS header, Supplemental data (23):
{ [5 bytes data]
&lt; 334 GSSAPI supported
* gss_init_sec_context() failed: No credentials were supplied, or the credentials were unavailable or inaccessible. No Kerberos credentials available (default cache: FILE:/tmp/krb5cc_1000).
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
* Closing connection 0
* TLSv1.2 (OUT), TLS header, Unknown (21):
} [5 bytes data]
* TLSv1.2 (OUT), TLS alert, close notify (256):
} [2 bytes data]
curl: (94) An authentication function returned an error
</code></pre>
<p dir="auto">I don't understand because I pass the --user 'xxxx@xxx.com:<em>mypassword</em>'. I even tried to remove the password from the command line, so curl prompt for it, but I have the same error message then...</p>
]]></description><link>https://forum.netxms.org/post/32880</link><guid isPermaLink="true">https://forum.netxms.org/post/32880</guid><dc:creator><![CDATA[mrtur]]></dc:creator><pubDate>Wed, 11 Oct 2023 08:31:42 GMT</pubDate></item><item><title><![CDATA[Reply to SMTP + STARTTLS notification error on Wed, 11 Oct 2023 06:44:37 GMT]]></title><description><![CDATA[<p dir="auto">From the capture it's seen that exchange successfully switches to TLS mode, but we don't see much beyond that due to encryption.<br />
Please try sending email using curl from command line of machine where netxms is running:</p>
<pre><code>curl -v --ssl-reqd  --url 'smtp://pro1.mail.ovh.net:587' --user 'username@gmail.com:password' --mail-from 'username@gmail.com' --mail-rcpt 'john@example.com' --upload-file mail.txt
</code></pre>
<p dir="auto">for that you need mail.txt file in the folder where you launch curl with content like this:</p>
<pre><code>From: "User Name" &lt;username@gmail.com&gt;
To: "John Smith" &lt;john@example.com&gt;
Subject: This is a test

Hi John,
I’m sending this mail with curl thru my gmail account.
Bye!
</code></pre>
<p dir="auto">Please adjust the command and mail.txt file with your actual addresses. curl should produce verbose output, pls share that.</p>
]]></description><link>https://forum.netxms.org/post/32879</link><guid isPermaLink="true">https://forum.netxms.org/post/32879</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Wed, 11 Oct 2023 06:44:37 GMT</pubDate></item><item><title><![CDATA[Reply to SMTP + STARTTLS notification error on Tue, 10 Oct 2023 06:23:57 GMT]]></title><description><![CDATA[<p dir="auto">Please try to capture traffic on NetXMS using tcpdump:</p>
<pre><code>tcpdump -s 0 -w smtp.pcap -i INTERFACE_NAME host pro1.mail.ovh.net and tcp and port 587
</code></pre>
<p dir="auto">STARTTLS has unencrypted phase of communications in the beginning, so we might see some clue there. You can send capture file to me in a private message.</p>
]]></description><link>https://forum.netxms.org/post/32877</link><guid isPermaLink="true">https://forum.netxms.org/post/32877</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Tue, 10 Oct 2023 06:23:57 GMT</pubDate></item></channel></rss>