Re: [exim] route_list with a port (was:localhost as smarthos…

Top Pagina
Delete this message
Reply to this message
Auteur: Bill Moseley
Datum:  
Aan: exim-users
Oude Onderwerpen: [exim] localhost as smarthost and self = send
Onderwerp: Re: [exim] route_list with a port (was:localhost as smarthost and self = send)
I know I can specify multiple hosts in a route_list, but can I
specify ports for the individual hosts?

For example, with a smart host could I say "Try localhost port 2525,
and if that fails try host mail.server port 25"?

Or will I need to use multiple routers and transports and perhaps
test for some file to exist (as a flag when localhost:2525 tunnel is
enabled) to select the router.

I realize another solution is to just always use the tunnel.

By the way, I has posted the question below without response --
I'm trying to understand more clearly the "self" and "allow_localhost"
options.

Thanks,


On Fri, Jul 15, 2005 at 09:54:45AM -0700, Bill Moseley wrote:
> I'm on vacation (lucky me!) and have a laptop along (not so lucky). I
> want to use a smarthost via a ssh tunnel back to my mailserver.
> I set it up and received the message:
>
>    remote host address is the local host

>
> I think I fixed it with using "self = send" on the Router.
>
> Here's the setup I used:
>
> portforward:
>     driver = domainlist
>     transport = smtp3000
>     route_list = *  localhost  byname
>     # to keep from getting "remote host address is the local host"
>     self = send

>
> and the transport:
>
> smtp3000:
>     driver = smtp
>     port = 3000

>
> Two questions:
>
> 1) is the "remote host address is local host" message due to the
> route_list saying "localhost"? I'm not really clear at what point
> exim determines this -- when all address are getting delivered to
> localhost?
>
> 2) is the "self = send" the correct fix? The exim spec has a warning
> about using the "send" setting, so I'm worried I'm using the wrong fix.
>
> Ok, maybe three questions. I also see the "allow_localhost" in the
> docs, but I'm not clear how or when that would be used. Does that
> apply in this case?
>
>
> Yes, this is exim 3.36 -- the laptop is Debian Sid and I haven't
> updated its exim version yet. All it every does is deliver all mail
> to a smarthost.
>
>


--
Bill Moseley
moseley@???