From 6a4672bb371f538debd6157b22e0ac79f548653a Mon Sep 17 00:00:00 2001 From: thorstenspille Date: Sun, 23 Jun 2024 17:04:19 +0200 Subject: [PATCH] Fix notifications --- postinstall | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/postinstall b/postinstall index b54e57b..ab2289d 100755 --- a/postinstall +++ b/postinstall @@ -561,7 +561,12 @@ ask_mail_config(){ set_notification() { if [ $mailconfig -gt 0 ]; then cat << EOF > /etc/pve/notifications.cfg -smtp: $smtphost +matcher: default-matcher + comment Route all notifications to mail-to-root + mode all + target smtp-notification + +smtp: smtp-notification mailto-user root@pam mailto $recipientaddress author $displayname @@ -576,7 +581,7 @@ EOF EOF cat << EOF > /etc/pve/priv/notifications.cfg -smtp: $smtphost +smtp: smtp-notification password $password EOF fi