feat: configurable smtp

This commit is contained in:
f 2023-04-19 14:35:47 -03:00
parent 1eae4208e8
commit 8cdc7138fe
2 changed files with 2 additions and 1 deletions

View file

@ -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@@

View file

@ -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