feat: configurable smtp
This commit is contained in:
parent
1eae4208e8
commit
8cdc7138fe
2 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
set mmonit http://@@MMONIT@@/collector
|
set mmonit http://@@MMONIT@@/collector
|
||||||
set mailserver postfix port 25 using hostname @@HOSTNAME@@
|
set mailserver @@POSTFIX@@ port 25 using hostname @@HOSTNAME@@
|
||||||
|
|
||||||
set alert @@EMAIL@@
|
set alert @@EMAIL@@
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,7 @@ sed -re "s/@@EMAIL@@/${EMAIL}/" \
|
||||||
-e "s/@@HOSTNAME@@/${EMAIL_FROM#*@}/" \
|
-e "s/@@HOSTNAME@@/${EMAIL_FROM#*@}/" \
|
||||||
-e "s/@@MMONIT@@/${MMONIT}/" \
|
-e "s/@@MMONIT@@/${MMONIT}/" \
|
||||||
-e "s/@@CREDENTIALS@@/${CREDENTIALS}/" \
|
-e "s/@@CREDENTIALS@@/${CREDENTIALS}/" \
|
||||||
|
-e "s/@@POSTFIX@@/${POSTFIX:-postfix}/" \
|
||||||
/etc/zeroconf.conf > /etc/monit.d/zeroconf.conf
|
/etc/zeroconf.conf > /etc/monit.d/zeroconf.conf
|
||||||
|
|
||||||
monit -t
|
monit -t
|
||||||
|
|
Loading…
Reference in a new issue