-----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:
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
Second: My Debian sendmail v8.14.4 does pass +detail to LMTP.
Mlocal, P=[IPC], F=lsDFMAw5:/|@qPSXnz9, S=EnvFromSMTP/HdrFromL,
R=EnvToL/HdrToL,
T=DNS/RFC822/SMTP,
A=FILE /var/run/dovecot2.2/lmtp
looks like just:
FEATURE(`local_lmtp',`[IPC]',`FILE /var/run/dovecot2.2/lmtp')dnl
of my mc-file effects it.
Now this is a really useful data point! I have exactly the same
configuration on FreeBSD running sendmail v8.14.7:
FEATURE(`local_lmtp',`[IPC]',`FILE /var/run/dovecot/lmtp')
Mlocal, P=[IPC], F=lsDFMAw5:/|@qPSXmnz9, S=EnvFromSMTP/HdrFromL,
R=EnvToL/HdrToL,
T=DNS/RFC822/SMTP,
A=FILE /var/run/dovecot/lmtp
The use of forwarding, aliases or virtuser table might strip the detail,
you need to do explicitly preserve the +detail with those. Retry with a
recipient without any rewriting and from the local host.
echo TEST | sendmail -v recpient+det...@yourdomain.tld
Received: from ux-2s11.inf.fh-bonn-rhein-sieg.de
by ux-2s11.inf.fh-bonn-rhein-sieg.de (Dovecot) with LMTP id
aC4NEHRMzlK7dgAALie3fw
for <uid+detail>; Thu, 09 Jan 2014 08:15:00 +0100
I'm not using any aliases or virtuser table in my tests, yet my sendmail DOES
NOT pass +detail to LMTP:
$ echo TEST | sendmail -v gcr+det...@badger.tharned.org
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 preserved,
otherwise it is the duty of the map to preserve the detail.
- --
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBUs+gEF3r2wJMiz2NAQJIlAf/QACnGp0vP2xqyCrt9KV4KUdEFrmEGZvg
XaKIsY5CtTL3y8UM9iA5YCDTICe3/Gh8vz2G2OBF0zMwSXMiMFuCW6AXQ+YX+S7o
73WyGNmq/omom9uS8D64tbaSXu2BiywMYkg40yr9XyRnWG3MgTRJaighBCtBzQFN
wUeL978qol1Z1cGUqcuTry/sVJni2M4thfP+DTlcwK6+xNqrhOB2VdHFhQurDOPq
Ib/obPjVYDD3rhjzFpMsJK+M8IxJo4uJecURSOvgEri94iegMqo2fEoew4129SZr
fiQniB0CCuOXpic9QKg9lYI3hTujnCBIhMjEFCgYsu+UGmQf9ykxVA==
=eT4A
-----END PGP SIGNATURE-----