notify/smtp.sh: add --crlf so curl sends CRLF line endings

Postfix with smtpd_forbid_bare_newline (default hardening since 3.9,
after SMTP smuggling) rejects the message with
"521 5.5.2 Error: bare <LF> received". RFC 5321 requires CRLF.
The python sender is unaffected (smtplib already emits CRLF).

fix https://github.com/acmesh-official/acme.sh/issues/7104
This commit is contained in:
neil 2026-07-10 10:38:52 +08:00
parent bed15ba844
commit 83b52e0cd7

View file

@ -200,6 +200,7 @@ _smtp_send_curl() {
set -- "$@" \
--upload-file - \
--crlf \
--mail-from "$SMTP_FROM" \
--max-time "$SMTP_TIMEOUT"