mirror of
https://github.com/decke/smtprelay.git
synced 2026-04-25 12:55:54 +03:00
[PR #209] [MERGED] set transient response code on potential temporary error conditions #211
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/smtprelay#211
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/decke/smtprelay/pull/209
Author: @stefan-as
Created: 5/16/2025
Status: ✅ Merged
Merged: 5/16/2025
Merged by: @decke
Base:
master← Head:master📝 Commits (1)
f5441daset transient response code on potential temporary error conditions📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
main.go(+1 -1)📄 Description
Unkown errors may be caused by temporary error conditions, e.g. socket errors (DNS errors, network interruptions, ...), but smtprelay responds with a final SMTP error code. Since final SMTP error codes leads to a different behavior of correct working clients (bounce instead of retry), a 5xx response signals clients to give up on a specific mail instead of retrying a later delivery. This is not correct for temporary error conditions, so smtprelay should respond with a 4xx transient error code.
I think SMTP error code 421 is a more proper response for unkown conditions, that prevents smtprelay to forward an mail.
https://www.cloudmailin.com/smtp-troubleshooter/421-error
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.