correct STARTTLS syntax for email alerts?

David Newman <[email protected]>
Newsgroups gmane.comp.monitoring.monit.general
Organization Network Test Inc.
Message-ID <[email protected]>
FreeBSD 11.2, monit-5.25.2 compiled from ports with SSL/TLS support

What's the correct syntax for monit to use STARTTLS when sending email
alerts?

Currently monit logs this error:

[PDT Jul 29 16:05:21] error    : Mail: Mailserver response error -- 530
5.7.0 Must issue a STARTTLS command first

Using this configuration in /usr/local/etc/monitrc:

set ssl options {
        version: auto
        verify: enable
        pemfile: /etc/ssl/certs/mail.example.com/everything.pem
}

set mailserver mail.example.com
	port 587
        username "[email protected]"
	password="wouldnt-you-like-to-know"
        using ssl

check process mailman with pidfile
/usr/local/mailman/data/master-qrunner.pid
        group mailman
        start program = "/usr/local/etc/rc.d/mailman start"
        stop program = "/usr/local/etc/rc.d/mailman stop"
        if 1 restarts within 1 cycles then alert

Thanks!

dn


-- 
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.