Steffen Kaiser | 2 Feb 2010 09:51
Picon

Re: LMTP-Server: missing headers


On Mon, 1 Feb 2010, Timo Sirainen wrote:

> It's beginning to sound like I should add "lmtp_headers" setting where
> you could do all kinds of "interesting" things like:
>
> lmtp_headers = \
>  Return-Path: %f\n \
>  Envelope-To: %t\n \
>  X-Envelope-To: %t\n \
>  X-Original-To: %t\n \
>  Delivered-To: %t\n

Charles wrote:

"Dunno if it is different, but I like having the X-Original-To header -
it lets me see that the message was originally was to an alias (when it
was)."

In LMTPd it is to late to insert that information, therefore I would 
change the syntax a bit, e.g.

   <at> X-Original-To: %t\n
  +X-Original-To: %t\n
  X-Original-To: %t\n

" <at> " forces to overwrite existing headers, "+" adds another header, none 
adds the header if none is present.

In Charles's case, the no-prefix variant would be ideal, because usually 
the MTA has to insert that information, but the user can rely on the 
existance of the header - as a fallback added by lmtpd.

For local headers the value should overwrite any existing header passed 
from the outside.

===

Oh, the syntax should probably allow spaces in the value :-)

Regards,

--

-- 
Steffen Kaiser

Gmane