You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by JRC <po...@neonkiwi.com> on 2002/11/12 21:37:49 UTC

redirect - need help

James 2.1a1-cvs
JRE1.4.0_01

Hello,

This is not a major issue so an immediate response is NOT required.

I am trying to create a redirect that will change the From: line in the
header of all messages sent by a specific user. My first attempt looked like
this:

<mailet match=SenderIs=myuser@mydomain
            class="Redirect">
        <to>recipients</to>
        <sender>myuser@otherdomain</sender>
        <inline>unaltered</inline>
        <static>true</static>
        <passThrough>FALSE</passThrough>
</mailet>

when a message was sent by myuser@mydomain it vanished into cyberspace and
"12/11/02 13:25:46 INFO  James.Mailet: Redirect: add recipient failed in
getRecipients" was found in the mailet.log. I  added
<recipients>postmaster@mydomain</recipients> to the mailet and it kinda
worked but the intended recipient never got the mail. the mail sent to
postmaster did have the modified From: line.

Any help will be appreciated.

-randy




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: redirect - need help

Posted by JRC <po...@neonkiwi.com>.
Noel.

like i said in the first post, it's not a big deal. i've already got a
workaround for this situation but it is a pain in the butt. what it
basically does is make <verifyIdentity>true</verifyIdentity> false for one
user.

i do have to add new users to the remote delivery mailet and restart the
server.

Randy

----- Original Message -----
From: "Noel J. Bergman" <no...@devtech.com>
To: "James Users List" <ja...@jakarta.apache.org>
Sent: Wednesday, November 13, 2002 9:38 AM
Subject: RE: redirect - need help


> Randy,
>
> I'll look at patching the code, but I don't know if anyone (including me)
> will vote for that to make it into the release, since we've adopted a code
> freeze period pending release.  I can probably post a copy into the
> proposals/ branch until after release.
>
> --- Noel
>
> -----Original Message-----
> From: JRC [mailto:postmaster@neonkiwi.com]
> Sent: Wednesday, November 13, 2002 10:27
> To: James Users List
> Subject: Re: redirect - need help
>
>
> So the only way Redirect will work is if you know who the recipients are
in
> advance? If this is true a redirect will not work for me.....back to the
> drawing board.
>
> randy
>
> ----- Original Message -----
> From: "Danny Angus" <da...@apache.org>
> To: "James Users List" <ja...@jakarta.apache.org>
> Sent: Wednesday, November 13, 2002 9:11 AM
> Subject: RE: redirect - need help
>
>
> No it doesn't seem to be, I'll patch the docs.
>
> > -----Original Message-----
> > From: Noel J. Bergman [mailto:noel@devtech.com]
> > Sent: 13 November 2002 14:58
> > To: James Users List
> > Subject: RE: redirect - need help
> >
> >
> > Danny,
> >
> > The docs say "If this parameter is <to>recipients</to> then the
addresses
> > from the original To: header will be re-used."  I don't see that being
> > implemented in the current code.
> >
> > --- Noel
> >
> > -----Original Message-----
> > From: Danny Angus [mailto:danny@apache.org]
> > Sent: Wednesday, November 13, 2002 5:08
> > To: James Users List
> > Subject: RE: redirect - need help
> >
> >
> > not sure about the docs, but recipients is used automatically for
> > To: where
> > <to> node is empty, or absent.
> > d.
> >
> > > -----Original Message-----
> > > From: Noel J. Bergman [mailto:noel@devtech.com]
> > > Sent: 13 November 2002 04:48
> > > To: James Users List
> > > Subject: RE: redirect - need help
> > >
> > >
> > > Randy,
> > >
> > > This one works:
> > >
> > >          <mailet match="RecipientIs=alias@domain" class="Redirect">
> > >             <recipients>user1@domain,user2@domain</recipients>
> > >             <prefix xml:space="preserve">[My Prefix] </prefix>
> > >             <inline>unaltered</inline>
> > >             <static>true</static>
> > >          </mailet>
> > >
> > > As for the <to>recipients</to> ... I see it in the docs, but I
> > > don't see it
> > > in the CODE.  Hopefully Danny can take a quick look at it, and either
> > > confirm or deny that the support is currently missing.
> > >
> > > --- Noel
> > >
> > > -----Original Message-----
> > > From: JRC [mailto:postmaster@neonkiwi.com]
> > > Sent: Tuesday, November 12, 2002 15:38
> > > To: james-user
> > > Subject: redirect - need help
> > >
> > >
> > > James 2.1a1-cvs
> > > JRE1.4.0_01
> > >
> > > Hello,
> > >
> > > This is not a major issue so an immediate response is NOT required.
> > >
> > > I am trying to create a redirect that will change the From: line in
the
> > > header of all messages sent by a specific user. My first attempt
> > > looked like
> > > this:
> > >
> > > <mailet match=SenderIs=myuser@mydomain
> > >             class="Redirect">
> > >         <to>recipients</to>
> > >         <sender>myuser@otherdomain</sender>
> > >         <inline>unaltered</inline>
> > >         <static>true</static>
> > >         <passThrough>FALSE</passThrough>
> > > </mailet>
> > >
> > > when a message was sent by myuser@mydomain it vanished into
> > cyberspace and
> > > "12/11/02 13:25:46 INFO  James.Mailet: Redirect: add recipient failed
in
> > > getRecipients" was found in the mailet.log. I  added
> > > <recipients>postmaster@mydomain</recipients> to the mailet and it
kinda
> > > worked but the intended recipient never got the mail. the mail sent to
> > > postmaster did have the modified From: line.
> > >
> > > Any help will be appreciated.
> > >
> > > -randy
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: redirect - need help

Posted by "Noel J. Bergman" <no...@devtech.com>.
Randy,

I'll look at patching the code, but I don't know if anyone (including me)
will vote for that to make it into the release, since we've adopted a code
freeze period pending release.  I can probably post a copy into the
proposals/ branch until after release.

	--- Noel

-----Original Message-----
From: JRC [mailto:postmaster@neonkiwi.com]
Sent: Wednesday, November 13, 2002 10:27
To: James Users List
Subject: Re: redirect - need help


So the only way Redirect will work is if you know who the recipients are in
advance? If this is true a redirect will not work for me.....back to the
drawing board.

randy

----- Original Message -----
From: "Danny Angus" <da...@apache.org>
To: "James Users List" <ja...@jakarta.apache.org>
Sent: Wednesday, November 13, 2002 9:11 AM
Subject: RE: redirect - need help


No it doesn't seem to be, I'll patch the docs.

> -----Original Message-----
> From: Noel J. Bergman [mailto:noel@devtech.com]
> Sent: 13 November 2002 14:58
> To: James Users List
> Subject: RE: redirect - need help
>
>
> Danny,
>
> The docs say "If this parameter is <to>recipients</to> then the addresses
> from the original To: header will be re-used."  I don't see that being
> implemented in the current code.
>
> --- Noel
>
> -----Original Message-----
> From: Danny Angus [mailto:danny@apache.org]
> Sent: Wednesday, November 13, 2002 5:08
> To: James Users List
> Subject: RE: redirect - need help
>
>
> not sure about the docs, but recipients is used automatically for
> To: where
> <to> node is empty, or absent.
> d.
>
> > -----Original Message-----
> > From: Noel J. Bergman [mailto:noel@devtech.com]
> > Sent: 13 November 2002 04:48
> > To: James Users List
> > Subject: RE: redirect - need help
> >
> >
> > Randy,
> >
> > This one works:
> >
> >          <mailet match="RecipientIs=alias@domain" class="Redirect">
> >             <recipients>user1@domain,user2@domain</recipients>
> >             <prefix xml:space="preserve">[My Prefix] </prefix>
> >             <inline>unaltered</inline>
> >             <static>true</static>
> >          </mailet>
> >
> > As for the <to>recipients</to> ... I see it in the docs, but I
> > don't see it
> > in the CODE.  Hopefully Danny can take a quick look at it, and either
> > confirm or deny that the support is currently missing.
> >
> > --- Noel
> >
> > -----Original Message-----
> > From: JRC [mailto:postmaster@neonkiwi.com]
> > Sent: Tuesday, November 12, 2002 15:38
> > To: james-user
> > Subject: redirect - need help
> >
> >
> > James 2.1a1-cvs
> > JRE1.4.0_01
> >
> > Hello,
> >
> > This is not a major issue so an immediate response is NOT required.
> >
> > I am trying to create a redirect that will change the From: line in the
> > header of all messages sent by a specific user. My first attempt
> > looked like
> > this:
> >
> > <mailet match=SenderIs=myuser@mydomain
> >             class="Redirect">
> >         <to>recipients</to>
> >         <sender>myuser@otherdomain</sender>
> >         <inline>unaltered</inline>
> >         <static>true</static>
> >         <passThrough>FALSE</passThrough>
> > </mailet>
> >
> > when a message was sent by myuser@mydomain it vanished into
> cyberspace and
> > "12/11/02 13:25:46 INFO  James.Mailet: Redirect: add recipient failed in
> > getRecipients" was found in the mailet.log. I  added
> > <recipients>postmaster@mydomain</recipients> to the mailet and it kinda
> > worked but the intended recipient never got the mail. the mail sent to
> > postmaster did have the modified From: line.
> >
> > Any help will be appreciated.
> >
> > -randy


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: redirect - need help

Posted by Danny Angus <da...@apache.org>.
Oh I think I get it.
d.

> -----Original Message-----
> From: JRC [mailto:postmaster@neonkiwi.com]
> Sent: 13 November 2002 18:42
> To: James Users List
> Subject: Re: redirect - need help
> 
> 
> d.
> 
> i'm just looking for a way to override 
> <verifyIdentity>true</verifyIdentity>
> for a single user so he can appear to be sending mail from his own domain
> and not mine. i'm not this guys mother so i don't really need to 
> know where
> and why he's sending email.
> 
> randy
> ----- Original Message -----
> From: "Danny Angus" <da...@apache.org>
> To: "James Users List" <ja...@jakarta.apache.org>
> Sent: Wednesday, November 13, 2002 11:56 AM
> Subject: RE: redirect - need help
> 
> 
> > So the only way Redirect will work is if you know who the
> > recipients are in
> > advance? If this is true a redirect will not work for me.....back to the
> > drawing board.
> 
> Well it seems odd that you should want to redirect mail and *not* 
> know where
> its going.
> (Redirect is also intended to be extended by people looking to build more
> sophisticated re-direction.)
> 
> d.
> 
> 
> --
> To unsubscribe, e-mail:   
> <ma...@jakarta.apache.org>
> For additional commands, e-mail: 
<ma...@jakarta.apache.org>





--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: redirect - need help

Posted by JRC <po...@neonkiwi.com>.
d.

i'm just looking for a way to override <verifyIdentity>true</verifyIdentity>
for a single user so he can appear to be sending mail from his own domain
and not mine. i'm not this guys mother so i don't really need to know where
and why he's sending email.

randy
----- Original Message -----
From: "Danny Angus" <da...@apache.org>
To: "James Users List" <ja...@jakarta.apache.org>
Sent: Wednesday, November 13, 2002 11:56 AM
Subject: RE: redirect - need help


> So the only way Redirect will work is if you know who the
> recipients are in
> advance? If this is true a redirect will not work for me.....back to the
> drawing board.

Well it seems odd that you should want to redirect mail and *not* know where
its going.
(Redirect is also intended to be extended by people looking to build more
sophisticated re-direction.)

d.


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>





--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: redirect - need help

Posted by Danny Angus <da...@apache.org>.
> So the only way Redirect will work is if you know who the 
> recipients are in
> advance? If this is true a redirect will not work for me.....back to the
> drawing board.

Well it seems odd that you should want to redirect mail and *not* know where its going.
(Redirect is also intended to be extended by people looking to build more sophisticated re-direction.)

d.


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: redirect - need help

Posted by JRC <po...@neonkiwi.com>.
So the only way Redirect will work is if you know who the recipients are in
advance? If this is true a redirect will not work for me.....back to the
drawing board.

randy

----- Original Message -----
From: "Danny Angus" <da...@apache.org>
To: "James Users List" <ja...@jakarta.apache.org>
Sent: Wednesday, November 13, 2002 9:11 AM
Subject: RE: redirect - need help


No it doesn't seem to be, I'll patch the docs.

> -----Original Message-----
> From: Noel J. Bergman [mailto:noel@devtech.com]
> Sent: 13 November 2002 14:58
> To: James Users List
> Subject: RE: redirect - need help
>
>
> Danny,
>
> The docs say "If this parameter is <to>recipients</to> then the addresses
> from the original To: header will be re-used."  I don't see that being
> implemented in the current code.
>
> --- Noel
>
> -----Original Message-----
> From: Danny Angus [mailto:danny@apache.org]
> Sent: Wednesday, November 13, 2002 5:08
> To: James Users List
> Subject: RE: redirect - need help
>
>
> not sure about the docs, but recipients is used automatically for
> To: where
> <to> node is empty, or absent.
> d.
>
> > -----Original Message-----
> > From: Noel J. Bergman [mailto:noel@devtech.com]
> > Sent: 13 November 2002 04:48
> > To: James Users List
> > Subject: RE: redirect - need help
> >
> >
> > Randy,
> >
> > This one works:
> >
> >          <mailet match="RecipientIs=alias@domain" class="Redirect">
> >             <recipients>user1@domain,user2@domain</recipients>
> >             <prefix xml:space="preserve">[My Prefix] </prefix>
> >             <inline>unaltered</inline>
> >             <static>true</static>
> >          </mailet>
> >
> > As for the <to>recipients</to> ... I see it in the docs, but I
> > don't see it
> > in the CODE.  Hopefully Danny can take a quick look at it, and either
> > confirm or deny that the support is currently missing.
> >
> > --- Noel
> >
> > -----Original Message-----
> > From: JRC [mailto:postmaster@neonkiwi.com]
> > Sent: Tuesday, November 12, 2002 15:38
> > To: james-user
> > Subject: redirect - need help
> >
> >
> > James 2.1a1-cvs
> > JRE1.4.0_01
> >
> > Hello,
> >
> > This is not a major issue so an immediate response is NOT required.
> >
> > I am trying to create a redirect that will change the From: line in the
> > header of all messages sent by a specific user. My first attempt
> > looked like
> > this:
> >
> > <mailet match=SenderIs=myuser@mydomain
> >             class="Redirect">
> >         <to>recipients</to>
> >         <sender>myuser@otherdomain</sender>
> >         <inline>unaltered</inline>
> >         <static>true</static>
> >         <passThrough>FALSE</passThrough>
> > </mailet>
> >
> > when a message was sent by myuser@mydomain it vanished into
> cyberspace and
> > "12/11/02 13:25:46 INFO  James.Mailet: Redirect: add recipient failed in
> > getRecipients" was found in the mailet.log. I  added
> > <recipients>postmaster@mydomain</recipients> to the mailet and it kinda
> > worked but the intended recipient never got the mail. the mail sent to
> > postmaster did have the modified From: line.
> >
> > Any help will be appreciated.
> >
> > -randy
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>





--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: redirect - need help

Posted by Danny Angus <da...@apache.org>.
No it doesn't seem to be, I'll patch the docs.

> -----Original Message-----
> From: Noel J. Bergman [mailto:noel@devtech.com]
> Sent: 13 November 2002 14:58
> To: James Users List
> Subject: RE: redirect - need help
> 
> 
> Danny,
> 
> The docs say "If this parameter is <to>recipients</to> then the addresses
> from the original To: header will be re-used."  I don't see that being
> implemented in the current code.
> 
> 	--- Noel
> 
> -----Original Message-----
> From: Danny Angus [mailto:danny@apache.org]
> Sent: Wednesday, November 13, 2002 5:08
> To: James Users List
> Subject: RE: redirect - need help
> 
> 
> not sure about the docs, but recipients is used automatically for 
> To: where
> <to> node is empty, or absent.
> d.
> 
> > -----Original Message-----
> > From: Noel J. Bergman [mailto:noel@devtech.com]
> > Sent: 13 November 2002 04:48
> > To: James Users List
> > Subject: RE: redirect - need help
> >
> >
> > Randy,
> >
> > This one works:
> >
> >          <mailet match="RecipientIs=alias@domain" class="Redirect">
> >             <recipients>user1@domain,user2@domain</recipients>
> >             <prefix xml:space="preserve">[My Prefix] </prefix>
> >             <inline>unaltered</inline>
> >             <static>true</static>
> >          </mailet>
> >
> > As for the <to>recipients</to> ... I see it in the docs, but I
> > don't see it
> > in the CODE.  Hopefully Danny can take a quick look at it, and either
> > confirm or deny that the support is currently missing.
> >
> > 	--- Noel
> >
> > -----Original Message-----
> > From: JRC [mailto:postmaster@neonkiwi.com]
> > Sent: Tuesday, November 12, 2002 15:38
> > To: james-user
> > Subject: redirect - need help
> >
> >
> > James 2.1a1-cvs
> > JRE1.4.0_01
> >
> > Hello,
> >
> > This is not a major issue so an immediate response is NOT required.
> >
> > I am trying to create a redirect that will change the From: line in the
> > header of all messages sent by a specific user. My first attempt
> > looked like
> > this:
> >
> > <mailet match=SenderIs=myuser@mydomain
> >             class="Redirect">
> >         <to>recipients</to>
> >         <sender>myuser@otherdomain</sender>
> >         <inline>unaltered</inline>
> >         <static>true</static>
> >         <passThrough>FALSE</passThrough>
> > </mailet>
> >
> > when a message was sent by myuser@mydomain it vanished into 
> cyberspace and
> > "12/11/02 13:25:46 INFO  James.Mailet: Redirect: add recipient failed in
> > getRecipients" was found in the mailet.log. I  added
> > <recipients>postmaster@mydomain</recipients> to the mailet and it kinda
> > worked but the intended recipient never got the mail. the mail sent to
> > postmaster did have the modified From: line.
> >
> > Any help will be appreciated.
> >
> > -randy
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail: 
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: redirect - need help

Posted by "Noel J. Bergman" <no...@devtech.com>.
Danny,

The docs say "If this parameter is <to>recipients</to> then the addresses
from the original To: header will be re-used."  I don't see that being
implemented in the current code.

	--- Noel

-----Original Message-----
From: Danny Angus [mailto:danny@apache.org]
Sent: Wednesday, November 13, 2002 5:08
To: James Users List
Subject: RE: redirect - need help


not sure about the docs, but recipients is used automatically for To: where
<to> node is empty, or absent.
d.

> -----Original Message-----
> From: Noel J. Bergman [mailto:noel@devtech.com]
> Sent: 13 November 2002 04:48
> To: James Users List
> Subject: RE: redirect - need help
>
>
> Randy,
>
> This one works:
>
>          <mailet match="RecipientIs=alias@domain" class="Redirect">
>             <recipients>user1@domain,user2@domain</recipients>
>             <prefix xml:space="preserve">[My Prefix] </prefix>
>             <inline>unaltered</inline>
>             <static>true</static>
>          </mailet>
>
> As for the <to>recipients</to> ... I see it in the docs, but I
> don't see it
> in the CODE.  Hopefully Danny can take a quick look at it, and either
> confirm or deny that the support is currently missing.
>
> 	--- Noel
>
> -----Original Message-----
> From: JRC [mailto:postmaster@neonkiwi.com]
> Sent: Tuesday, November 12, 2002 15:38
> To: james-user
> Subject: redirect - need help
>
>
> James 2.1a1-cvs
> JRE1.4.0_01
>
> Hello,
>
> This is not a major issue so an immediate response is NOT required.
>
> I am trying to create a redirect that will change the From: line in the
> header of all messages sent by a specific user. My first attempt
> looked like
> this:
>
> <mailet match=SenderIs=myuser@mydomain
>             class="Redirect">
>         <to>recipients</to>
>         <sender>myuser@otherdomain</sender>
>         <inline>unaltered</inline>
>         <static>true</static>
>         <passThrough>FALSE</passThrough>
> </mailet>
>
> when a message was sent by myuser@mydomain it vanished into cyberspace and
> "12/11/02 13:25:46 INFO  James.Mailet: Redirect: add recipient failed in
> getRecipients" was found in the mailet.log. I  added
> <recipients>postmaster@mydomain</recipients> to the mailet and it kinda
> worked but the intended recipient never got the mail. the mail sent to
> postmaster did have the modified From: line.
>
> Any help will be appreciated.
>
> -randy
>
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: redirect - need help

Posted by Danny Angus <da...@apache.org>.
not sure about the docs, but recipients is used automatically for To: where <to> node is empty, or absent.
d.

> -----Original Message-----
> From: Noel J. Bergman [mailto:noel@devtech.com]
> Sent: 13 November 2002 04:48
> To: James Users List
> Subject: RE: redirect - need help
> 
> 
> Randy,
> 
> This one works:
> 
>          <mailet match="RecipientIs=alias@domain" class="Redirect">
>             <recipients>user1@domain,user2@domain</recipients>
>             <prefix xml:space="preserve">[My Prefix] </prefix>
>             <inline>unaltered</inline>
>             <static>true</static>
>          </mailet>
> 
> As for the <to>recipients</to> ... I see it in the docs, but I 
> don't see it
> in the CODE.  Hopefully Danny can take a quick look at it, and either
> confirm or deny that the support is currently missing.
> 
> 	--- Noel
> 
> -----Original Message-----
> From: JRC [mailto:postmaster@neonkiwi.com]
> Sent: Tuesday, November 12, 2002 15:38
> To: james-user
> Subject: redirect - need help
> 
> 
> James 2.1a1-cvs
> JRE1.4.0_01
> 
> Hello,
> 
> This is not a major issue so an immediate response is NOT required.
> 
> I am trying to create a redirect that will change the From: line in the
> header of all messages sent by a specific user. My first attempt 
> looked like
> this:
> 
> <mailet match=SenderIs=myuser@mydomain
>             class="Redirect">
>         <to>recipients</to>
>         <sender>myuser@otherdomain</sender>
>         <inline>unaltered</inline>
>         <static>true</static>
>         <passThrough>FALSE</passThrough>
> </mailet>
> 
> when a message was sent by myuser@mydomain it vanished into cyberspace and
> "12/11/02 13:25:46 INFO  James.Mailet: Redirect: add recipient failed in
> getRecipients" was found in the mailet.log. I  added
> <recipients>postmaster@mydomain</recipients> to the mailet and it kinda
> worked but the intended recipient never got the mail. the mail sent to
> postmaster did have the modified From: line.
> 
> Any help will be appreciated.
> 
> -randy
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
<ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: redirect - need help

Posted by "Noel J. Bergman" <no...@devtech.com>.
Randy,

This one works:

         <mailet match="RecipientIs=alias@domain" class="Redirect">
            <recipients>user1@domain,user2@domain</recipients>
            <prefix xml:space="preserve">[My Prefix] </prefix>
            <inline>unaltered</inline>
            <static>true</static>
         </mailet>

As for the <to>recipients</to> ... I see it in the docs, but I don't see it
in the CODE.  Hopefully Danny can take a quick look at it, and either
confirm or deny that the support is currently missing.

	--- Noel

-----Original Message-----
From: JRC [mailto:postmaster@neonkiwi.com]
Sent: Tuesday, November 12, 2002 15:38
To: james-user
Subject: redirect - need help


James 2.1a1-cvs
JRE1.4.0_01

Hello,

This is not a major issue so an immediate response is NOT required.

I am trying to create a redirect that will change the From: line in the
header of all messages sent by a specific user. My first attempt looked like
this:

<mailet match=SenderIs=myuser@mydomain
            class="Redirect">
        <to>recipients</to>
        <sender>myuser@otherdomain</sender>
        <inline>unaltered</inline>
        <static>true</static>
        <passThrough>FALSE</passThrough>
</mailet>

when a message was sent by myuser@mydomain it vanished into cyberspace and
"12/11/02 13:25:46 INFO  James.Mailet: Redirect: add recipient failed in
getRecipients" was found in the mailet.log. I  added
<recipients>postmaster@mydomain</recipients> to the mailet and it kinda
worked but the intended recipient never got the mail. the mail sent to
postmaster did have the modified From: line.

Any help will be appreciated.

-randy




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>