Upon 550-5.1.1 errors, send report to replyTo instead
Bug #1468172 reported by
Michael Heuberger
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
postfix (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Currently Postfix reports delivery errors back to the sender defined in the `From` field.
But can you alter this behavior and have Postfix report it back through the email address defined in `ReplyTo` if there s one.
We have a server-side app here that sets the `From` field to `noreply@....` but the replyTo field to the email address of that user triggering the email to be sent. This to circumvent SPF issues.
Unfortunately this has one drawback and returns `Undelivered Mail Returned to Sender` reports back to `noreply@...` but we want these to be returned back to the real user, defined in the `ReplyTo` field.
I hope this change request makes sense and you can do it?
Many thanks
Michael
To post a comment you must log in.
No, this is not possible. You have a fundamental misunderstanding of how email works. The "reply-to" field is part of the message content. A 550 rejection happens before the SMTP client even gets to start sending message content. In other words, the 550 rejection occurs based on the message envelope; the message contents are never seen by the server. You need to fix your app so that it uses a valid envelope from address.