retain 'from address' after setting 'envelope from'

I am trying to use JavaMail API for sending mails to a list of users. If I have an invalid email address, I would like a bounce mail to be sent to a common email address that is not the same as the "from email". I have no trouble doing this as I am setting envelope address.

But, for the success mails, I still have this envelope address as the from address and not the 'fromAddress' that I would like to have. Because of this, when that user replies, he gets to the common mail.

I know there is a bug (6173291) listed in SDN from a while. I was wondering if any one has faced this and solved the problem. Please help.

Thanks,

Aswin

[667 byte] By [AswinYa] at [2007-11-27 5:25:54]
# 1
What do the headers look like on the message when it's received?The enveloper from address shouldn't appear in any header thatan email client is using when replying.
bshannona at 2007-7-12 14:46:20 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
When I try to reply, its going to the address that I used as 'envelopeFrom' address. What I observed is that the 'envelopeFrom' value is copied into the 'fromAddress'.
AswinYa at 2007-7-12 14:46:20 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3
Do you have a valid From address in your message?Some mail servers will create a From header from theenvelope information if the message doesn't have aFrom header.
bshannona at 2007-7-12 14:46:20 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 4
Yes, I do have a valid fromAddress.
AswinYa at 2007-7-12 14:46:20 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 5
I'm running out of ideas.Show me the message you send (save a copy using msg.writeTo) andshow me the message you receive (use the "view message source"option in your mail reader).Have you talked to your mail server administrator about this?
bshannona at 2007-7-12 14:46:20 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...