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 Minh Chiem <Mi...@forge.com.au> on 2002/08/21 08:41:36 UTC

Forwarding mail

This is my configuration
<mailet match="All" class="Forward">
             <forwardto>backup@localhost</forwardto>
</mailet>
<mailet "All" class="RemoteDelivery">
.
.
.
</mailet>

What happens is that there is an infinite loop around Forward mailet. The
mail recipients get changed and get put back on the spool, and goes through
the Forward mailet again.

I'm trying to get something like this happening

<mailet match="RecipientIsNot=backup@localhost" class="Forward">
      <forwardto>backup@localhost</forwardto>
      <passThrough>true</passThrough>
</mailet>
<mailet "All" class="RemoteDelivery">
.
.
.
</mailet>

How can I get JAMES to forward all mail to back@localhost and then send the
original mail as well? The end result should be 2 copies of the same
message in whatever@mailbox and backup@localhost.


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


RE: Forwarding mail

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

Forward sends the message back to the top of the root processor, so you are
forwarding all mail back to yourself over and over and ...

> I'm trying to get something like this happening

> <mailet match="RecipientIsNot=backup@localhost" class="Forward">
>       <forwardto>backup@localhost</forwardto>
>       <passThrough>true</passThrough>
> </mailet>

That would behave differently.  The first time through the recipient would
match, causing the message to be forwarded; subsequent times, the recipient
would not match.  You'd still need to be careful not to create any loops
later.

	--- Noel


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