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 Eric Weidner <es...@speakeasy.org> on 2004/04/22 20:22:26 UTC

XML Virtual User Table n:n mapping

I've used the following matcher to provide n:n virtual user mapping for a long 
time.

         <mailet match="RecipientIs=all@yourdomain.com
                                   ,all@yourotherdomain.com
                                   " class="Forward">
             <forwardto> user1@thirddomain.com </forwardto>
             <forwardto> user2@fourthdomain.com </forwardto>
         </mailet>

I just downloaded 2.2.0RC2 and was looking at the XMLVirtualUserTable but it 
doesn't list n:1 or n:n functionality.  This case is fairly simple and 2 1:n 
relationships would work, but what is more common is using this as an alias 
system (n:1) to route aliases in my domain to an external mailing address.

Is there any new way to do what I've described above or will I have to stay 
with my current solution?

Thanks,

Eric

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: XML Virtual User Table n:n mapping

Posted by Eric Weidner <es...@speakeasy.org>.
I guess I should have been more clear.  The example was trivial.

Thinking further, I can see how the regex matcher could suit my needs.

Thanks,

Eric

On Thursday 22 April 2004 01:14 pm, Noel J. Bergman wrote:
> >  <mailet match="RecipientIs=all@yourdomain.com,all@yourotherdomain.com"
> >          class="Forward">
> >    <forwardto> user1@thirddomain.com </forwardto>
> >    <forwardto> user2@fourthdomain.com </forwardto>
> >  </mailet>
> >
> > I just downloaded 2.2.0RC2 and was looking at the XMLVirtualUserTable but
> > it doesn't list n:1 or n:n functionality.
>
> How does:
>
>   <mailet match="All" class="XMLVirtualUserTable">
>
> <mapping>all@yourdomain.com=user1@thirddomain.com;user2@fourthdomain.com</m
>a pping>
>
> <mapping>all@yourotherdomain.com=user1@thirddomain.com;user2@fourthdomain.c
>o m</mapping>
>   </mailet>
>
> differ from your example?  For more complex mappings, you could use the
> regex notation.
>
> 	--- Noel
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


RE: XML Virtual User Table n:n mapping

Posted by "Noel J. Bergman" <no...@devtech.com>.
>  <mailet match="RecipientIs=all@yourdomain.com,all@yourotherdomain.com"
>          class="Forward">
>    <forwardto> user1@thirddomain.com </forwardto>
>    <forwardto> user2@fourthdomain.com </forwardto>
>  </mailet>

> I just downloaded 2.2.0RC2 and was looking at the XMLVirtualUserTable but
> it doesn't list n:1 or n:n functionality.

How does:

  <mailet match="All" class="XMLVirtualUserTable">

<mapping>all@yourdomain.com=user1@thirddomain.com;user2@fourthdomain.com</ma
pping>

<mapping>all@yourotherdomain.com=user1@thirddomain.com;user2@fourthdomain.co
m</mapping>
  </mailet>

differ from your example?  For more complex mappings, you could use the
regex notation.

	--- Noel


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org