LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Need to migrate from Sendmail to Exim (https://www.linuxquestions.org/questions/red-hat-31/need-to-migrate-from-sendmail-to-exim-661912/)

mfrafique 08-11-2008 01:24 AM

Need to migrate from Sendmail to Exim
 
Hi Guys

We need to shift users(relay users) from sendmail to exim,problem is we have mailertable in sendmail for smart route and in exim we have in exim.conf

smarthost:
driver = manualroute
domains = test.com
transport = remote_smtp
route_data = "mail.test.com"

we have another way found(but not confirmed) which is smarthost define in exim.conf and make a different file for domians,given is smarthost format and file format(mailertable in exim)

'exim.conf' entry
smarthost5:
driver = manualroute
transport = remote_smtp
route_data = ${lookup{$domain}lsearch{/etc/exim/mailertable}


'mailertable' file:



test.com: mail.test.com

And found following error:

2008-08-08 14:28:24 H=bay0-omc3-s2.bay0.hotmail.com [65.54.246.202] sender verif y defer for <test@hotmail.com>: failed to expand "${lookup{$domain}lsearch{ /etc/exim/mailertable}": missing or misplaced { or }
2008-08-08 14:28:24 H=bay0-omc3-s2.bay0.hotmail.com [65.54.246.202] F=<mfrafique @hotmail.com> temporarily rejected RCPT <test123@test.com>: Could not complete fy defer for <mfrafique@hotmail.com>: failed to expand "${lookup{$domain}lsearch



Could anyone guide me in this regard how we can define multiple domians for relay in exim.

stuart_cherrington 08-12-2008 10:19 AM

looks like a typo
 
Your line

route_data = ${lookup{$domain}lsearch{/etc/exim/mailertable}

is missing a '}'

I think it should be

route_data = ${lookup{$domain}lsearch{/etc/exim/mailertable}}

HTH

Stuart.


All times are GMT -5. The time now is 08:04 AM.