dcsimg
how to set return-path in a message.
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Sven_Reiss
Posted On:   Tuesday, November 26, 2002 02:53 AM

How can I set the return-path in a Mail-Header. I can set all other Header-Values like Errors-To, but Return-Path is every time the same as the Header Field from.

Re: how to set return-path in a message.

Posted By:   Christopher_Koenigsberg  
Posted On:   Tuesday, November 26, 2002 08:00 AM

An "Errors-To" header is ancient, deprecated, and should not be used, nor set, anymore since the early 1980's.



A "Return-Path" header (or alternatively, a "Unix From_ line", depending on the mailbox file format) is typically added when the message is delivered to the end recipient's mailbox/maildrop/mailstore, by just copying the value from the SMTP envelope MAIL FROM field.



So you (the sender) do not create this header. Rather, you set the SMTP envelope sender field, before you send the message. Sometimes the value will be altered along the way (due to CNAME's, firewall gateways, other rewriting rules, on intermediate mail relay servers), and might end up looking different in the final Return-Path that the recipient's mailbox gets, than when you set it before you sent the message. In the old days when the whole Internet mail format was designed, the return path could get long, because of intervening uucp hops, bitnet/decnet/csnet gateways etc.



See "How can I explicitly set the SMTP FROM: attribute when sending a message?" (http://java.sun.com/products/javamail/FAQ.html#smtpfrom).

Re: how to set return-path in a message.

Posted By:   Jeff_Gay  
Posted On:   Tuesday, November 26, 2002 05:57 AM

I think that you're confusing Reply-To with Return-Path.
About | Sitemap | Contact