Re: [exim] Sending from MX to different server based on reci…

Pàgina inicial
Delete this message
Reply to this message
Autor: Dan_Mitton
Data:  
A: Eduardo Trápani
CC: exim-users
Assumpte: Re: [exim] Sending from MX to different server based on recipient address (same domain)
Eduardo,

Take a look at using a manualroute router. Maybe something like below,
close after the 'begin routers' statement:

dovecot_router:
        driver = manualroute
        transport = remote_smtp
        local_parts = <list/file/db/etc. of dovecot users>
        route_data = example.com dovecot.example.com;


zimbra_router:
        driver = manualroute
        transport = remote_smtp
        local_parts = <list/file/db/etc. of zimbra users>
        route_data = example.com zimbra.example.com;


Or you could do other things where you look-up the destination machine
based on the user. There are a few ways to "skin this cat".

Dan



Sent by:        exim-users-bounces@???
To:     exim-users@???
cc:      (bcc: Dan Mitton/YD/RWDOE)
Subject:        [exim] Sending from MX to different server based on 
recipient address (same domain)
LSN: Not Relevant
User Filed as: Not a Record


I'm using exim4 as the MX server. The imap intranet server is being
migrated from dovecot to zimbra.

I'd like to be able to route some addresses in the same domain to the
zimbra server and some to the dovecot server, like this:

user1@??? --> MX --> dovecot
user2@??? ---/ \--> zimbra

Then I can migrate the users by groups (train them, and then go to the
next). Right now all messages go to MX and then to dovecot.

I don't even know how to start, somebody pointed me to virtusertable but
it looks pretty cryptic. Is there another way, or an example on
virtusertable?

Thanks, Eduardo.

--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/