On Friday 01 December 2006 15:00, Jeb Barger wrote: > Craig Whitmore wrote: > > ----- Original Message ----- From: "Jeb Barger" <[EMAIL PROTECTED]> > > To: <[email protected]> > > 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 [EMAIL PROTECTED] " > > driver = manualroute > > transport = remote_smtp > > route_list = * 1.1.1.1 > > no_more > > > > EXCHANGE_USER is a mysql query which returns true if [EMAIL PROTECTED] > > 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 [EMAIL PROTECTED]
(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
pgpSamkMgg8nb.pgp
Description: PGP signature
-- ## List details at http://www.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://www.exim.org/eximwiki/
