Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Self hosted smtp monitor

gbzret4dgbzret4d Member
edited March 2025 in Help

Hi,
what are good self hosted or free smtp monitors? If free I need atleast the possibility to check 20 smtp servers at the same time. The smtp servers are not self hosted so I don't have access to the server or the logs itself.

Thanked by 2nghialele farsighter
«1

Comments

  • DrNutellaDrNutella Member
    edited April 2025

    I only have used Nagios Zabbix and Prometheus. Many of my clients use Prometheus.

    I hear Incinga is good but didn’t try yet

  • MannDudeMannDude Patron Provider, Veteran

    Librenms

  • Why not selfhost UptimeKuma?

    Thanked by 1nghialele
  • jschroederjschroeder Member
    edited April 2025

    tbh i think it would be easier to write a python script that attempts to log in to smtp servers. Or use telnet for a simpler approach.

  • @faleddo said:
    Why not selfhost UptimeKuma?

    Can uptimekuma monitor smtp with login authentication?

  • @hyperblast said:
    for monitoring any service, i recommend @CharityHost_org . he has extensive experience with this.

    So just save some porn mails?

  • @MannDude said:
    Librenms

    Thanks, didn't knew librenms is supporting smtp monitoring

  • MannDudeMannDude Patron Provider, Veteran

    @gbzret4d said:

    @MannDude said:
    Librenms

    Thanks, didn't knew librenms is supporting smtp monitoring

    Sorry, was half awake when I posted this. I read this as SNMP monitor. :D

    Thanked by 2gbzret4d host_c
  • quicksilver03quicksilver03 Member, Host Rep

    If you're OK with self hosting the Prometheus stack (Prometheus, Alertmanager, Blackbox Exporter), the following blackbox-exporter configuration does the job very well:

      smtp:
        prober: "tcp"
        timeout: "30s"
        tcp:
          preferred_ip_protocol: "ip4"
          query_response:
            - expect: "^220 (.*) ESMTP (.+)$"
            - send: "EHLO blackboxexporter.ptrdns.net\r"
            - expect: "^250-STARTTLS"
            - send: "QUIT"
    
  • kaitkait Member

    @MannDude said: Sorry, was half awake when I posted this. I read this as SNMP monitor. :D

    Sammeee XD

    Thanked by 1Alyx
  • @quicksilver03 said:
    If you're OK with self hosting the Prometheus stack (Prometheus, Alertmanager, Blackbox Exporter), the following blackbox-exporter configuration does the job very well:

      smtp:
        prober: "tcp"
        timeout: "30s"
        tcp:
          preferred_ip_protocol: "ip4"
          query_response:
            - expect: "^220 (.*) ESMTP (.+)$"
            - send: "EHLO blackboxexporter.ptrdns.net\r"
            - expect: "^250-STARTTLS"
            - send: "QUIT"
    

    I'm using Blackbox Exporter for all my uptime monitoring and I really like it. You can run a Prometheus stack with Grafana using docker compose, and if you add Node Exporters to all your servers you'll also get their usage data, (for CPU/RAM consumption etc etc etc).

    It's a bit of effort to get it setup but it's well worth it when you have it all up and running.

    Thanked by 1gbzret4d
  • wadhahwadhah Member, Host Rep

    @CloudHopper said:

    @quicksilver03 said:
    If you're OK with self hosting the Prometheus stack (Prometheus, Alertmanager, Blackbox Exporter), the following blackbox-exporter configuration does the job very well:

      smtp:
        prober: "tcp"
        timeout: "30s"
        tcp:
          preferred_ip_protocol: "ip4"
          query_response:
            - expect: "^220 (.*) ESMTP (.+)$"
            - send: "EHLO blackboxexporter.ptrdns.net\r"
            - expect: "^250-STARTTLS"
            - send: "QUIT"
    

    I'm using Blackbox Exporter for all my uptime monitoring and I really like it. You can run a Prometheus stack with Grafana using docker compose, and if you add Node Exporters to all your servers you'll also get their usage data, (for CPU/RAM consumption etc etc etc).

    It's a bit of effort to get it setup but it's well worth it when you have it all up and running.

    You also need 32Tb ram for this setup :D

    Very lightweight

    Thanked by 2gbzret4d host_c
  • @wadhah said:

    @CloudHopper said:

    @quicksilver03 said:
    If you're OK with self hosting the Prometheus stack (Prometheus, Alertmanager, Blackbox Exporter), the following blackbox-exporter configuration does the job very well:

      smtp:
        prober: "tcp"
        timeout: "30s"
        tcp:
          preferred_ip_protocol: "ip4"
          query_response:
            - expect: "^220 (.*) ESMTP (.+)$"
            - send: "EHLO blackboxexporter.ptrdns.net\r"
            - expect: "^250-STARTTLS"
            - send: "QUIT"
    

    I'm using Blackbox Exporter for all my uptime monitoring and I really like it. You can run a Prometheus stack with Grafana using docker compose, and if you add Node Exporters to all your servers you'll also get their usage data, (for CPU/RAM consumption etc etc etc).

    It's a bit of effort to get it setup but it's well worth it when you have it all up and running.

    You also need 32Tb ram for this setup :D

    Very lightweight

    I'm monitoring 30+ servers on a 2C/4G VPS using this stack. In the last 24hrs CPU consumption hasn't exceeded 30%, (averaging less than 10%), RAM consumption is stable at 2.7G and Network I/O averages 750Kbps, (maxing out at ~1Mbps)

  • wadhahwadhah Member, Host Rep

    @CloudHopper said:

    @wadhah said:

    @CloudHopper said:

    @quicksilver03 said:
    If you're OK with self hosting the Prometheus stack (Prometheus, Alertmanager, Blackbox Exporter), the following blackbox-exporter configuration does the job very well:

      smtp:
        prober: "tcp"
        timeout: "30s"
        tcp:
          preferred_ip_protocol: "ip4"
          query_response:
            - expect: "^220 (.*) ESMTP (.+)$"
            - send: "EHLO blackboxexporter.ptrdns.net\r"
            - expect: "^250-STARTTLS"
            - send: "QUIT"
    

    I'm using Blackbox Exporter for all my uptime monitoring and I really like it. You can run a Prometheus stack with Grafana using docker compose, and if you add Node Exporters to all your servers you'll also get their usage data, (for CPU/RAM consumption etc etc etc).

    It's a bit of effort to get it setup but it's well worth it when you have it all up and running.

    You also need 32Tb ram for this setup :D

    Very lightweight

    I'm monitoring 30+ servers on a 2C/4G VPS using this stack. In the last 24hrs CPU consumption hasn't exceeded 30%, (averaging less than 10%), RAM consumption is stable at 2.7G and Network I/O averages 750Kbps, (maxing out at ~1Mbps)

    I mean yeah I was just exaggerating, but any Prometheus stack will be very heavy compared to the rest of the options.

    Although it is worth it, grafana is pretty

  • gbzret4dgbzret4d Member
    edited April 2025

    @MannDude said:
    Librenms

    Thanks, didn't knew librenms is supporting smtp monitoring> @COLBYLICIOUS said:

    Not free to monitor 20 and more smtp servers

  • @wadhah said:

    @CloudHopper said:

    @wadhah said:

    @CloudHopper said:

    @quicksilver03 said:
    If you're OK with self hosting the Prometheus stack (Prometheus, Alertmanager, Blackbox Exporter), the following blackbox-exporter configuration does the job very well:

      smtp:
        prober: "tcp"
        timeout: "30s"
        tcp:
          preferred_ip_protocol: "ip4"
          query_response:
            - expect: "^220 (.*) ESMTP (.+)$"
            - send: "EHLO blackboxexporter.ptrdns.net\r"
            - expect: "^250-STARTTLS"
            - send: "QUIT"
    

    I'm using Blackbox Exporter for all my uptime monitoring and I really like it. You can run a Prometheus stack with Grafana using docker compose, and if you add Node Exporters to all your servers you'll also get their usage data, (for CPU/RAM consumption etc etc etc).

    It's a bit of effort to get it setup but it's well worth it when you have it all up and running.

    You also need 32Tb ram for this setup :D

    Very lightweight

    I'm monitoring 30+ servers on a 2C/4G VPS using this stack. In the last 24hrs CPU consumption hasn't exceeded 30%, (averaging less than 10%), RAM consumption is stable at 2.7G and Network I/O averages 750Kbps, (maxing out at ~1Mbps)

    I mean yeah I was just exaggerating, but any Prometheus stack will be very heavy compared to the rest of the options.

    Although it is worth it, grafana is pretty

    Too much and too complicated for me. Just want to create my own statistic for years for all email providers I'm using just for myself.

  • adlyadly Veteran

    @gbzret4d said:

    @wadhah said:

    @CloudHopper said:

    @wadhah said:

    @CloudHopper said:

    @quicksilver03 said:
    If you're OK with self hosting the Prometheus stack (Prometheus, Alertmanager, Blackbox Exporter), the following blackbox-exporter configuration does the job very well:

      smtp:
        prober: "tcp"
        timeout: "30s"
        tcp:
          preferred_ip_protocol: "ip4"
          query_response:
            - expect: "^220 (.*) ESMTP (.+)$"
            - send: "EHLO blackboxexporter.ptrdns.net\r"
            - expect: "^250-STARTTLS"
            - send: "QUIT"
    

    I'm using Blackbox Exporter for all my uptime monitoring and I really like it. You can run a Prometheus stack with Grafana using docker compose, and if you add Node Exporters to all your servers you'll also get their usage data, (for CPU/RAM consumption etc etc etc).

    It's a bit of effort to get it setup but it's well worth it when you have it all up and running.

    You also need 32Tb ram for this setup :D

    Very lightweight

    I'm monitoring 30+ servers on a 2C/4G VPS using this stack. In the last 24hrs CPU consumption hasn't exceeded 30%, (averaging less than 10%), RAM consumption is stable at 2.7G and Network I/O averages 750Kbps, (maxing out at ~1Mbps)

    I mean yeah I was just exaggerating, but any Prometheus stack will be very heavy compared to the rest of the options.

    Although it is worth it, grafana is pretty

    Too much and too complicated for me. Just want to create my own statistic for years for all email providers I'm using just for myself.

    In that case, are you looking for actual SMTP monitoring or would monitoring SMTP port(s) be sufficient? There's likely to be many more options if you just want to check the service/port is online.

  • wadhahwadhah Member, Host Rep

    @gbzret4d said:

    @wadhah said:

    @CloudHopper said:

    @wadhah said:

    @CloudHopper said:

    @quicksilver03 said:
    If you're OK with self hosting the Prometheus stack (Prometheus, Alertmanager, Blackbox Exporter), the following blackbox-exporter configuration does the job very well:

      smtp:
        prober: "tcp"
        timeout: "30s"
        tcp:
          preferred_ip_protocol: "ip4"
          query_response:
            - expect: "^220 (.*) ESMTP (.+)$"
            - send: "EHLO blackboxexporter.ptrdns.net\r"
            - expect: "^250-STARTTLS"
            - send: "QUIT"
    

    I'm using Blackbox Exporter for all my uptime monitoring and I really like it. You can run a Prometheus stack with Grafana using docker compose, and if you add Node Exporters to all your servers you'll also get their usage data, (for CPU/RAM consumption etc etc etc).

    It's a bit of effort to get it setup but it's well worth it when you have it all up and running.

    You also need 32Tb ram for this setup :D

    Very lightweight

    I'm monitoring 30+ servers on a 2C/4G VPS using this stack. In the last 24hrs CPU consumption hasn't exceeded 30%, (averaging less than 10%), RAM consumption is stable at 2.7G and Network I/O averages 750Kbps, (maxing out at ~1Mbps)

    I mean yeah I was just exaggerating, but any Prometheus stack will be very heavy compared to the rest of the options.

    Although it is worth it, grafana is pretty

    Too much and too complicated for me. Just want to create my own statistic for years for all email providers I'm using just for myself.

    Honestly it might be your best option if you want the most customizable option. I understand it can be rough at the start (their docs SUCK) but you just set it and forget it after the first setup, it's prod ready and very resilient .

  • @wadhah said:

    @gbzret4d said:

    @wadhah said:

    @CloudHopper said:

    @wadhah said:

    @CloudHopper said:

    @quicksilver03 said:
    If you're OK with self hosting the Prometheus stack (Prometheus, Alertmanager, Blackbox Exporter), the following blackbox-exporter configuration does the job very well:

      smtp:
        prober: "tcp"
        timeout: "30s"
        tcp:
          preferred_ip_protocol: "ip4"
          query_response:
            - expect: "^220 (.*) ESMTP (.+)$"
            - send: "EHLO blackboxexporter.ptrdns.net\r"
            - expect: "^250-STARTTLS"
            - send: "QUIT"
    

    I'm using Blackbox Exporter for all my uptime monitoring and I really like it. You can run a Prometheus stack with Grafana using docker compose, and if you add Node Exporters to all your servers you'll also get their usage data, (for CPU/RAM consumption etc etc etc).

    It's a bit of effort to get it setup but it's well worth it when you have it all up and running.

    You also need 32Tb ram for this setup :D

    Very lightweight

    I'm monitoring 30+ servers on a 2C/4G VPS using this stack. In the last 24hrs CPU consumption hasn't exceeded 30%, (averaging less than 10%), RAM consumption is stable at 2.7G and Network I/O averages 750Kbps, (maxing out at ~1Mbps)

    I mean yeah I was just exaggerating, but any Prometheus stack will be very heavy compared to the rest of the options.

    Although it is worth it, grafana is pretty

    Too much and too complicated for me. Just want to create my own statistic for years for all email providers I'm using just for myself.

    Honestly it might be your best option if you want the most customizable option. I understand it can be rough at the start (their docs SUCK) but you just set it and forget it after the first setup, it's prod ready and very resilient .

    I will set up a test server.... I've got enough idling server. I'm just unsure how much space it will need if I'm really trying to run it for years...

  • @adly said:

    @gbzret4d said:

    @wadhah said:

    @CloudHopper said:

    @wadhah said:

    @CloudHopper said:

    @quicksilver03 said:
    If you're OK with self hosting the Prometheus stack (Prometheus, Alertmanager, Blackbox Exporter), the following blackbox-exporter configuration does the job very well:

      smtp:
        prober: "tcp"
        timeout: "30s"
        tcp:
          preferred_ip_protocol: "ip4"
          query_response:
            - expect: "^220 (.*) ESMTP (.+)$"
            - send: "EHLO blackboxexporter.ptrdns.net\r"
            - expect: "^250-STARTTLS"
            - send: "QUIT"
    

    I'm using Blackbox Exporter for all my uptime monitoring and I really like it. You can run a Prometheus stack with Grafana using docker compose, and if you add Node Exporters to all your servers you'll also get their usage data, (for CPU/RAM consumption etc etc etc).

    It's a bit of effort to get it setup but it's well worth it when you have it all up and running.

    You also need 32Tb ram for this setup :D

    Very lightweight

    I'm monitoring 30+ servers on a 2C/4G VPS using this stack. In the last 24hrs CPU consumption hasn't exceeded 30%, (averaging less than 10%), RAM consumption is stable at 2.7G and Network I/O averages 750Kbps, (maxing out at ~1Mbps)

    I mean yeah I was just exaggerating, but any Prometheus stack will be very heavy compared to the rest of the options.

    Although it is worth it, grafana is pretty

    Too much and too complicated for me. Just want to create my own statistic for years for all email providers I'm using just for myself.

    In that case, are you looking for actual SMTP monitoring or would monitoring SMTP port(s) be sufficient? There's likely to be many more options if you just want to check the service/port is online.

    SMTP ports would be enough

  • @gbzret4d said:

    SMTP ports would be enough

    Then Uptime Kuma will probably be enough.

    Thanked by 1adly
  • @rcy026 said:

    @gbzret4d said:

    SMTP ports would be enough

    Then Uptime Kuma will probably be enough.

    What would you suggest if checking the port would not be sufficient?

  • @gbzret4d said:

    @rcy026 said:

    @gbzret4d said:

    SMTP ports would be enough

    Then Uptime Kuma will probably be enough.

    What would you suggest if checking the port would not be sufficient?

    If you wanna go all in, for monitoring I would go with Nagios, Icinga or CheckMK, store the data in a Prometheus or Influx and visualize it with Grafana.
    I would monitor the port itself with a simple tcp check and then make a service that sends an email using the specified smtp and checks that the email is delivered all the way via pop or imap.
    If it was my smtp server I would keep track of the vitals with node exporter.

    Thanked by 1gbzret4d
  • oplinkoplink Member, Patron Provider

    Check out librenms, it can work with Grafana/Prometheus if you want too

    librenms is very easy to get setup too

    Thanked by 1gbzret4d
  • gbzret4dgbzret4d Member
    edited April 2025

    @oplink said:
    Check out librenms, it can work with Grafana/Prometheus if you want too

    librenms is very easy to get setup too

    I already tried librenms and the learning curve is not that hard. I didn't knew that smtp monitoring is possible with librenms.

  • Ansible?

    There's a learning curve, like with most things, but once you take control, you can use it for pretty much anything! :D

    Thanked by 1gbzret4d
  • You might want to check out tools like SMTPDiag or MailHogm.

    Thanked by 1gbzret4d
  • @greenhost_cloud said:
    You might want to check out tools like SMTPDiag or MailHogm.

    Thanks, will take a look at both. Never heard about them.

Sign In or Register to comment.