Re: [exim] Routing Email between Exim4 and Exchange

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Magnus Holmgren
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [exim] Routing Email between Exim4 and Exchange
On Friday 01 December 2006 15:00, Jeb Barger wrote:
> Craig Whitmore wrote:
> > ----- Original Message ----- From: "Jeb Barger" <jeb@???>
> > To: <Exim-users@???>
> > Sent: Friday, December 01, 2006 10:39 AM
> > Subject: [exim] Routing Email between Exim4 and Exchange
> >
> >> I'm sure this has been asked many times before, but I am stumped.
> >
> > I've just done this recently.. its a little bit of a hack .This is put
> > before the local delivery.
> >
> > force_exchange:
> >  condition                = ${lookup mysql {EXCHANGE_USER}{$value}}
> >  debug_print              = "R: force_exchange for $local_part@$domain "
> >  driver                   = manualroute
> >  transport               = remote_smtp
> >  route_list              = *  1.1.1.1
> >  no_more

> >
> > EXCHANGE_USER is a mysql query which returns true if $local_part@$domain
> > should be sent to the exchange server (1.1.1.1 = the ip address of the
> > exchange server)
> > Thanks
> > Craig
>
> Could I do this to change the mysql query to a file search?
>
> condition = ${lookup{$local_part}lsearch{/etc/exim/forward}}


Try this instead:

local_parts = lsearch;/etc/exim/forward

-- 
Magnus Holmgren        holmgren@???
                       (No Cc of list mail needed, thanks)


"Exim is better at being younger, whereas sendmail is better for
Scrabble (50 point bonus for clearing your rack)" -- Dave Evans