Noel,

 Not exactly...

 Is there a way for me to change the config.xml, so that whenever there is an error 
delivering a message a single email containing
the same message is deliver wether the recipient is of the same server or not?  
Currently if James server is called "iroth".

if I tried to send to a non-existing user at "iroth" (irothxxx@iroth), I would get the 
follow message send to the 
postmaster:
***************************************************************************************
Message-ID: <14929233.1031091953691.JavaMail.iroth@IROTH>
Date: Tue, 3 Sep 2002 18:25:53 -0400
From: vkb@iroth
To: vkb@iroth
Subject: Re:JavaMail APIs Test
In-Reply-To: <4283878.1031091953260.JavaMail.iroth@IROTH>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="----=_Part_0_9379198.1031091953531"

------=_Part_0_9379198.1031091953531
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

We were unable to deliver the attached message because of an error in the mail server.

Message details:
  Subject: JavaMail APIs Test
  Sent date: Tue Sep 03 18:25:53 EDT 2002
  MAIL FROM: ide@iroth
  RCPT TO: rothxxx@iroth
  From: ide@iroth 
  To: rothxxx@iroth 
  Size (in bytes): 48

------=_Part_0_9379198.1031091953531
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

This is a message body.
Here's the second line.
------=_Part_0_9379198.1031091953531--
*******************************************************************************************

Now if I trie to send to a user at a different server (irothxxx@irothxx), I would get 
the follow message send to the 
postmaster:
********************************************************************************************
Message-ID: <1514278.1031092192655.JavaMail.iroth@IROTH>
Date: Tue, 3 Sep 2002 18:29:52 -0400
From: vkb@iroth
To: ide@iroth
Subject: Re: JavaMail APIs Test
In-Reply-To: <4283878.1031092130125.JavaMail.iroth@IROTH>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="----=_Part_1_7777071.1031092192655"

------=_Part_1_7777071.1031092192655
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi. This is the James mail server at IROTH.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

rothxxx@irothxx
No route found to irothxx

The original message is attached.

------=_Part_1_7777071.1031092192655
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

This is a message body.
Here's the second line.
------=_Part_1_7777071.1031092192655--
*********************************************************************************************

But this is what I want the content of the bounced message to the postmaster to look 
like for all sending error:
*********************************************************************************************
I'm afraid I wasn't able to deliver your message to the following addresses.

rothxxx@irothxx

Message details:
  Subject: JavaMail APIs Test
  Sent date: Tue Sep 03 18:25:53 EDT 2002
  MAIL FROM: ide@iroth
  RCPT TO: rothxxx@iroth
  From: ide@iroth 
  To: rothxxx@iroth 
  Size (in bytes): 48

Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

This is a message body.
Here's the second line.
***********************************************************************************************



thanks,
Ide


>>> [EMAIL PROTECTED] 09/03/02 05:47PM >>>
Ide,

I'm reading in a hurry, so I might be missing your point.  But if your
problem is what I think it is, please grab a copy of Redirect.java from the
CVS and see if that fixes it for you.

    --- Noel


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to