[GH-ISSUE #426] Rundeck - publish via email - EOF #333

Closed
opened 2026-05-07 00:23:11 +02:00 by BreizhHardware · 7 comments

Originally created by @demogorgonz on GitHub (Oct 5, 2022).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/426

Diagnostic-Code: smtp; 554 5.0.0 Error: transaction failed, blame it on the
    weather: EOF

Seems like it is parsing problem for smtp server.
To replicate problem, setup email notification on any job status to send email to ntfy-$channel@ntfy.sh
For example i have tried public instance and sent email to ntfy-aaab@ntfy.sh

Originally created by @demogorgonz on GitHub (Oct 5, 2022). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/426 ``` Diagnostic-Code: smtp; 554 5.0.0 Error: transaction failed, blame it on the weather: EOF ``` Seems like it is parsing problem for smtp server. To replicate problem, setup email notification on any job status to send email to ntfy-$channel@ntfy.sh For example i have tried public instance and sent email to `ntfy-aaab@ntfy.sh`
Author
Owner

@binwiederhier commented on GitHub (Oct 5, 2022):

Emails from other systems work, so I wouldn't say it's necessarily a problem on ntfy side. Can you enable TRACE mode in ntfy and capture the full email?

<!-- gh-comment-id:1268356595 --> @binwiederhier commented on GitHub (Oct 5, 2022): Emails from other systems work, so I wouldn't say it's necessarily a problem on ntfy side. Can you enable `TRACE` mode in ntfy and capture the full email?
Author
Owner

@demogorgonz commented on GitHub (Oct 5, 2022):

Sure thing, i have edited sensitive information like domain/username.

trace.ntfy.log

<!-- gh-comment-id:1268375622 --> @demogorgonz commented on GitHub (Oct 5, 2022): Sure thing, i have edited sensitive information like domain/username. [trace.ntfy.log](https://github.com/binwiederhier/ntfy/files/9715591/trace.ntfy.log)
Author
Owner

@demogorgonz commented on GitHub (Oct 5, 2022):

By the way i have fiddled with custom email templates too more info, added just 1 line html/md.. same result.

Edit: this email from trace is accepted by any MTA without EOL or any problems.

<!-- gh-comment-id:1268378224 --> @demogorgonz commented on GitHub (Oct 5, 2022): By the way i have fiddled with custom email templates too [more info](https://docs.rundeck.com/docs/administration/configuration/email-settings.html#custom-email-templates), added just 1 line html/md.. same result. Edit: this email from trace is accepted by any MTA without EOL or any problems.
Author
Owner

@binwiederhier commented on GitHub (Oct 5, 2022):

Rundeck seems to send a double-multipart HTML-only email, without a text/plain part. Only HTML, which is why it cannot be parsed. I don't want to get into the HTML parsing business. If you can make Rundeck send plain text emails it'll likely work.

<!-- gh-comment-id:1268399675 --> @binwiederhier commented on GitHub (Oct 5, 2022): Rundeck seems to send a double-multipart HTML-only email, without a `text/plain` part. Only HTML, which is why it cannot be parsed. I don't want to get into the HTML parsing business. If you can make Rundeck send plain text emails it'll likely work.
Author
Owner

@demogorgonz commented on GitHub (Oct 5, 2022):

I will leave config which works for Rundeck:

# Template
rundeck.mail.template.file=template.html
rundeck.mail.template.log.formatted=false

Template is from this source

These settings should be set on email on rundeck side:

image

<!-- gh-comment-id:1268453123 --> @demogorgonz commented on GitHub (Oct 5, 2022): I will leave config which works for Rundeck: ``` # Template rundeck.mail.template.file=template.html rundeck.mail.template.log.formatted=false ``` Template is from this [source](https://gist.github.com/gschueler/5ce7320c4ecdc0047551) These settings should be set on email on rundeck side: ![image](https://user-images.githubusercontent.com/5041776/194073924-15146ab0-568e-413e-8144-e62fee80bdd6.png)
Author
Owner

@binwiederhier commented on GitHub (Oct 5, 2022):

If you like, you can leave this as an example in the example docs: https://github.com/binwiederhier/ntfy/blob/main/docs/examples.md

Just create a short section and include the screenshot. It'll help others in the future.

<!-- gh-comment-id:1268455695 --> @binwiederhier commented on GitHub (Oct 5, 2022): If you like, you can leave this as an example in the example docs: https://github.com/binwiederhier/ntfy/blob/main/docs/examples.md Just create a short section and include the screenshot. It'll help others in the future.
Author
Owner

@demogorgonz commented on GitHub (Oct 5, 2022):

I will make PR a bit later :) thank you for quick response.

<!-- gh-comment-id:1268458162 --> @demogorgonz commented on GitHub (Oct 5, 2022): I will make PR a bit later :) thank you for quick response.
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#333
No description provided.