Email transport

Im having problems using sendmail. For some reason it tries to connect to the domain controllers and not the SMTP host.
Tried both DNS and IP for SMTP host.
When I switch to smtp as backend, email works but the formating isnt good:

Alert for device - Processor usage over 85% Severity: critical Timestamp: 2016-11-17 08:45:50 Unique-ID: 2617 Rule: Processor usage over 85% Faults: #1: processor_id => 87; processor_oid => .; processor_descr => Processor 1; sysObjectID => enterprises.9.1.927; sysDescr => Cisco IOS Software, C2960 Software (C2960-LANLITE-M), Version 12.2(37)EY, RELEASE SOFTWARE (fc2) Copyright © 1986-2007 by Cisco Systems, Inc. Compiled Thu 28-Jun-07 18:07 by antonino; Alert sent to: NOC

Is this related to the smtp?
How can I force sendmail to use the correct SMTP host?


If you specify sendmail to be your mail transport then you need to configure sendmail on the LibreNMS server (which is outside the scope for us). If you use smtp you can set the transport to use this by configuring the relevant details.

As for the formatting, have you enabled html emails? $config['email_html'] = true; in config.php? If so either disable this or you need to create templates which are html formatted - we don’t do this by default.

Ok, ty

I’ve got sendmail to work.

I followed this

I’m using Nullmailer with a number of servers that don’t have their own SMTP service configured.