Re: [Exim] allow_localhost (smtp) does not work?

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Philip Hazel
Datum:  
To: Valentin Nechayev
CC: exim-users
Betreff: Re: [Exim] allow_localhost (smtp) does not work?
On Thu, 7 Aug 2003, Valentin Nechayev wrote:

> total_relay:
> driver = manualroute
> domains = ! +local_domains
> transport = segfault_smtp
> route_data = segfault.kiev.ua
> no_more
> no_verify_sender
>
> [...]
>
> segfault_smtp:
> driver = smtp
> hosts = segfault.kiev.ua
> hosts_override
> allow_localhost
>
> But test (`exim -d+route -bv netch@???') fails:


When you run -bv, it is testing the routing. It doens't go near the
transport.

> LOG: MAIN
> remote host address is the local host: segfault.kiev.ua (while routing <netch@???>)


> It seems as it even doesn't doing check for allow_localhost...


That's because allow_localhost applies only when the transport is run,
and it applies to the hosts defined in the transport.

If you want to allow local hosts to get through the routing, you need to
set the "self" option on the router.


--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book