Re: [Exim] log_as_local and lmtp over TCP

Top Page
Delete this message
Reply to this message
Author: Oliver Eikemeier
Date:  
To: exim-users, Philip Hazel
Subject: Re: [Exim] log_as_local and lmtp over TCP
Philip Hazel wrote:
> On Thu, 24 Apr 2003, Oliver Eikemeier wrote:
>
>>The following router/transport combination does not log a delivery as local:
>>
>>localuser:
>> driver = accept
>> transport = lmtp_delivery
>> log_as_local
>>
>>lmtp_delivery:
>> driver = smtp
>> protocol = lmtp
>
> Well, it *isn't* "local" in the Exim sense, is it? "Local" to Exim means
> "on this host", and SMTP deliveries are to other hosts...
>
>>but this one does:
>>
>>localuser:
>> driver = accept
>> transport = lmtp_delivery
>> log_as_local
>>
>>lmtp_delivery:
>> driver = lmtp
>
> The lmtp transport does indeed delivery on the local host.


The point is that I *tell* Exim that the delivery is local because I
*know* it is local (I even have to set "self = send" on the router), and
Exim silently ignores me... sniff ;-(

>>/* We start with just the local part for pipe, file, and reply
>>deliveries, and for successful local deliveries from routers that have
>>the log_as_local flag set. */
>
> My idea was that people would only want this "local" kind of logging for
> truly local deliveries.


The delivery is local. I do the delivery over TCP because then I can
have a failover host with an identical configuration.

>>Does it make sense not to check for addr->transport->info->local?
>
> I would not like to do this without making it optional because I suspect
> there are cases where people use "accept" routers (where log_as_local is
> true by default) to send messages to other (usually internal) hosts, and
> they expect the "non-local" style of logging. The default for "accept"
> was chosen so that Exim 4 by default was more or less compatible with
> Exim 3 in this regard. I think one would have to add
> "log_remote_as_local" or something to do what you want. Or possibly
> invent log_as_local for the transport.


Probably most people consider internal hosts "local", like a "local area
network" and wouldn't be surprised.

Hmmm... Did I make it on the wishlist(tm)? "Way to treat a delivery a
local, even if Exim thinks otherwise". Ok, I admit, it is purely cosmetic.

Oliver