Re: [exim] force different host for delivery

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Jeremy C. Reed
CC: exim-users
Subject: Re: [exim] force different host for delivery
On Thu, 9 Mar 2006, Jeremy C. Reed wrote:

> Any way to force delivery of queued emails to a different host via the
> command line (without modifying configure each time I need this done)?


I don't think there is any way of doing this. If you need to do it a
lot, I suggest some scheme whereby you have a redirect router that gets
data from a file, but passes if it cannot match up the domain with
anything in the file. Then you just need to update the file.

> I also attempted (after uncommenting "allow_domain_literals") using exim
> -Mar to use add an email address with IP.
>
> But then, when I use no brackets it bounces with "Unrouteable address"
> when exim attempts to deliver.


As well as allow_domain_literals (which allows the syntax) you also need
to enable a router to handle them (an ipliteral router).

> And when I use brackets, it bounces with:
> mail domain "[a.b.c.d]" is syntactically invalid


That should work when allow_domain_literals is true, assuming that by
a.b.c.d you mean an IP address.

-- 
Philip Hazel            University of Cambridge Computing Service
Get the Exim 4 book:    http://www.uit.co.uk/exim-book