diff --git a/setup-email-pve.sh b/setup-email-pve.sh index 3a85203..178445d 100644 --- a/setup-email-pve.sh +++ b/setup-email-pve.sh @@ -5,31 +5,23 @@ CFG="/etc/pve/notifications.cfg" BACKUP="/etc/pve/notifications.cfg.bak.$(date +%Y%m%d%H%M%S)" cp "$CFG" "$BACKUP" -echo "Backup angelegt: $BACKUP" +echo "Backup erstellt: $BACKUP" -read -rp "Author (z.B. MH-PVE02 | MAIERHOME H33): " AUTHOR -read -rp "From-Address (z.B. MH-PVE02@vmd55888.de): " FROMADDR -read -rp "SMTP Server (z.B. mail.vmd55888.de): " SERVER -read -rp "SMTP Port (z.B. 587): " PORT -read -rp "Mode (starttls/ssl/none): " MODE -read -rp "Username: " USERNAME -read -rp "Mailto Adresse: " MAILTO - -cat > "$CFG" < "$CFG" << 'EOF' sendmail: mail-to-root comment Send mails to root@pam's email address disable false mailto-user root@pam smtp: mailout - author $AUTHOR - from-address $FROMADDR - mailto $MAILTO + author MH-PVE02 | MAIERHOME H33 + from-address MH-PVE02@vmd55888.de + mailto pbs-dashboard@mail.vmd55888.de mailto-user root@pam - mode $MODE - port $PORT - server $SERVER - username $USERNAME + mode starttls + port 587 + server mail.vmd55888.de + username mailout matcher: default-matcher comment Route all notifications to mail-to-root @@ -41,4 +33,4 @@ policy: default targets mail-to-root EOF -echo "Config geschrieben. Bitte Passwort manuell in der WebUI setzen." +echo "Config geschrieben. Passwort bitte manuell in WebUI setzen."