Hi, there, Stefano...
If I got your sugestion right, it will produce exactly the opposite of
what I want... or not?? The way I see it, and according to the code you
posted, when I send an e-mail to any of the abc* users, it will be
redirected to all_abc user... right??? Well, if so, what I want is
exactly the opposite... I want to be able to send an e-mail message to
all_abc and then James redirects that message to all abc* users...
Is there anyways to include a regex expression in the <recipients>
parameter?? If so, the problem is solved...
Thank you very much,
Paulo
Stefano Bagnara wrote:
Paulo Ferreira ha scritto:
Hi there, again...
My first attempt to implement this was editing the config.xml file
and inserting the following line in the XMLVirtualUserTable section:
<mapping>[EMAIL PROTECTED]: abc(.*):abc${1}</mapping>
But when I tried to send an e-mail message to [EMAIL PROTECTED],
the message went right into the address-error folder... Why did this
happened?? Is it necessary to create the all_abc user?? I think it
shouldn't be necessary... or is it??
I would use something simple:
<mailet match="RecipientIsRegex=abc(.*)@mydomain.com" class="Redirect">
<recipients>[EMAIL PROTECTED]</recipients>
<inline>unaltered</inline>
</mailet>
And YES, you will need to create an "all_abc" user.
http://james.apache.org/server/2.3.0/apidocs/org/apache/james/transport/mailets/Redirect.html
Stefano
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]