On Sun, Apr 08, 2012 at 06:11:53PM -0700, Daniel L. Miller wrote: > Whatever I did or said that got people upset - I apologize. > Please allow me to rephrase.
I was not upset, hope you did not take it that way. Although now that you mention it, I could be a bit annoyed at the line wrapping in this post. ;) > I make use of the Delivered-To and X-Original-To headers that > are set via the pipe transport (and when I used it, the virtual In general I don't care for using mail headers to control delivery. > transport). I'm using the Dovecot lda via the pipe connection. > Dovecot offers a lmtp delivery agent that is (so I'm told) more > efficient. Probably so. It's a single long-running process, as opposed to invocation of a separate LDA process per delivery. > I don't see any flag options for the ltmp transport that are > similar to pipe - however in the past people have suggested ways of > using existing Postfix features to accomplish specific tasks in > ways that were not immediately obvious to me - generally because > while the features were documented, I either didn't understand or > simply didn't think of using them in that particular fashion. The > lmtp transport has a whole host of available settings - many of > which I don't immediately understand. So - with this preface in > mind, I humbly ask: > > Is there a method by which I can have these headers added while > using lmtp? I looked at "postconf | grep ^lmtp", and saw this gem: http://www.postfix.org/postconf.5.html#lmtp_header_checks which can probably do what you need. See also: http://www.postfix.org/header_checks.5.html Unfortunately this is a bit of a kludge, because there's no sure way to prepend a header specific to each recipient (unless I missed something, in which case I will probably be corrected. :) ) > If not, then before I make a feature request via whatever the > appropriate and correct channels may be (Right here would be the best place.) > - is there a particular reason why these headers are not already > an option via lmtp (aside from nobody asking for or seeing the > need previously). Is there an architectural or conceptual reason > why these headers should not be added via an lmtp connection? I can think of a few. First, lmtp(8) is actually the smtp(8) binary addressed by a different name. smtp does not do final delivery of mail (final to US, but not going straight to a mailbox.) It would be presumptuous to add Delivered-To: headers, and wrong when there are multiple recipients. Second, it really seems more appropriate to do this in the LMTP daemon. It gets the envelope recipient for each mail and can do this (in theory) much better and more accurately than Postfix can. We don't know what the LMTP daemon is going to do with that mail ... perhaps it will be rewritten and forwarded on somehow. I think if there is to be a feature request here, it should be for a macro for lmtp_header_checks to access the envelope recipient. But that might not be possible, because although LMTP means you get per-recipient codes after DATA, it might not mean that the DATA is actually split. That seems to be the bottom line of all this musing: it won't work right unless the DATA is split per-recipient. So you need to take this up on the Dovecot list (which I see you have done.) -- http://rob0.nodns4.us/ -- system administration and consulting Offlist GMX mail is seen only if "/dev/rob0" is in the Subject: