Once again, please do not use HTML when posting to the list.
> > > I want to forward all James outgoing and incoming emails to
> > > the same email address (my own email address).
> >
> > You could use the Forward mailet with the All matcher.
>
> So the example provided in the API is false !?
> How may I use your james server if there is no real documentation.
No, it is not false. But the VirtualUserTable is more complex than a simple
forwarding of everything to a single address.
> 1-create an account on james server (example a user named toto )
> 2-configure james to forward all the emails I send using the user toto,
> to my own adress ([EMAIL PROTECTED]);
You don't need to create a local account at all if you are using the Forward
or VirtualUserTable mailets.
> <mailet match="All" class="XMLVirtualUserTable">
> <mapping>[EMAIL PROTECTED]@mydomain.com</mapping>
> </mailet>
That won't work. The XMLVirtualUserTable code is currently documented only
to match [EMAIL PROTECTED], [EMAIL PROTECTED] and [EMAIL PROTECTED], and will not
match [EMAIL PROTECTED]
What you want to do can be tricky in a sense, because if you were to put the
obvious:
<mailet match="All" class="Forward">
<forwardTo>[EMAIL PROTECTED]</forwardTo>
</mailet>
in your root or transport processors, your mail would loop. What I might do
is something like this:
<processor name="root>
...
<mailet match="HasMailAttribute=forwarded"
class="ToProcessor">
<processor> transport </processor>
</mailet>
<mailet match="All"
class="ToProcessor">
<processor> forward </processor>
</mailet>
</processor>
<processor name="forward>
<mailet match="All" class="SetMailAttribute">
<forwarded>true</forwarded>
</mailet>
<mailet match="All" class="Forward">
<forwardTo>[EMAIL PROTECTED]</forwardTo>
</mailet>
</processor>
That will make sure that mail only goes through the Forward mailet once. If
you turn on DEBUG for the spool manager, you can watch the message flow
until you've got it working.
--- Noel
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]