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

2014-01-14 Thread Greg Rivers
On Tue, 14 Jan 2014, Steffen Kaiser wrote: "FEATURE(`preserve_local_plus_detail')" is actually one of the first things I tried when I started working on this problem, but it doesn't quite work with the standard configuration: $ sendmail -bv -d21.12 gcr+xy...@badger.tharned.org -rule match

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

2014-01-14 Thread Steffen Kaiser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sun, 12 Jan 2014, Greg Rivers wrote: On Sat, 11 Jan 2014, Steffen wrote: I have: ... deliverable: mailer local, user uid+detail instead of "deliverable: mailer local, host detail, user gcr" Hmm, see http://etutorials.org/Server+Administration

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

2014-01-12 Thread Greg Rivers
On Sat, 11 Jan 2014, Steffen wrote: I have: ... deliverable: mailer local, user uid+detail instead of "deliverable: mailer local, host detail, user gcr" Hmm, see http://etutorials.org/Server+Administration/Sendmail/Part+I+Build+and+Install/Chapter+4.+Configure+sendmail.cf+with+m4/FEATUREpreser

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

2014-01-10 Thread Steffen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Greg Rivers wrote: > On Fri, 10 Jan 2014, Steffen Kaiser wrote: > >> try sendmail -bv -d60.5 -d27.2 -d21.12 >> gcr+det...@badger.tharned.org >> >> - -d60.5 - trace map lookups - -d27.2 - traces processing of >> aliases and forwards - -d21.12 - trace

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

2014-01-10 Thread Greg Rivers
On Fri, 10 Jan 2014, Steffen Kaiser wrote: try sendmail -bv -d60.5 -d27.2 -d21.12 gcr+det...@badger.tharned.org - -d60.5 - trace map lookups - -d27.2 - traces processing of aliases and forwards - -d21.12 - trace R line processing IMHO: If all map lookups return NOTFOUND, the detail is preserv

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

2014-01-09 Thread Steffen Kaiser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, 9 Jan 2014, Greg Rivers wrote: On Thu, 9 Jan 2014, Steffen Kaiser wrote: On Tue, 7 Jan 2014, Greg Rivers wrote: [snip] So for the archives, to get sieve's "envelope :detail ..." working with sendmail and dovecot LMTP, do the following:

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

2014-01-09 Thread Greg Rivers
On Thu, 9 Jan 2014, Steffen Kaiser wrote: On Tue, 7 Jan 2014, Greg Rivers wrote: [snip] 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 foll

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

2014-01-08 Thread Steffen Kaiser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 7 Jan 2014, Greg Rivers wrote: On Mon, 6 Jan 2014, I wrote: I found this[1] thread that describes the same problem with dovecot-LDA, but the solution (add X-Original-To: header) has no effect with LMTP. My sendmail LMTP configuration: FEA

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

2014-01-08 Thread Greg Rivers
On Wed, 8 Jan 2014, Charles Marcus wrote: On 2014-01-08 2:27 PM, Greg Rivers wrote: Given that LMTP does in fact parse X-Original-To (or any other header of your choice) when lda_original_recipient_header is defined, I think one would say that dovecot LMTP does already support this natively.

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

2014-01-08 Thread Greg Rivers
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 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

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

2014-01-08 Thread Miquel van Smoorenburg
On 8-01-14 5:46 PM, Charles Marcus wrote: On 2014-01-07 9:20 PM, Greg Rivers 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 r

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

2014-01-08 Thread Charles Marcus
On 2014-01-08 2:27 PM, Greg Rivers wrote: Given that LMTP does in fact parse X-Original-To (or any other header of your choice) when lda_original_recipient_header is defined, I think one would say that dovecot LMTP does already support this natively. So it's not really a hack, it's just a mat

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

2014-01-08 Thread Greg Rivers
On Tue, 7 Jan 2014, Sean Kamath wrote: Glad to know my "for the archives" message(*) helped. :-) Indeed it did. Thanks! I was surprised to find that sendmail does not pass +detail during LMTP, even though the default EnvToL rewrite rule declared in the local LMTP mailer definition preserve

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

2014-01-08 Thread Charles Marcus
On 2014-01-07 9:20 PM, Greg Rivers wrote: On Mon, 6 Jan 2014, I wrote: I found this[1] thread that describes the same problem with dovecot-LDA, but the solution (add X-Original-To: header) has no effect with LMTP. My sendmail LMTP configuration: FEATURE(`local_lmtp',`[IPC]',`FILE /var/run/d

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

2014-01-07 Thread Greg Rivers
On Mon, 6 Jan 2014, I wrote: I found this[1] thread that describes the same problem with dovecot-LDA, but the solution (add X-Original-To: header) has no effect with LMTP. My sendmail LMTP configuration: FEATURE(`local_lmtp',`[IPC]',`FILE /var/run/dovecot/lmtp') Sendmail's address test indica

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

2014-01-06 Thread Greg Rivers
I found this[1] thread that describes the same problem with dovecot-LDA, but the solution (add X-Original-To: header) has no effect with LMTP. My sendmail LMTP configuration: FEATURE(`local_lmtp',`[IPC]',`FILE /var/run/dovecot/lmtp') Sendmail's address test indicates that sendmail is providing