@cryptotaxi247 / infra / commits / 520fbc44

fix: don't assume mailserver greeting includes "ESMTP"

For Simple Nixos Mailserver, it does: $ nc umbriel.nixos.org 25 220 umbriel.nixos.org ESMTP NO UCE But for ImprovMX, it doesn't: $ nc mx2.improvmx.com 25 220 mx2.improvmx.com Welcome to ImprovMX mail server v3. - ImprovMX v2024.06.06 I've verified this updated probe does succeed against our ImprovMX mailserer by deploying it to Prometheus in my homelab.

Jeremy Fleischman committed Mar 8, 2025 at 21:33 UTC 520fbc4494331a022219572d6a35b9b60874f063
1 file changed +1 -1
build/pluto/prometheus/exporters/blackbox.nix
+1 -1
@@ -78,7 +78,7 @@ in
78 timeout = "5s";
79 tcp = {
80 query_response = [
81 - { expect = "^220 ([^ ]+) ESMTP (.+)$"; }
81 + { expect = "^220"; }
82 { send = "EHLO prober\r"; }
83 { expect = "^250-STARTTLS"; }
84 { send = "STARTTLS\r"; }