-
Notifications
You must be signed in to change notification settings - Fork 238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug report: empty smtp.mailfrom on Delivery Status Notification (DSN) #629
Comments
RFC 5321 (SMTP spec) requires (a "MUST") all delivery status notifications to be sent with an empty MAIL FROM: https://datatracker.ietf.org/doc/html/rfc5321#section-3.6.3
|
Though, you can "hack" it and rewrite MAIL FROM using modify.replace_rcpt:
Since the problem mentioned in the RFC does not apply to your usecase, it probably will be fine. |
I have the same need, and I'm really struggling with this. The debug output doesn't show the actual from used; I tried both I tried static and regexp replacements, but none of it seems to work. In most configurations I just get a:
Can someone post an entire |
Apparently, Pushed cee5777 to master that allows this. |
Thank you, with cee5777 this now works as expected:
|
Describe the bug
I am using maddy as a send-only SMTP server and it works great, thank you so much for this nice piece of software !
I want set up Delivery Status Notification to my inbox. However they are marked a spam by my email hosting (which has nothing to do with maddy) because the the lack of the mailfrom:
spf=none smtp.mailfrom="" smtp.helo=maddy.example.org
(I was able to add dkim signing though).Steps to reproduce
Setup a
bounce
with a remote MX sending and trigger a bounce message:Configuration file
Environment information
Relevant code
The last argument of
dsnDelivery, err := q.dsnPipeline.Start(mailCtx, dsnMeta, "")
is always empty.maddy/internal/target/queue/queue.go
Line 962 in de756c8
Is there any reason this is not set to
dsnEnvelope.From
(which is set to"MAILER-DAEMON@" + q.autogenMsgDomain
) ?If yes, would you consider an option to set it in some cases? Or is there a configuration option that I am missing?
The text was updated successfully, but these errors were encountered: