From 8cdc7138fe75a8f06c5e992e439a5a58ac262f65 Mon Sep 17 00:00:00 2001 From: f Date: Wed, 19 Apr 2023 14:35:47 -0300 Subject: [PATCH] feat: configurable smtp --- zeroconf.conf | 2 +- zeroconf.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/zeroconf.conf b/zeroconf.conf index 6ecefda..5c9884c 100644 --- a/zeroconf.conf +++ b/zeroconf.conf @@ -1,5 +1,5 @@ set mmonit http://@@MMONIT@@/collector -set mailserver postfix port 25 using hostname @@HOSTNAME@@ +set mailserver @@POSTFIX@@ port 25 using hostname @@HOSTNAME@@ set alert @@EMAIL@@ diff --git a/zeroconf.sh b/zeroconf.sh index 79b64f3..6b40400 100755 --- a/zeroconf.sh +++ b/zeroconf.sh @@ -13,6 +13,7 @@ sed -re "s/@@EMAIL@@/${EMAIL}/" \ -e "s/@@HOSTNAME@@/${EMAIL_FROM#*@}/" \ -e "s/@@MMONIT@@/${MMONIT}/" \ -e "s/@@CREDENTIALS@@/${CREDENTIALS}/" \ + -e "s/@@POSTFIX@@/${POSTFIX:-postfix}/" \ /etc/zeroconf.conf > /etc/monit.d/zeroconf.conf monit -t