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 Ivan Jouikov <iv...@ablogic.net> on 2005/07/06 09:46:49 UTC

Can JAMES do mail forwarding?

Here's the scenario:
 
An email domain "woo.com" has its MX pointing to my server which's
running james as a mail server
 
My client who owns woo.com wants so that all the mail that hits
*@woo.com is forwarded to her @hotmail.com email.
 
Is there a way to accomplish that?

RE: Can JAMES do mail forwarding?

Posted by Daniel Perry <d....@netcase.co.uk>.
not that i know of. (other than list archives)

It's pretty straight forward:

create the database table (assuming you already have a db repository, then
use that)

stick the mailet in - quite early on in root processor.  If you have a
hostisnotlocal matcher designed to stop relaying then it must be before the
jdbccirtualusertable mailet.

enter data into table.

Works a treat.

Have a go and experiment a bit.  Any probs, just ask the list!

Daniel.


> -----Original Message-----
> From: Ivan Jouikov [mailto:ivan@ablogic.net]
> Sent: 06 July 2005 09:52
> To: 'James Users List'
> Subject: RE: Can JAMES do mail forwarding?
>
>
> Is there any good docs on that virutalusertable?  There's a brief
> description on the james website, but that definitely doesn't explain
> how to set it up or nothing like that..
>
> >-----Original Message-----
> >From: Daniel Perry [mailto:d.perry@netcase.co.uk]
> >Sent: Wednesday, July 06, 2005 2:32 AM
> >To: James Users List
> >Subject: RE: Can JAMES do mail forwarding?
> >
> >You might also be interested in JDBC/XML VirtualUserTable.
> >
> >That way one mailet can map as many addresses as you like.  You can
> specify
> >forwarders for single addresses:
> >user:admin domain woo.com targetaddress:other@hotmail.com
> >
> >or all addresses:
> >user:% domain:woo.com targetaddress:blah@hotmail.com
> >
> >or both - if it doesnt match single, it uses the default.
> >
> >Daniel.
> >
> >
> >
> >> -----Original Message-----
> >> From: Ivan Jouikov [mailto:ivan@ablogic.net]
> >> Sent: 06 July 2005 09:27
> >> To: 'James Users List'
> >> Subject: RE: Can JAMES do mail forwarding?
> >>
> >>
> >> Heh thanks, you're like my personal jesus Christ!
> >>
> >> I guess I should apologize as I could have probably found those
> things
> >> in the doc, but thanks a lot!
> >>
> >> >-----Original Message-----
> >> >From: Vincenzo Gianferrari Pini
> >> [mailto:vincenzo.gianferraripini@praxis.it]
> >> >Sent: Wednesday, July 06, 2005 2:19 AM
> >> >To: James Users List
> >> >Subject: Re: Can JAMES do mail forwarding?
> >> >
> >> >Ivan Jouikov wrote:
> >> >
> >> >>Wow thanks!
> >> >>
> >> >>Wouldn't that be a big excessive if I have many clients who want
> this?
> >> >>
> >> >>
> >> >Absolutely no problem.
> >> >
> >> >>Also, can I make it not host-specific, but address-specific?  Like
> >> >>admin@woo.com, not just *@woo.com ?
> >> >>
> >> >>
> >> >        <mailet match="SenderIs=admin@woo.com" class="Forward">
> >> >           <forwardto> xyz@hotmail.com </forwardto>
> >> >        </mailet>
> >> >
> >> >>
> >> >>
> >> >>>-----Original Message-----
> >> >>>From: Vincenzo Gianferrari Pini
> >> >>>
> >> >>>
> >> >>[mailto:vincenzo.gianferraripini@praxis.it]
> >> >>
> >> >>
> >> >>>Sent: Wednesday, July 06, 2005 2:09 AM
> >> >>>To: James Users List
> >> >>>Subject: Re: Can JAMES do mail forwarding?
> >> >>>
> >> >>>Yes, put the following in config.xml:
> >> >>>
> >> >>>        <mailet match="SenderHostIs=woo.com" class="Forward">
> >> >>>           <forwardto> xyz@hotmail.com </forwardto>
> >> >>>        </mailet>
> >> >>>
> >> >>>Ivan Jouikov wrote:
> >> >>>
> >> >>>
> >> >>>
> >> >>>>Here's the scenario:
> >> >>>>
> >> >>>>An email domain "woo.com" has its MX pointing to my server
> which's
> >> >>>>running james as a mail server
> >> >>>>
> >> >>>>My client who owns woo.com wants so that all the mail that hits
> >> >>>>*@woo.com is forwarded to her @hotmail.com email.
> >> >>>>
> >> >>>>Is there a way to accomplish that?
> >> >>>>
> >> >>>>
> >> >>>>
> >> >>>>
> >> >>>>
> >>
> >>>---------------------------------------------------------------------
> >> >>>To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> >> >>>For additional commands, e-mail: server-user-help@james.apache.org
> >> >>>
> >> >>>
> >> >>>
> >> >>>--
> >> >>>No virus found in this incoming message.
> >> >>>Checked by AVG Anti-Virus.
> >> >>>Version: 7.0.323 / Virus Database: 267.8.9/41 - Release Date:
> >> 7/5/2005
> >> >>>
> >> >>>
> >> >>
> >> >>
> >> >>
> >>
> >>---------------------------------------------------------------------
> >> >>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
> >> >
> >> >
> >> >
> >> >--
> >> >No virus found in this incoming message.
> >> >Checked by AVG Anti-Virus.
> >> >Version: 7.0.323 / Virus Database: 267.8.9/41 - Release Date:
> 7/5/2005
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> 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
> >
> >
> >
> >--
> >No virus found in this incoming message.
> >Checked by AVG Anti-Virus.
> >Version: 7.0.323 / Virus Database: 267.8.9/41 - Release Date: 7/5/2005
>
>
>
> ---------------------------------------------------------------------
> 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: Can JAMES do mail forwarding?

Posted by Ivan Jouikov <iv...@ablogic.net>.
Is there any good docs on that virutalusertable?  There's a brief
description on the james website, but that definitely doesn't explain
how to set it up or nothing like that..

>-----Original Message-----
>From: Daniel Perry [mailto:d.perry@netcase.co.uk]
>Sent: Wednesday, July 06, 2005 2:32 AM
>To: James Users List
>Subject: RE: Can JAMES do mail forwarding?
>
>You might also be interested in JDBC/XML VirtualUserTable.
>
>That way one mailet can map as many addresses as you like.  You can
specify
>forwarders for single addresses:
>user:admin domain woo.com targetaddress:other@hotmail.com
>
>or all addresses:
>user:% domain:woo.com targetaddress:blah@hotmail.com
>
>or both - if it doesnt match single, it uses the default.
>
>Daniel.
>
>
>
>> -----Original Message-----
>> From: Ivan Jouikov [mailto:ivan@ablogic.net]
>> Sent: 06 July 2005 09:27
>> To: 'James Users List'
>> Subject: RE: Can JAMES do mail forwarding?
>>
>>
>> Heh thanks, you're like my personal jesus Christ!
>>
>> I guess I should apologize as I could have probably found those
things
>> in the doc, but thanks a lot!
>>
>> >-----Original Message-----
>> >From: Vincenzo Gianferrari Pini
>> [mailto:vincenzo.gianferraripini@praxis.it]
>> >Sent: Wednesday, July 06, 2005 2:19 AM
>> >To: James Users List
>> >Subject: Re: Can JAMES do mail forwarding?
>> >
>> >Ivan Jouikov wrote:
>> >
>> >>Wow thanks!
>> >>
>> >>Wouldn't that be a big excessive if I have many clients who want
this?
>> >>
>> >>
>> >Absolutely no problem.
>> >
>> >>Also, can I make it not host-specific, but address-specific?  Like
>> >>admin@woo.com, not just *@woo.com ?
>> >>
>> >>
>> >        <mailet match="SenderIs=admin@woo.com" class="Forward">
>> >           <forwardto> xyz@hotmail.com </forwardto>
>> >        </mailet>
>> >
>> >>
>> >>
>> >>>-----Original Message-----
>> >>>From: Vincenzo Gianferrari Pini
>> >>>
>> >>>
>> >>[mailto:vincenzo.gianferraripini@praxis.it]
>> >>
>> >>
>> >>>Sent: Wednesday, July 06, 2005 2:09 AM
>> >>>To: James Users List
>> >>>Subject: Re: Can JAMES do mail forwarding?
>> >>>
>> >>>Yes, put the following in config.xml:
>> >>>
>> >>>        <mailet match="SenderHostIs=woo.com" class="Forward">
>> >>>           <forwardto> xyz@hotmail.com </forwardto>
>> >>>        </mailet>
>> >>>
>> >>>Ivan Jouikov wrote:
>> >>>
>> >>>
>> >>>
>> >>>>Here's the scenario:
>> >>>>
>> >>>>An email domain "woo.com" has its MX pointing to my server
which's
>> >>>>running james as a mail server
>> >>>>
>> >>>>My client who owns woo.com wants so that all the mail that hits
>> >>>>*@woo.com is forwarded to her @hotmail.com email.
>> >>>>
>> >>>>Is there a way to accomplish that?
>> >>>>
>> >>>>
>> >>>>
>> >>>>
>> >>>>
>>
>>>---------------------------------------------------------------------
>> >>>To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> >>>For additional commands, e-mail: server-user-help@james.apache.org
>> >>>
>> >>>
>> >>>
>> >>>--
>> >>>No virus found in this incoming message.
>> >>>Checked by AVG Anti-Virus.
>> >>>Version: 7.0.323 / Virus Database: 267.8.9/41 - Release Date:
>> 7/5/2005
>> >>>
>> >>>
>> >>
>> >>
>> >>
>>
>>---------------------------------------------------------------------
>> >>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
>> >
>> >
>> >
>> >--
>> >No virus found in this incoming message.
>> >Checked by AVG Anti-Virus.
>> >Version: 7.0.323 / Virus Database: 267.8.9/41 - Release Date:
7/5/2005
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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
>
>
>
>--
>No virus found in this incoming message.
>Checked by AVG Anti-Virus.
>Version: 7.0.323 / Virus Database: 267.8.9/41 - Release Date: 7/5/2005



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


RE: Can JAMES do mail forwarding?

Posted by Daniel Perry <d....@netcase.co.uk>.
You might also be interested in JDBC/XML VirtualUserTable.

That way one mailet can map as many addresses as you like.  You can specify
forwarders for single addresses:
user:admin domain woo.com targetaddress:other@hotmail.com

or all addresses:
user:% domain:woo.com targetaddress:blah@hotmail.com

or both - if it doesnt match single, it uses the default.

Daniel.



> -----Original Message-----
> From: Ivan Jouikov [mailto:ivan@ablogic.net]
> Sent: 06 July 2005 09:27
> To: 'James Users List'
> Subject: RE: Can JAMES do mail forwarding?
>
>
> Heh thanks, you're like my personal jesus Christ!
>
> I guess I should apologize as I could have probably found those things
> in the doc, but thanks a lot!
>
> >-----Original Message-----
> >From: Vincenzo Gianferrari Pini
> [mailto:vincenzo.gianferraripini@praxis.it]
> >Sent: Wednesday, July 06, 2005 2:19 AM
> >To: James Users List
> >Subject: Re: Can JAMES do mail forwarding?
> >
> >Ivan Jouikov wrote:
> >
> >>Wow thanks!
> >>
> >>Wouldn't that be a big excessive if I have many clients who want this?
> >>
> >>
> >Absolutely no problem.
> >
> >>Also, can I make it not host-specific, but address-specific?  Like
> >>admin@woo.com, not just *@woo.com ?
> >>
> >>
> >        <mailet match="SenderIs=admin@woo.com" class="Forward">
> >           <forwardto> xyz@hotmail.com </forwardto>
> >        </mailet>
> >
> >>
> >>
> >>>-----Original Message-----
> >>>From: Vincenzo Gianferrari Pini
> >>>
> >>>
> >>[mailto:vincenzo.gianferraripini@praxis.it]
> >>
> >>
> >>>Sent: Wednesday, July 06, 2005 2:09 AM
> >>>To: James Users List
> >>>Subject: Re: Can JAMES do mail forwarding?
> >>>
> >>>Yes, put the following in config.xml:
> >>>
> >>>        <mailet match="SenderHostIs=woo.com" class="Forward">
> >>>           <forwardto> xyz@hotmail.com </forwardto>
> >>>        </mailet>
> >>>
> >>>Ivan Jouikov wrote:
> >>>
> >>>
> >>>
> >>>>Here's the scenario:
> >>>>
> >>>>An email domain "woo.com" has its MX pointing to my server which's
> >>>>running james as a mail server
> >>>>
> >>>>My client who owns woo.com wants so that all the mail that hits
> >>>>*@woo.com is forwarded to her @hotmail.com email.
> >>>>
> >>>>Is there a way to accomplish that?
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>---------------------------------------------------------------------
> >>>To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> >>>For additional commands, e-mail: server-user-help@james.apache.org
> >>>
> >>>
> >>>
> >>>--
> >>>No virus found in this incoming message.
> >>>Checked by AVG Anti-Virus.
> >>>Version: 7.0.323 / Virus Database: 267.8.9/41 - Release Date:
> 7/5/2005
> >>>
> >>>
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>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
> >
> >
> >
> >--
> >No virus found in this incoming message.
> >Checked by AVG Anti-Virus.
> >Version: 7.0.323 / Virus Database: 267.8.9/41 - Release Date: 7/5/2005
>
>
>
> ---------------------------------------------------------------------
> 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: Can JAMES do mail forwarding?

Posted by Ivan Jouikov <iv...@ablogic.net>.
Heh thanks, you're like my personal jesus Christ!

I guess I should apologize as I could have probably found those things
in the doc, but thanks a lot!

>-----Original Message-----
>From: Vincenzo Gianferrari Pini
[mailto:vincenzo.gianferraripini@praxis.it]
>Sent: Wednesday, July 06, 2005 2:19 AM
>To: James Users List
>Subject: Re: Can JAMES do mail forwarding?
>
>Ivan Jouikov wrote:
>
>>Wow thanks!
>>
>>Wouldn't that be a big excessive if I have many clients who want this?
>>
>>
>Absolutely no problem.
>
>>Also, can I make it not host-specific, but address-specific?  Like
>>admin@woo.com, not just *@woo.com ?
>>
>>
>        <mailet match="SenderIs=admin@woo.com" class="Forward">
>           <forwardto> xyz@hotmail.com </forwardto>
>        </mailet>
>
>>
>>
>>>-----Original Message-----
>>>From: Vincenzo Gianferrari Pini
>>>
>>>
>>[mailto:vincenzo.gianferraripini@praxis.it]
>>
>>
>>>Sent: Wednesday, July 06, 2005 2:09 AM
>>>To: James Users List
>>>Subject: Re: Can JAMES do mail forwarding?
>>>
>>>Yes, put the following in config.xml:
>>>
>>>        <mailet match="SenderHostIs=woo.com" class="Forward">
>>>           <forwardto> xyz@hotmail.com </forwardto>
>>>        </mailet>
>>>
>>>Ivan Jouikov wrote:
>>>
>>>
>>>
>>>>Here's the scenario:
>>>>
>>>>An email domain "woo.com" has its MX pointing to my server which's
>>>>running james as a mail server
>>>>
>>>>My client who owns woo.com wants so that all the mail that hits
>>>>*@woo.com is forwarded to her @hotmail.com email.
>>>>
>>>>Is there a way to accomplish that?
>>>>
>>>>
>>>>
>>>>
>>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>>For additional commands, e-mail: server-user-help@james.apache.org
>>>
>>>
>>>
>>>--
>>>No virus found in this incoming message.
>>>Checked by AVG Anti-Virus.
>>>Version: 7.0.323 / Virus Database: 267.8.9/41 - Release Date:
7/5/2005
>>>
>>>
>>
>>
>>
>>---------------------------------------------------------------------
>>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
>
>
>
>--
>No virus found in this incoming message.
>Checked by AVG Anti-Virus.
>Version: 7.0.323 / Virus Database: 267.8.9/41 - Release Date: 7/5/2005



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


Re: Can JAMES do mail forwarding?

Posted by Vincenzo Gianferrari Pini <vi...@praxis.it>.
Ivan Jouikov wrote:

>Wow thanks!
>
>Wouldn't that be a big excessive if I have many clients who want this?
>  
>
Absolutely no problem.

>Also, can I make it not host-specific, but address-specific?  Like
>admin@woo.com, not just *@woo.com ?
>  
>
        <mailet match="SenderIs=admin@woo.com" class="Forward">
           <forwardto> xyz@hotmail.com </forwardto>
        </mailet>

>  
>
>>-----Original Message-----
>>From: Vincenzo Gianferrari Pini
>>    
>>
>[mailto:vincenzo.gianferraripini@praxis.it]
>  
>
>>Sent: Wednesday, July 06, 2005 2:09 AM
>>To: James Users List
>>Subject: Re: Can JAMES do mail forwarding?
>>
>>Yes, put the following in config.xml:
>>
>>        <mailet match="SenderHostIs=woo.com" class="Forward">
>>           <forwardto> xyz@hotmail.com </forwardto>
>>        </mailet>
>>
>>Ivan Jouikov wrote:
>>
>>    
>>
>>>Here's the scenario:
>>>
>>>An email domain "woo.com" has its MX pointing to my server which's
>>>running james as a mail server
>>>
>>>My client who owns woo.com wants so that all the mail that hits
>>>*@woo.com is forwarded to her @hotmail.com email.
>>>
>>>Is there a way to accomplish that?
>>>
>>>
>>>
>>>      
>>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>For additional commands, e-mail: server-user-help@james.apache.org
>>
>>
>>
>>--
>>No virus found in this incoming message.
>>Checked by AVG Anti-Virus.
>>Version: 7.0.323 / Virus Database: 267.8.9/41 - Release Date: 7/5/2005
>>    
>>
>
>
>
>---------------------------------------------------------------------
>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: Can JAMES do mail forwarding?

Posted by Ivan Jouikov <iv...@ablogic.net>.
Wow thanks!

Wouldn't that be a big excessive if I have many clients who want this?

Also, can I make it not host-specific, but address-specific?  Like
admin@woo.com, not just *@woo.com ?

>-----Original Message-----
>From: Vincenzo Gianferrari Pini
[mailto:vincenzo.gianferraripini@praxis.it]
>Sent: Wednesday, July 06, 2005 2:09 AM
>To: James Users List
>Subject: Re: Can JAMES do mail forwarding?
>
>Yes, put the following in config.xml:
>
>         <mailet match="SenderHostIs=woo.com" class="Forward">
>            <forwardto> xyz@hotmail.com </forwardto>
>         </mailet>
>
>Ivan Jouikov wrote:
>
>>Here's the scenario:
>>
>>An email domain "woo.com" has its MX pointing to my server which's
>>running james as a mail server
>>
>>My client who owns woo.com wants so that all the mail that hits
>>*@woo.com is forwarded to her @hotmail.com email.
>>
>>Is there a way to accomplish that?
>>
>>
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>For additional commands, e-mail: server-user-help@james.apache.org
>
>
>
>--
>No virus found in this incoming message.
>Checked by AVG Anti-Virus.
>Version: 7.0.323 / Virus Database: 267.8.9/41 - Release Date: 7/5/2005



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


Re: Can JAMES do mail forwarding?

Posted by Vincenzo Gianferrari Pini <vi...@praxis.it>.
Yes, put the following in config.xml:

         <mailet match="SenderHostIs=woo.com" class="Forward">
            <forwardto> xyz@hotmail.com </forwardto>
         </mailet>

Ivan Jouikov wrote:

>Here's the scenario:
> 
>An email domain "woo.com" has its MX pointing to my server which's
>running james as a mail server
> 
>My client who owns woo.com wants so that all the mail that hits
>*@woo.com is forwarded to her @hotmail.com email.
> 
>Is there a way to accomplish that?
>
>  
>

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