commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 18968] - [email] Support SMTP Envelope From (bounce address)
Date Fri, 12 Nov 2004 19:57:51 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=18968>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=18968

[email] Support SMTP Envelope From (bounce address)

Joe@Germuska.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WONTFIX                     |



------- Additional Comments From Joe@Germuska.com  2004-11-12 19:57 -------
Sorry, Eric:  I missed your recent question on this, and forgot that I had
entered this bug when I got commons-email sandbox karma.  I could apply this
patch myself, but it seems only polite to finish discussing it since you raised
some questions.

Setting the "mail.smtp.from" property does make that the "default" sender, but a
"clueless user" who called setFrom(...) would successfully change the "From" as
it appears in the email headers.  That is, the message would look like it was
from whom you set it to be from.  It would not look like it was from the
"mail.smtp.from" value unless setFrom(...) was never called.

However, when SMTP servers bounce mail, they do not pay attention to the "From:"
header; they only pay attention to the "envelope" address, which can only be set
using the "mail.smtp.from" header.  This is the value set via the SMTP "MAIL
FROM: " , which JavaMail sets using the "mail.smtp.from" property when it is
defined.  

In short, the only way to control where undeliverable email will go, if you
don't want it to go to the address listed in the "from" line, is by setting the
"mail.smtp.from" property.

Hope this clarifies things.  Let me know if you want me to apply the patch, or
if you want to apply it, or if you still don't think it should be applied.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message