<?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[ssmtp send email]]></title><description><![CDATA[<p dir="auto">Как можно подружить NetXMS и простейший агент пересылки ssmtp ? Сейчас получаю "SMTP Communication failure"</p>
<p dir="auto">ssmtp.conf</p>
<pre><code>mailhub=smtp.mail.ru:465
AuthUser="user@mail.ru"
AuthPass="password"
UseTLS=YES
</code></pre>
<p dir="auto">В настройках NetXMS указал SMTPserver = <a href="http://mail.smtp.ru" rel="nofollow ugc">mail.smtp.ru</a></p>
<p dir="auto">Необходимо чтобы NetXMS отправлял через ssmtp и считывал ssmtp.conf.</p>
]]></description><link>https://forum.netxms.org/topic/3962/ssmtp-send-email</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 15:51:21 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/3962.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 01 Sep 2015 16:05:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ssmtp send email on Fri, 30 Oct 2015 09:36:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/victor" aria-label="Profile: victor">@<bdi>victor</bdi></a> said in <a href="/post/18135">ssmtp send email</a>:</p>
<blockquote>
<p dir="auto">Попробуйте поставить параметр сервера MailEncoding в Windows-1251 и CodePage в cp1251.</p>
</blockquote>
<p dir="auto">Спасибо, вроде бы помогло.</p>
]]></description><link>https://forum.netxms.org/post/18148</link><guid isPermaLink="true">https://forum.netxms.org/post/18148</guid><dc:creator><![CDATA[hsvt]]></dc:creator><pubDate>Fri, 30 Oct 2015 09:36:19 GMT</pubDate></item><item><title><![CDATA[Reply to ssmtp send email on Thu, 29 Oct 2015 20:09:30 GMT]]></title><description><![CDATA[<p dir="auto">Попробуйте поставить параметр сервера MailEncoding в Windows-1251 и CodePage в cp1251.</p>
]]></description><link>https://forum.netxms.org/post/18135</link><guid isPermaLink="true">https://forum.netxms.org/post/18135</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 29 Oct 2015 20:09:30 GMT</pubDate></item><item><title><![CDATA[Reply to ssmtp send email on Mon, 19 Oct 2015 09:48:46 GMT]]></title><description><![CDATA[<p dir="auto">Возникла еще проблемка, письма с нод которые содержат кириллицу в имени приходят с пустым именем в макросе %n</p>
<p dir="auto">В теле письма приходит так:</p>
<pre><code>Content-Type: text/plain; charset=iso-8859-1
</code></pre>
<p dir="auto">Как сделать отображение имени ноды в письме если она 1251 ?</p>
<p dir="auto">UPD: Попробовал установить CodePage utf8:</p>
<pre><code>[16-Oct-2015 20:03:09.987] [WARN ] Unable to set codepage to utf8
</code></pre>
<p dir="auto">Сейчас попробую собрать без unicode.</p>
]]></description><link>https://forum.netxms.org/post/17989</link><guid isPermaLink="true">https://forum.netxms.org/post/17989</guid><dc:creator><![CDATA[hsvt]]></dc:creator><pubDate>Mon, 19 Oct 2015 09:48:46 GMT</pubDate></item><item><title><![CDATA[Reply to ssmtp send email on Wed, 09 Sep 2015 09:48:31 GMT]]></title><description><![CDATA[<p dir="auto">С этим вопросом пока что разобрались, я сделал всё через postfix smarthost, благодарю. Теперь буду думать как прикрутить SMS оповещения, в принципе есть GSM модем старенький (Телеофис Office Gate) с антеной, или же с помощью <a href="http://sms.ru" rel="nofollow ugc">sms.ru</a> и отправки на почту с конвертацией в sms...но это уже отдельная тема.</p>
]]></description><link>https://forum.netxms.org/post/17756</link><guid isPermaLink="true">https://forum.netxms.org/post/17756</guid><dc:creator><![CDATA[hsvt]]></dc:creator><pubDate>Wed, 09 Sep 2015 09:48:31 GMT</pubDate></item><item><title><![CDATA[Reply to ssmtp send email on Tue, 08 Sep 2015 14:39:21 GMT]]></title><description><![CDATA[<p dir="auto">Возможно стоит добавить кавычки вокруг %m?</p>
]]></description><link>https://forum.netxms.org/post/17746</link><guid isPermaLink="true">https://forum.netxms.org/post/17746</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 08 Sep 2015 14:39:21 GMT</pubDate></item><item><title><![CDATA[Reply to ssmtp send email on Sat, 05 Sep 2015 14:41:37 GMT]]></title><description><![CDATA[<p dir="auto">Дак ОС и не должна ничего понимать... %m в Action переворачивается в текст...</p>
]]></description><link>https://forum.netxms.org/post/17729</link><guid isPermaLink="true">https://forum.netxms.org/post/17729</guid><dc:creator><![CDATA[kozlov_ao]]></dc:creator><pubDate>Sat, 05 Sep 2015 14:41:37 GMT</pubDate></item><item><title><![CDATA[Reply to ssmtp send email on Wed, 02 Sep 2015 16:01:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alk" aria-label="Profile: alk">@<bdi>alk</bdi></a> said in <a href="/post/17703">ssmtp send email</a>:</p>
<blockquote>
<p dir="auto">NetXMS не умеет читать конфиги локального релея – это задача MTA – как тот будет читать свой конфиг.<br />
Отсылка почты идет через SMTP, локальный или удаленный (без поддержки авторизации, так как полноценная поддержка – серьезный геморой, а различные MTA умеют это из коробки).</p>
<p dir="auto">Я бы советовал заменить ssmtp на локальный postfix/exim4 в режиме smarthost (поднимает SMTP на localhost и отсылает всё на следующий сервер) – конфигурации там 10 строк у каждого.<br />
Второй вариант – прописать на существующем релее исключение в авторизации для IP сервера, где запущен NetXMS.<br />
Третий – добавить server action (configuration -&gt; action configuration -&gt; new -&gt; type=execute on management server) c коммандой типа:<code>echo %m | mail -s "subject" user@domain.tld</code> и использовать этот action в EPP.</p>
</blockquote>
<p dir="auto">Спасибо за ответ. Я скомбинировал 2 и 3 варианты.</p>
<p dir="auto">Вот только с 3 вариантом почему то не отсылает, создал action (execute command on managment server)</p>
<pre><code>/bin/echo %m | /usr/bin/mail -s "subject" user@mail.ru
</code></pre>
<p dir="auto">И добавил его к EPP условию. Пробую через nxevent SYS_THRESHOLD_REACHED, но ничего не приходит, а из консоли отрабатывает.</p>
<p dir="auto">Хотя к примеру, если написать в command mkdir то всё отрабатывает.</p>
<p dir="auto">UPD: ОС не понимает макросы %m и т.д., т.к. если просто echo "test" то отрабатывает. Как быть тогда? Postix или Exim4 что то не хочется поднимать. Попробовал еще msmtp но он не умеет вроде бы smarthost</p>
]]></description><link>https://forum.netxms.org/post/17705</link><guid isPermaLink="true">https://forum.netxms.org/post/17705</guid><dc:creator><![CDATA[hsvt]]></dc:creator><pubDate>Wed, 02 Sep 2015 16:01:27 GMT</pubDate></item><item><title><![CDATA[Reply to ssmtp send email on Wed, 02 Sep 2015 10:47:53 GMT]]></title><description><![CDATA[<p dir="auto">NetXMS не умеет читать конфиги локального релея – это задача MTA – как тот будет читать свой конфиг.<br />
Отсылка почты идет через SMTP, локальный или удаленный (без поддержки авторизации, так как полноценная поддержка – серьезный геморой, а различные MTA умеют это из коробки).</p>
<p dir="auto">Я бы советовал заменить ssmtp на локальный postfix/exim4 в режиме smarthost (поднимает SMTP на localhost и отсылает всё на следующий сервер) – конфигурации там 10 строк у каждого.<br />
Второй вариант – прописать на существующем релее исключение в авторизации для IP сервера, где запущен NetXMS.<br />
Третий – добавить server action (configuration -&gt; action configuration -&gt; new -&gt; type=execute on management server) c коммандой типа:<code>echo %m | mail -s "subject" user@domain.tld</code> и использовать этот action в EPP.</p>
]]></description><link>https://forum.netxms.org/post/17703</link><guid isPermaLink="true">https://forum.netxms.org/post/17703</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Wed, 02 Sep 2015 10:47:53 GMT</pubDate></item><item><title><![CDATA[Reply to ssmtp send email on Wed, 02 Sep 2015 10:28:00 GMT]]></title><description><![CDATA[<p dir="auto">Пробовал так же указывать сразу наш внутренний корпоративный сервер.</p>
<p dir="auto">На mail сервере в логах:</p>
<pre><code>Warning! Authentication required!

Sep  2 13:24:28 mail exim[6430]: 2015-09-02 13:24:28 [6430] unexpected disconnection while reading SMTP command from (netxms) []:16597 I=[]:25
</code></pre>
<p dir="auto">Такое ощущение что NetXMS перестал считывать конфиг локального релея в ОС...</p>
]]></description><link>https://forum.netxms.org/post/17702</link><guid isPermaLink="true">https://forum.netxms.org/post/17702</guid><dc:creator><![CDATA[hsvt]]></dc:creator><pubDate>Wed, 02 Sep 2015 10:28:00 GMT</pubDate></item></channel></rss>