[GH-ISSUE #1723] Request Option to Set SMTP HELO | EHLO Host Name #1199

Open
opened 2026-05-07 01:00:46 +02:00 by BreizhHardware · 0 comments

Originally created by @aque on GitHub (May 3, 2026).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1723

💡 Idea

I am requesting an smtp-sender-hostname option that sets the HELO or EHLO host name using func (*Client) Hello. The current setup uses localhost which generates the following error on SMTP servers that require valid names:

May 02 20:37:09 host ntfy[80147]: WARN Unable to send email to user@domain.tld: 504 5.5.2 <localhost>: Helo command rejected: need fully-qualified hostname (...)

💻 Target components

This enhancement is added to server.yml.

Originally created by @aque on GitHub (May 3, 2026). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1723 <!-- Before you submit, consider asking on Discord/Matrix instead. You'll usually get an answer sooner, and there are more people there to help! - Discord: https://discord.gg/cT7ECsZj9w - Matrix: https://matrix.to/#/#ntfy:matrix.org / https://matrix.to/#/#ntfy-space:matrix.org --> :bulb: **Idea** <!-- Share your thoughts; try to be detailed if you can --> I am requesting an `smtp-sender-hostname` option that sets the `HELO` or `EHLO` host name using [`func (*Client) Hello`](https://pkg.go.dev/net/smtp#Client.Hello). The current setup uses `localhost` which generates the following error on SMTP servers that require valid names: ``` May 02 20:37:09 host ntfy[80147]: WARN Unable to send email to user@domain.tld: 504 5.5.2 <localhost>: Helo command rejected: need fully-qualified hostname (...) ``` :computer: **Target components** <!-- Where should this feature/enhancement be added? --> <!-- e.g. ntfy server, Android app, iOS app, web app --> This enhancement is added to `server.yml`.
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#1199
No description provided.