#167 Newsletter (and other emails) are missing "Date" header

Open
opened 1 month ago by momar · 2 comments
momar commented 1 month ago

Amavis adds the header X-Amavis-Alert: BAD HEADER SECTION, Missing required header field: "Date", and Thunderbird shows all emails received from Codeberg as being received today if the email account is recreated:

grafik

This affects newsletter and confirmation mails only, not emails from Gitea.

I don't know what the current email infrastructure looks like, but maybe it'd be worth it to host something like https://listmonk.app/ for the newsletter, I'm pretty sure that tracking can be relatively easily disabled if we don't want that.

Amavis adds the header `X-Amavis-Alert: BAD HEADER SECTION, Missing required header field: "Date"`, and Thunderbird shows all emails received from Codeberg as being received today if the email account is recreated: ![grafik](/attachments/b21dd289-6034-4e5f-815b-ae3821b3d8e5) This affects newsletter and confirmation mails only, not emails from Gitea. I don't know what the current email infrastructure looks like, but maybe it'd be worth it to host something like https://listmonk.app/ for the newsletter, I'm pretty sure that tracking can be relatively easily disabled if we don't want that.
hw commented 1 month ago
Owner

Hello @momar

we had a similar report before and it is somewhat weird. We checked back then (and I verified this just right now) that Date-headers are set when emails are sent and are part of the mail when it hits my inbox (no matter what email client and also on large web providers).

For the record, the header in the last newsletter is this:

Date: Wed, 11 Mar 2020 05:18:50 -0700 (PDT)

What incoming email filter are you using that might strip this header? Your report is mentioning Amavis, anything else? Can you check the input of those filters?

All these emails are sent with Python's smtplib.SMTP.sendmail().

Hello @momar we had a similar report before and it is somewhat weird. We checked back then (and I verified this just right now) that Date-headers are set when emails are sent and are part of the mail when it hits my inbox (no matter what email client and also on large web providers). For the record, the header in the last newsletter is this: > Date: Wed, 11 Mar 2020 05:18:50 -0700 (PDT) What incoming email filter are you using that might strip this header? Your report is mentioning Amavis, anything else? Can you check the input of those filters? All these emails are sent with Python's smtplib.SMTP.sendmail().
hw commented 1 month ago
Owner

Related to issue #62? We need more information

Related to issue https://codeberg.org/Codeberg/Community/issues/62? We need more information
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
Cancel
Save
There is no content yet.