binwiederhier / ntfy

Send push notifications to your phone or desktop using PUT/POST
https://ntfy.sh
Apache License 2.0
18.57k stars 731 forks source link

Outgoing e-mails from SMTP sender are missing a Date header #1140

Closed pcouy closed 1 month ago

pcouy commented 4 months ago

:lady_beetle: 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.

:computer: Components impacted

ntfy server running with Docker

:bulb: 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"

:crystal_ball: Additional context

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