fix(pmo): force STARTTLS on submission relay (587), stage config template

This commit is contained in:
2026-08-29 06:32:04 -05:00
parent 03e6f1444a
commit 817bc06458
+1 -1
View File
@@ -28,7 +28,7 @@ set -a; . "$CONF"; set +a
send_one() {
printf 'From: %s\nTo: %s\nSubject: MOPAC %s\nContent-Type: text/plain; charset=UTF-8\n\n%s\n' \
"$PING_FROM" "$DEST" "$SEV" "$1" \
| curl -sS --max-time 30 --url "smtp://$PING_SMTP_HOST" \
| curl -sS --max-time 30 --ssl-reqd --url "smtp://$PING_SMTP_HOST" \
--mail-from "$PING_FROM" --mail-rcpt "$DEST" \
-u "$PING_SMTP_USER:$PING_SMTP_PASS" \
-T - && return 0 || return 1