[GH-ISSUE #1140] Outgoing e-mails from SMTP sender are missing a Date header #804

Closed
opened 2026-05-07 00:27:41 +02:00 by BreizhHardware · 0 comments

Originally created by @pcouy on GitHub (Jun 29, 2024).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1140

🐞 Describe the bug

I'm trying to configure the SMTP sender on my self-hosted ntfy server, with my self-hosted mail server using Docker Mailserver. Mails sent by ntfy get bounced by amavis and are never delivered. The mail server works fine otherwise, and other self-hosted services are able to use it without issues.

💻 Components impacted

ntfy server running with Docker

💡 Screenshots and/or logs

When setting the From field to an address with an inbox, I'm able to get the following error message in the bounce notification

INVALID HEADER

  Missing required header field: "Date"

🔮 Additional context

I'm not familiar with Go but I'll try submitting a PR

Originally created by @pcouy on GitHub (Jun 29, 2024). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1140 :lady_beetle: **Describe the bug** <!-- A clear and concise description of the problem. --> I'm trying to configure the SMTP sender on my self-hosted ntfy server, with my self-hosted mail server using [Docker Mailserver](https://docker-mailserver.github.io/docker-mailserver/latest/). Mails sent by ntfy get bounced by amavis and are never delivered. The mail server works fine otherwise, and other self-hosted services are able to use it without issues. :computer: **Components impacted** <!-- ntfy server, Android app, iOS app, web app --> ntfy server running with Docker :bulb: **Screenshots and/or logs** <!-- If applicable, add screenshots or share logs help explain your problem. To get logs from the ... - ntfy server: Enable "log-level: trace" in your server.yml file - Android app: Go to "Settings" -> "Record logs", then eventually "Copy/upload logs" - web app: Press "F12" and find the "Console" window --> When setting the `From` field to an address with an inbox, I'm able to get the following error message in the bounce notification ``` INVALID HEADER Missing required header field: "Date" ``` :crystal_ball: **Additional context** <!-- Add any other context about the problem here. --> I'm not familiar with Go but I'll try submitting a PR
BreizhHardware 2026-05-07 00:27:41 +02:00
  • closed this issue
  • added the
    🪲 bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#804
No description provided.