Monit reports that no email server is running

Discussion in 'Installation/Configuration' started by concept21, Aug 2, 2021.

  1. concept21

    concept21 Active Member

    Hello,
    I have installed ISPConfig v3.2.5 on an Ubuntu 20.04.2 with the host defined as ispc.example.com

    Monit reports that my system does not have a mail server. I check my postfix configuration, main.cf shows:
    myorigin = /etc/mailname
    mydestination = ispc.example.com, localhost, localhost.localdomain
    relayhost =

    /etc/mailname contains one line:
    mail.example.com

    Also, I have defined MX Record on my ISP's DNS as:
    mail.example.com


    Now, my question is:
    How do I correct my setting to produce a email server recognised by Monit? :rolleyes:
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Is Monit reporting host does not have mail server or mail server is not running?
    What shows
    Code:
    # systemctl --state=failed
    Have you checked how you installed Monit and Monit configuration?
     
  3. concept21

    concept21 Active Member

    Hello Taleman,
    Postfix is running. It is Monit's report:
    Mail: No mail servers are defined -- please see the 'set mailserver' statement in the manual
     
  4. concept21

    concept21 Active Member

    Its okay after I uncomment these in monitrc:
    set mailserver localhost :D
     
    ahrasis likes this.
  5. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    Btw, that is not a service check monit is performing, ie. it is not saying your mail server is down, that is a setting for where monit should connect to send notifications.
     
    concept21 likes this.

Share This Page