You are receiving mails for the mydomain.com domain, right?
You added <servername>mydomain.com</servername>, right?

Then the recipient for you is the recipient of an incoming mail: when an incoming mail is destinated to a recipient that matches abc(.*)@mydomain.com then it will be forwarded to a single mailbox [EMAIL PROTECTED] .

Btw, try it and let me know if it works like you expected.

Stefano

Paulo Ferreira ha scritto:
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]

Reply via email to