Re: correct STARTTLS syntax for email alerts?

David Newman <[email protected]>
Newsgroups gmane.comp.monitoring.monit.general
Organization Network Test Inc.
Message-ID <[email protected]>
On 7/30/18 10:50 AM, [email protected] wrote:

> The configuration looks fine, please can you send Monit log?

It's just a lot of entries like this. I deliberately stopped the Mailman
service to try to force an email alert from Monit.

Thanks in advance for any troubleshooting clues.

dn

[PDT Jul 29 16:03:50] info     : Starting Monit 5.25.2 daemon with http
interface at [localhost]:2812
[PDT Jul 29 16:03:50] info     : 'mail8.networktest.com' Monit 5.25.2
started
[PDT Jul 29 16:03:55] error    : 'mailman' service restarted 1 times
within 1 cycles(s) - alert
[PDT Jul 29 16:03:55] error    : Mail: Mailserver response error -- 530
5.7.0 Must issue a STARTTLS command first
[PDT Jul 29 16:03:55] error    : Aborting event
[PDT Jul 29 16:03:55] info     : 'mailman' process is running after
previous restart timeout (manually recovered?)
[PDT Jul 29 16:03:55] error    : Mail: Mailserver response error -- 530
5.7.0 Must issue a STARTTLS command first
[PDT Jul 29 16:03:55] error    : Aborting event
[PDT Jul 29 16:04:30] error    : 'mailman' process is not running
[PDT Jul 29 16:04:30] error    : Mail: Mailserver response error -- 530
5.7.0 Must issue a STARTTLS command first
[PDT Jul 29 16:04:30] error    : Aborting event
[PDT Jul 29 16:04:30] info     : 'mailman' trying to restart
[PDT Jul 29 16:04:30] info     : 'mailman' start:
'/usr/local/etc/rc.d/mailman start'
[PDT Jul 29 16:05:21] error    : 'mailman' service restarted 1 times
within 1 cycles(s) - alert
[PDT Jul 29 16:05:21] error    : Mail: Mailserver response error -- 530
5.7.0 Must issue a STARTTLS command first
[PDT Jul 29 16:05:21] error    : Aborting event
[PDT Jul 29 16:05:21] info     : 'mailman' process is running with pid 18239
[PDT Jul 29 16:05:21] error    : Mail: Mailserver response error -- 530
5.7.0 Must issue a STARTTLS command first
[PDT Jul 29 16:05:21] error    : Aborting event
[PDT Jul 29 16:05:21] info     : 'mailman' process is running after
previous restart timeout (manually recovered?)
[PDT Jul 29 16:05:21] error    : Mail: Mailserver response error -- 530
5.7.0 Must issue a STARTTLS command first
[PDT Jul 29 16:05:21] error    : Aborting event





> 
> Best regards,
> Martin
> 
> 
>> On 30 Jul 2018, at 01:16, David Newman <[email protected]> wrote:
>>
>> 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.