[Dovecot] Dovecot LMTP does not pass envelope recipient +detail to sieve

Miquel van Smoorenburg miquels at cistron.nl
Wed Jan 8 22:12:19 EET 2014


On 8-01-14 5:46 PM, Charles Marcus wrote:
> On 2014-01-07 9:20 PM, Greg Rivers <gcr+dovecot at tharned.org> wrote:
>> So for the archives, to get sieve's "envelope :detail ..." working
>> with sendmail and dovecot LMTP, do the following:
>>
>> 1) Add "lda_original_recipient_header = X-Original-To" to 15-lda.conf
>>
>> 2) Add the following rule to sendmail.mc to add a X-Original-To:
>> header to every message:
>>
>> LOCAL_CONFIG
>> H?${u}?X-Original-To: $u

This probably only works if there is exactly one RCPT TO in the LMTP 
session. If there are multiple recipients, sendmail cannot add that 
header. What should it contain?

So you have to limit sendmail to max. one recipient per LMTP session. 
Hopefully you don't use SIS.

Mike.


More information about the dovecot mailing list