<div style="font-family: arial, helvetica,sans-serif; font-size: 12pt; color: #000000;">Hi there,</div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 12pt; color: #000000;"> </div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 12pt; color: #000000;">I can confirm this behavior. A few months ago I introduced a milter which is checking for multiple headers when the RFC says that there just should be one of them For example "Message-Id".</div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 12pt; color: #000000;"> </div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 12pt; color: #000000;">I found the described problem in an email coming from Alibaba, which had an invalid "Message-Id" header. It didn't contain an "@" sign or similar. It was RFC-invalid.</div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 12pt; color: #000000;"> </div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 12pt; color: #000000;">This email was sent from Alibaba to a German email provider. There was a redirect at that email provider, pointing to my mailserver.</div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 12pt; color: #000000;"> </div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 12pt; color: #000000;">My server rejected the email because there were 2 "Message-Id" headers: The original invalid "Message-Id" header from Alibaba, and a new "Message-Id" header from the German provider, which seems to have been added during the redirect. There were "Dovecot-sieve" headers in that mail, so my guess was that it happened because of Dovecot-sieve/pigeonhole implementation.</div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 12pt; color: #000000;"> </div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 12pt; color: #000000;">I contacted the email provider, asking for help. Asking if it really is a bug in pigeonhole (or maybe some other system at that provider, who knows). And I contacted Alibaba, so they fix the invalid "Message-Id". I got responses from both, but until now, as far as I can see, it has not been fixed.</div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 12pt; color: #000000;"> </div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 12pt; color: #000000;">The best fix would be (if it really is a bug in pigeonhole), if pigeonhole fixes the problem, then it's fixed for all users of Dovecot. I guess Alibaba is not the only sender with an invalid "Message-ID" header, but that's the only one I saw.</div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 12pt; color: #000000;"> </div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 12pt; color: #000000;">Michael</div>
<div style="font-family: arial, helvetica,sans-serif; font-size: 12pt; color: #000000;"> </div>
<div><br /><br />Am 01-Oct-2022 14:00:45 +0200 schrieb sriccio@swisscenter.com:</div>
<blockquote style="margin-left: 0; padding-left: 5px; border-left: 2px solid navy;">>You wrote in the original email the message was rejected. Sorry I don't have login access to my gmail test account anymore since the google @#$%@#$% wanted to have me add a phone number.<br /><br />In my original post I said that gmail was rejecting the forwards because <br />of duplicate headers, and that the duplicate header seems to be a <br />Message-ID added by pigeonhole when it's "not happy" with the original <br />mail Message-ID.<br /><br />I probably failed to explain the issue clearly and sorry for that.<br /><br />Thank you anyway for trying to help :)<br /><br /></blockquote>