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

Greg Rivers gcr+dovecot at tharned.org
Wed Jan 8 22:54:36 EET 2014


On Wed, 8 Jan 2014, Miquel van Smoorenburg wrote:

> 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.
>

That's a really good point I hadn't considered.  Even without this 
complication, it would obviously be better to have sendmail provide 
user+deatil via RCPT TO during LMTP.  But I don't know to accomplish that. 
Does anyone else know?

-- 
Greg



More information about the dovecot mailing list