Monit alert not working using smtp

Issue #729 closed
Former user created an issue

Hello Team,

I have configured SMTP in monitrc.

Below is my configuration

set mailserver mail.callsoft.be port 465
    username "softswich@domain.be" password "fdlld123#"
    using TLSV1 with timeout 30 seconds

Getting below error on monit.log

[UTC Mar 27 11:40:46] error    : Sendmail: Error receiving data from the mailserver 'mail.domain.be' -- Resource temporarily unavailable
[UTC Mar 27 11:40:46] error    : Sendmail: Error receiving data from the mailserver 'mail.domain.be' -- Resource temporarily unavailable


# monit -V
This is Monit version 5.9

Comments (6)

  1. Tildeslash repo owner

    Hello,

    the error seems to be because of timeout. Please try to upgrade monit ... i'm not able to reproduce the error with the current version (getting authentication error => connection works), excerpt from debug mode (-v option):

    Trying to send mail via mail.callsoft.be:465
    Mail: Mailserver response error -- 535 5.7.8 Error: authentication failed: authentication failure
    
  2. Ketan Kothari

    Hello,

    I have installed monit on debian 8 (jessie) using apt-get install monit and its installed monit version 5.9

    monit -V

    This is Monit version 5.9 Copyright (C) 2001-2014 Tildeslash Ltd. All Rights Reserved.

    Can you please tell me which version you want me to install on server ?

  3. Massimo Sala

    Ketan, I am just a monit user.

    On our servers I monit smtp in this way, using a little python script:

    #!
    
    check program sendmail with path "/usr/local/bin/sendmail.py --server smtp.xyz.local --to-addr=massimo.sala@xyz.it --subject test --dry-run"
        every "* 07-23 * * *"
        if status != 0 then alert
    

    If you want to try, I can send you the python script in source code. It is small, easy to read and understand.

    Write to massimo.sala.71 at gmail.com

    Note: I am not offering consulting, but only a little help between we users (and to alleviate the monit support team).

  4. Log in to comment