Autor: Colin Data: A: exim-users Assumpte: Re: [exim] Router/Transport Problem with multiple entries
On 24/10/2011 02:20, Dave Lugo wrote: >
> Well, since you supply hosts with route_data, there is no point in those
> other two options, is there? (I assume you have some smarthost router,
> or a dnslookup router, for stuff you're not static routing )
> Thank you for the clarification, I did not initially understand that the
information was passed between the two. I have removed it from the
transport and everything seems to be working fine now.
>> Incidentally, I thought of a couple of queries with regards to
>> improving the "staticroutes" setup as follows:
>>
>> 1) If I was to put multiple entries for a domain in the staticroutes
>> file, will Exim try each of them in order until one succeeds?
>>
>
> Yes, if you omit (I believe) hosts_randomize from the router. Check
> the docs for the correct syntax for multiple destinations, I forget
> what it
> is at the moment.
> I've dug up chapter 20 of the docs which says the following format in
the file should work so I will set that up later:
>> 2) The transport specifically uses port 25. I was wondering if this
>> could be a default setting but over-ridden if the staticroutes file
>> contained a line such as:
>>
>> domain.com: 1.1.1.1:26
>>
>> I've only had to use an alternate port once when someone's broadband
>> was down. They had a backup freephone dialup but port 25 was blocked
>> on it. I had to write an entirely separate staticroutes2 to use an
>> alternate port back then. It would be nice to have an easy option
>> though!
>>
>
> You could probably do it with some string manipulation in the router
> stanza, but remember that ':' is the default list separator. Perhaps
> someone else can offer a more informed opinion on this. The only time
> I ever run smtp on a non-standard port is when I run a 'test' copy of
> my local exim on port 26, for trying out new stuff on my interal network.
> Well I know that you can supply ports in route_list using double colons
(1.1.1.1::26). I wonder if it is as simple as removing the port = 25
line and using that syntax in /etc/staticroutes
That part is probably something I copied way back when I was getting
started and didn't really comprehend how it actually worked.