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 Jorge de Lucas y Cadenas <jd...@ctv.es> on 2001/11/03 22:10:09 UTC

redirect all incoming and outgoing mail to a single account

Hello,

I am using the latest build of James.

I am trying to setup a very simple rule:
Every incoming or outgoing mail should
be redirected to a central mail account,
which will keep a copy of every mail thus
sent or received.

I have been trying several possibilities
with the Forward and Redirect mailets,
but with no success up to now.

Whenever I use the following sample of the
Redirect mailet,  the server goes into
an endless loop:

<mailet match="All" class="Redirect"><recipients>x@localhost</recipients>
<sender>postmaster</sender>
<message>Message marked as spam:
</message>
<inline>heads</inline>
<attachment>message</attachment>
<passThrough>FALSE</passThrough>
<attachError>TRUE</attachError>
<replyto>postmaster</replyto>
<prefix>[spam notification]</prefix>
<static>TRUE</static>
<passThrough>FALSE</passThrough>
</mailet>

I used the above configuration
alternatively both
inside  the root processor and inside the
transport processor.

Shall I create another processor???
My intention is to use something like:

<mailet match="All" class="Redirect">
             <recipients> control@localhost </recipients>
	    <sender> sender </sender>
	    <replyto> sender </replyto>
	    <inline> unaltered </inline>
           </mailet>

but up to now, I have not been able to
get all the mail redirected to the
"control" account.

I would be grateful for any help.

TIA

Jorge



-- 

Jorge de Lucas y Cadenas <jd...@attglobal.net>
FreeBSD 4.4-STABLE

PGP Key Fingerprint20 = A21E AD4D C928 50F4 6F33  0D40 2AFD CFC3 5C57 AC03
Diffie-Hellman:
PGP Key Fingerprint20 = 4A7C 54BE 8264 428C 026F  784F 4FE6 3403 C4B1 55AA
GPG Key fingerprint = 65FE 47C3 8C5A 3045 6818  F6B3 111F D35D 33CD 66BB




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


Re: redirect all incoming and outgoing mail to a single account

Posted by Jorge de Lucas y Cadenas <jd...@ctv.es>.
Hi,
Now I see that for what I intend to do
it is much better to
store all the outgoing and incoming
messages in a repository, somethink
like:

<processor name="transport">


<mailet match="All" class="ToRepository">
     <repositoryPath> file://var/mail/logAdmin</repositoryPath>
     <passThrough> true </passThrough>
</mailet>

<mailet match="RecipientIsLocal" class="LocalDelivery">
</mailet>
Etc.

Jorge

Jorge de Lucas y Cadenas wrote:

> Hello,
> 
> I am using the latest build of James.
> 
> I am trying to setup a very simple rule:
> Every incoming or outgoing mail should
> be redirected to a central mail account,
> which will keep a copy of every mail thus
> sent or received.
> 
> I have been trying several possibilities
> with the Forward and Redirect mailets,
> but with no success up to now.
> 
> Whenever I use the following sample of the
> Redirect mailet,  the server goes into
> an endless loop:
> 
> <mailet match="All" class="Redirect"><recipients>x@localhost</recipients>
> <sender>postmaster</sender>
> <message>Message marked as spam:
> </message>
> <inline>heads</inline>
> <attachment>message</attachment>
> <passThrough>FALSE</passThrough>
> <attachError>TRUE</attachError>
> <replyto>postmaster</replyto>
> <prefix>[spam notification]</prefix>
> <static>TRUE</static>
> <passThrough>FALSE</passThrough>
> </mailet>
> 
> I used the above configuration
> alternatively both
> inside  the root processor and inside the
> transport processor.
> 
> Shall I create another processor???
> My intention is to use something like:
> 
> <mailet match="All" class="Redirect">
>             <recipients> control@localhost </recipients>
>         <sender> sender </sender>
>         <replyto> sender </replyto>
>         <inline> unaltered </inline>
>           </mailet>
> 
> but up to now, I have not been able to
> get all the mail redirected to the
> "control" account.
> 
> I would be grateful for any help.
> 
> TIA
> 
> Jorge
> 
> 
> 



-- 

Jorge de Lucas y Cadenas <jd...@attglobal.net>
FreeBSD 4.4-STABLE

PGP Key Fingerprint20 = A21E AD4D C928 50F4 6F33  0D40 2AFD CFC3 5C57 AC03
Diffie-Hellman:
PGP Key Fingerprint20 = 4A7C 54BE 8264 428C 026F  784F 4FE6 3403 C4B1 55AA
GPG Key fingerprint = 65FE 47C3 8C5A 3045 6818  F6B3 111F D35D 33CD 66BB



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