What am I missing...
Given: Linux-stack based email server system (hosted) with webmail component. Various email clients and other webmail systems involved and tested with this.
We are distributing emails via distribution lists using the webmail client. The mail system sends emails similar to the following example (copy from source email header). Where organisation
is the name of a distribution list:
Date: Sat, 20 Apr 2024 18:35:45 +0200
Message-ID: <[email protected]>
From: [email protected]
To: organisation: [email protected], [email protected];
Subject: here goes the subject
So far so good, emails are delivered OK (even to GMX mailboxes) and no "undeliverable email" message is received.
Issue
Next replying "to all" from certain email clients or webmail systems (e. g. GMX webmail) are resulting in obviously misformed headers (while using e. g. Thunderbird produces a correct format). Those replies are rejected by certain systems; example message:
Your e-mails have been rejected by our mail system because the information provided in the e-mail header does not comply with the specifications in RFC 5322 and RFC 2047. The header field "To" is syntactically not correct.
The email header in question looks like this (pls. pay particular attention to To: line):
Received: from ...
Reply-To: ...
From: <[email protected]>
To: <[email protected]>, <organisation: [email protected]>;
References: <[email protected]>
In-Reply-To: <[email protected]>
Subject: AW: here goes the subject
Obviously certain mail clients are interpreting the supplied name of the distribution list as part of the email address of the first addressee.
The questions at hand are: (1) Who is the culprit? (2) What is the correct format? (3) Is the server distributing the original message not following certain RFC's or is this a failure in a mail client or mail system?
===== final edit =====
This apparently is a bug in Horde. Ticket raised.
group = display-name ":" [group-list] ";" [CFWS] , group-list=mailbox-list
a mailbox can consist of a name-addr which isǹame <addr spec>
or simply the addr-spec .. which consist of a localpart and "@" and domain. the localpart can be a quoted string or an dot-atom.... a dot-atom consist of an atext .. but colon is not allowed for atext. so the first address must start after colon. I'm no expert.To: organisation: <[email protected]>, <[email protected]>;CRLF
sendmail
? If so,msmtp
could help significantly.