Thread: Permanent Error
View Single Post
Old 12 Feb 2022, 02:21 AM   #17
hadaso
The "e" in e-mail
 
Join Date: Oct 2002
Location: Holon, Israel.
Posts: 4,853
Quote:
Originally Posted by n5bb View Post
... a typical email message is forwarded through many different servers. If any of those transfers fails, the failure message is sent to the email address in the “FROM” header.

...
Actually the report about failure of delivery is sent to the address in the Return-path header, which is normally the same as the address in the From header, but not always. AFAIK an SMTP server adds the Return-path header and puts there the "envelope from" address (the one reported by the sender in the SMTP "From" command).
I tested this by sending myself a message with different "From" header and envelope from (using the "Send a copy" function in Fastmail) and the address in the Return-path wasn't the address in the From header but rather my Fastmail userid (surprising and disappointing: I am quite sure that in the past the default identity address was used there, and I never want my userid to appear anywhere but in the login screen).
hadaso is offline   Reply With Quote