Ad Widget

Collapse

SMTP service is down on vestacp

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kurtobando
    Junior Member
    • Mar 2020
    • 2

    #1

    SMTP service is down on vestacp

    Hello Team,

    I find Zabbix helpful on my first installation, fast and easy to configure from a primary host and a client host. However, I have challenges with the documentations, anyhow, worth having.

    At the moment, I have a vestacp as my client, running in debian 9.
    HTML Code:
    # cat /etc/*release
    PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
    NAME="Debian GNU/Linux"
    VERSION_ID="9"
    VERSION="9 (stretch)"
    VERSION_CODENAME=stretch
    ID=debian
    HOME_URL="https://www.debian.org/"
    SUPPORT_URL="https://www.debian.org/support"
    BUG_REPORT_URL="https://bugs.debian.org/"
    However, I am getting 'SMTP service is down', yet. dovecot.service and exim4.service both were running as expected.

    So far, what I tried was to change the permission of the /var/run/dovecot to root:dovecot, however, I do not see any changes on my end. At this point, I am asking for help on where to isolate this behavior better.

    UPDATE:
    So far, I have successfully tested zabbix_get -s myhostname.com -k net.tcp.service[smtp] and this returns 1 as shown below, on my client
    HTML Code:
    # zabbix_get -s vestacp.kurtobando.com -k net.tcp.service[smtp]
    1
    However, I do not see any progress on my Host Zabbix,

    Finally, found a fix.

    If this is the Zabbix default template for SMTP checks, then the check is a Zabbix "Simple check" which means that the check originates from the Zabbix Server.

    So a better test would be to check that you connect to port 25 from the Zabbix Server, rather than directly from the server being checked itself.

    Most likely, your Ubuntu server is running SMTP but that it might only be listening on the localhost interface for port 25, and not on an external facing interface. Or you have a firewall configured somewhere between the Zabbix Server and the Ubuntu server that is blocking the check from completing correctly.

    You can read more about Zabbix Simple Checks here: https://www.zabbix.com/documentation.../simple_checks
    source: https://www.reddit.com/r/zabbix/comm...t_smtp_status/

    I flipped it to Zabbix Agent and problem solved, is detectable now, see screenshot below:
    Click image for larger version

Name:	Screenshot_1.png
Views:	1072
Size:	36.5 KB
ID:	397698
    Last edited by kurtobando; 17-03-2020, 10:04. Reason: Finally found a fix.
Working...