On 2012-07-17 6:18 AM, Charles Marcus CMarcus@Media-Brokers.com wrote:
lda_original_recipient_header = X-Original-To lmtp_save_to_detail_mailbox = yes
Ok, I think this is the problem...
Dovecot's LMTP currently does NOT preserve the x-original-to header... in fact, brought this up recently (I was one of the ones interested in Timo adding support for it) on this (and the postfix, which is what I use) on this very list:
http://www.dovecot.org/list/dovecot/2012-April/065075.html
Apparently, after Timo discussed this on the postfix list, he determined that it would not be a very significant change for him to make to add support for this header in LMTP and that he would get to it sooner than later, but as of now, it has not been added.
Ok, that's what I get for replying to an email like this before having at least my first cup of coffee... ;)
What Timo said was that LMTP doesn't currently have support for *adding* the headers, but it doesn't remove them either, so I misspoke when I said it doesn't *preserve* the headers - it does.
I had asked the question specifically because postfix's LMTP support does *not* provide the header, so Timo figured a way to add support for adding it in dovecot's LMTP implementation (but it currently doesn't have it).
So, since apparently sendmail *does* add it to its LMTP implementation, and apparently your sieve script works properly when it is present, you need it for it to work correctly.
Why, I do not know, but someone else with more knowledge can probably answer that one now.
--
Best regards,
Charles