From c5fdb7309f445f59e4de3b65e77590cca13de388 Mon Sep 17 00:00:00 2001 From: Mechiel Lukkien Date: Mon, 20 Mar 2023 13:25:38 +0100 Subject: [PATCH] document that mox sendmail -t does not treat cc and bcc headers specially --- doc.go | 4 +++- sendmail.go | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/doc.go b/doc.go index bf43b5e..901d30e 100644 --- a/doc.go +++ b/doc.go @@ -633,7 +633,9 @@ If submitting an email fails, it is added to a directory moxsubmit.failures in the user's home directory. Most flags are ignored to fake compatibility with other sendmail -implementations. A single recipient is required, or the tflag. +implementations. A single recipient or the -t flag with a To-header is required. +With the -t flag, Cc and Bcc headers are not handled specially, so Bcc is not +removed and the addresses do not receive the email. /etc/moxsubmit.conf should be group-readable and not readable by others and this binary should be setgid that group: diff --git a/sendmail.go b/sendmail.go index be3d6ab..41888fc 100644 --- a/sendmail.go +++ b/sendmail.go @@ -39,7 +39,9 @@ If submitting an email fails, it is added to a directory moxsubmit.failures in the user's home directory. Most flags are ignored to fake compatibility with other sendmail -implementations. A single recipient is required, or the tflag. +implementations. A single recipient or the -t flag with a To-header is required. +With the -t flag, Cc and Bcc headers are not handled specially, so Bcc is not +removed and the addresses do not receive the email. /etc/moxsubmit.conf should be group-readable and not readable by others and this binary should be setgid that group: