2 Feb 2010 09:51
Re: LMTP-Server: missing headers
Steffen Kaiser <skdovecot <at> smail.inf.fh-brs.de>
2010-02-02 08:51:13 GMT
2010-02-02 08:51:13 GMT
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 valueRegards, -- -- Steffen Kaiser
Regards,
RSS Feed