E-mail group addresses such as undisclosed-recipients:; or a group:<[email protected]>,<[email protected]>; are valid forms of addressing according to RFC 5322, see for instance the illustrative example in Appendix A.1.3. In Sendmail, this is called "list syntax". Minimal working example (for Bash):
echo "Date: $(date --rfc-2822)
From: <[email protected]>
To: a group:<[email protected]>,<[email protected]>;
" | sendmail -t
However, trying to submit messages with empty groups leads to error List:; syntax illegal for recipient addresses. Minimal example:
echo "Date: $(date --rfc-2822)
From: <[email protected]>
To: undisclosed-recipients:;
Bcc: [email protected]
" | sendmail -t
returns
undisclosed-recipients:;... List:; syntax illegal for recipient addresses
How can Sendmail be configured to support empty RFC 5322 group addresses when submitting messages via sendmail -t?