Re: lda or lmtp for sieve?
On 2024-01-21 09:29, Michael Peddemors wrote: On 2024-01-21 04:43, Patrick Domack via dovecot wrote: Quoting Benny Pedersen : Christian Kivalo skrev den 2024-01-21 02:08: Just wish LMTP would not end up with duplicate Return-Path headers.. Duplicate return path headers? I don't see them on my system. All mail is sent from postfix to dovecot with lmtp it simply works better with lda ? :) return-path is std postfix envelope sender pseudo header, bugs ? it's not a pseudo header, it is defined starting in rfc-822, as to be added at time of delievery. The LDA should add it, postfix lda add it (virtual/local) and dovecots do also (lda/lmtp) I have used most postfix versions from 2.1 to 3.8 and dovecot lda and lmtp and haven't have never seen duplicate headers Maybe it is just a Zimbra thing.. but we definitely see this occurring in the wild.. Maybe just poor configuration, but of course as per RFC, to be clear, is only supposed to be added by the 'final' delivery mechanism. So, the logic that implies duplicate Return-Path either indicates a broken system, looping issue, or email replay fails in those situations. Postfix adds... Return-path: Envelope-to: Delivery-date: Fri, 06 Oct 2023 08:56:07 -0300 After which it get handled by lmtp, which adds the following.. Return-Path: Delivered-To: Received: from by with LMTP id CMvDLNf1H2UcHQAAJRWI5g (envelope-from ) for ; Fri, 06 Oct 2023 08:56:07 -0300 I guess this is a double issue, postfix should know that in this case, it is not the final delivery, lmtp is.. and lmtp should probably either remove the previous Return-Path, or copy that to a new header.. since it was not supposed to be there (but that has ramifications too. Also just observed in DirectAdmin, Exim->LMTP as well, but since this is a bit off topic for this list, just mentioning it quickly.. Return-Path: Delivered-To: re...@recipdomain.com Received: from by with LMTP id IdtjNTOesWWKyQUA9oBGDw (envelope-from ) for ; Wed, 24 Jan 2024 15:33:07 -0800 Return-path: Envelope-to: re...@recipdomain.com Delivery-date: Wed, 24 Jan 2024 15:33:07 -0800 Received: from mail.remote.com ([REMOTE_IP]) by with esmtp (Exim 4.97.1) (envelope-from ) id 1rSmjz-0001amd-3RDT for re...@recipdomain.com; Wed, 24 Jan 2024 15:33:07 -0800 -- "Catch the Magic of Linux..." Michael Peddemors, President/CEO LinuxMagic Inc. Visit us at http://www.linuxmagic.com @linuxmagic A Wizard IT Company - For More Info http://www.wizard.ca "LinuxMagic" a Reg. TradeMark of Wizard Tower TechnoServices Ltd. 604-682-0300 Beautiful British Columbia, Canada ___ dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-le...@dovecot.org
Re: lda or lmtp for sieve?
If postfix is adding it, your not using lmtp. Only virtual and local adds it in postfix, lmtp is a symlink to smtp and does not add that header. If your somehow delivering the mail through local, then forwarding it again via lmtp, that would be a bad thing. Maybe look how you have spam/virus/... configured? Are they configured in some kind of loopback config using a lda that it shouldn't be using? I do know in older postfix versions (I haven't tested it in 3.x) if an email came into my postfix server with a return-path header, postfix would strip it out before delivering it via lmtp/smtp Quoting Michael Peddemors : On 2024-01-21 04:43, Patrick Domack via dovecot wrote: Quoting Benny Pedersen : Christian Kivalo skrev den 2024-01-21 02:08: Just wish LMTP would not end up with duplicate Return-Path headers.. Duplicate return path headers? I don't see them on my system. All mail is sent from postfix to dovecot with lmtp it simply works better with lda ? :) return-path is std postfix envelope sender pseudo header, bugs ? it's not a pseudo header, it is defined starting in rfc-822, as to be added at time of delievery. The LDA should add it, postfix lda add it (virtual/local) and dovecots do also (lda/lmtp) I have used most postfix versions from 2.1 to 3.8 and dovecot lda and lmtp and haven't have never seen duplicate headers Maybe it is just a Zimbra thing.. but we definitely see this occurring in the wild.. Maybe just poor configuration, but of course as per RFC, to be clear, is only supposed to be added by the 'final' delivery mechanism. So, the logic that implies duplicate Return-Path either indicates a broken system, looping issue, or email replay fails in those situations. Postfix adds... Return-path: Envelope-to: Delivery-date: Fri, 06 Oct 2023 08:56:07 -0300 After which it get handled by lmtp, which adds the following.. Return-Path: Delivered-To: Received: from by with LMTP id CMvDLNf1H2UcHQAAJRWI5g (envelope-from ) for ; Fri, 06 Oct 2023 08:56:07 -0300 I guess this is a double issue, postfix should know that in this case, it is not the final delivery, lmtp is.. and lmtp should probably either remove the previous Return-Path, or copy that to a new header.. since it was not supposed to be there (but that has ramifications too. -- "Catch the Magic of Linux..." Michael Peddemors, President/CEO LinuxMagic Inc. Visit us at http://www.linuxmagic.com @linuxmagic A Wizard IT Company - For More Info http://www.wizard.ca "LinuxMagic" a Reg. TradeMark of Wizard Tower TechnoServices Ltd. 604-682-0300 Beautiful British Columbia, Canada ___ dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-le...@dovecot.org ___ dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-le...@dovecot.org
Re: lda or lmtp for sieve?
On 2024-01-21 04:43, Patrick Domack via dovecot wrote: Quoting Benny Pedersen : Christian Kivalo skrev den 2024-01-21 02:08: Just wish LMTP would not end up with duplicate Return-Path headers.. Duplicate return path headers? I don't see them on my system. All mail is sent from postfix to dovecot with lmtp it simply works better with lda ? :) return-path is std postfix envelope sender pseudo header, bugs ? it's not a pseudo header, it is defined starting in rfc-822, as to be added at time of delievery. The LDA should add it, postfix lda add it (virtual/local) and dovecots do also (lda/lmtp) I have used most postfix versions from 2.1 to 3.8 and dovecot lda and lmtp and haven't have never seen duplicate headers Maybe it is just a Zimbra thing.. but we definitely see this occurring in the wild.. Maybe just poor configuration, but of course as per RFC, to be clear, is only supposed to be added by the 'final' delivery mechanism. So, the logic that implies duplicate Return-Path either indicates a broken system, looping issue, or email replay fails in those situations. Postfix adds... Return-path: Envelope-to: Delivery-date: Fri, 06 Oct 2023 08:56:07 -0300 After which it get handled by lmtp, which adds the following.. Return-Path: Delivered-To: Received: from by with LMTP id CMvDLNf1H2UcHQAAJRWI5g (envelope-from ) for ; Fri, 06 Oct 2023 08:56:07 -0300 I guess this is a double issue, postfix should know that in this case, it is not the final delivery, lmtp is.. and lmtp should probably either remove the previous Return-Path, or copy that to a new header.. since it was not supposed to be there (but that has ramifications too. -- "Catch the Magic of Linux..." Michael Peddemors, President/CEO LinuxMagic Inc. Visit us at http://www.linuxmagic.com @linuxmagic A Wizard IT Company - For More Info http://www.wizard.ca "LinuxMagic" a Reg. TradeMark of Wizard Tower TechnoServices Ltd. 604-682-0300 Beautiful British Columbia, Canada ___ dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-le...@dovecot.org
Re: lda or lmtp for sieve?
Quoting Benny Pedersen : Christian Kivalo skrev den 2024-01-21 02:08: Just wish LMTP would not end up with duplicate Return-Path headers.. Duplicate return path headers? I don't see them on my system. All mail is sent from postfix to dovecot with lmtp it simply works better with lda ? :) return-path is std postfix envelope sender pseudo header, bugs ? it's not a pseudo header, it is defined starting in rfc-822, as to be added at time of delievery. The LDA should add it, postfix lda add it (virtual/local) and dovecots do also (lda/lmtp) I have used most postfix versions from 2.1 to 3.8 and dovecot lda and lmtp and haven't have never seen duplicate headers ___ dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-le...@dovecot.org
Re: lda or lmtp for sieve?
Christian Kivalo skrev den 2024-01-21 02:08: Just wish LMTP would not end up with duplicate Return-Path headers.. Duplicate return path headers? I don't see them on my system. All mail is sent from postfix to dovecot with lmtp it simply works better with lda ? :) return-path is std postfix envelope sender pseudo header, bugs ? ___ dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-le...@dovecot.org
Re: lda or lmtp for sieve?
Michael Peddemors skrev den 2024-01-21 00:51: Just wish LMTP would not end up with duplicate Return-Path headers.. why ? ___ dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-le...@dovecot.org
Re: lda or lmtp for sieve?
Same here with Exim delivering to Dovecot via LMTP. On Sat, Jan 20, 2024 at 7:23 PM Christian Kivalo wrote: On January 21, 2024 12:51:00 AM GMT+01:00, Michael Peddemors wrote: >On 2024-01-19 16:12, Peter wrote: >> On 20/01/24 12:28, Joe Acquisto wrote: >>> I noticed that many places in the documentation and in examples gleaned from the wilderness, refer to the LDA protocol when discussing sieve. >>> >>> The documentation also mentions that lmtp is preferred over lda, and seems to say in places that sieve will operate without issue in either case. >>> >>> Does it matter to sieve implementation if one uses only lmtp? >> >> LDA is older, think of LMTP as a more modern replacement. LDA has to launch a separate process and process one message at a time. LMTP maintains a running service and can stream multiple messages in a single connection, therefore LMTP is a lot more efficient. >> >> You will see a lot of bad advice on the internet, or old outdated advice. Tutorials that use LDA is an example of old, outdated advice. >> >> Sieve itself doesn't care which one you use, but there are other reasons to prefer LMTP. > >Just wish LMTP would not end up with duplicate Return-Path headers.. Duplicate return path headers? I don't see them on my system. All mail is sent from postfix to dovecot with lmtp -- Christian Kivalo ___ dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-le...@dovecot.org -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 214-642-9640 (c) E-Mail: larry...@gmail.com US Mail: 5708 Sabbia Dr, Round Rock, TX 78665-2106 ___ dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-le...@dovecot.org
Re: lda or lmtp for sieve?
On January 21, 2024 12:51:00 AM GMT+01:00, Michael Peddemors wrote: >On 2024-01-19 16:12, Peter wrote: >> On 20/01/24 12:28, Joe Acquisto wrote: >>> I noticed that many places in the documentation and in examples gleaned >>> from the wilderness, refer to the LDA protocol when discussing sieve. >>> >>> The documentation also mentions that lmtp is preferred over lda, and seems >>> to say in places that sieve will operate without issue in either case. >>> >>> Does it matter to sieve implementation if one uses only lmtp? >> >> LDA is older, think of LMTP as a more modern replacement. LDA has to launch >> a separate process and process one message at a time. LMTP maintains a >> running service and can stream multiple messages in a single connection, >> therefore LMTP is a lot more efficient. >> >> You will see a lot of bad advice on the internet, or old outdated advice. >> Tutorials that use LDA is an example of old, outdated advice. >> >> Sieve itself doesn't care which one you use, but there are other reasons to >> prefer LMTP. > >Just wish LMTP would not end up with duplicate Return-Path headers.. Duplicate return path headers? I don't see them on my system. All mail is sent from postfix to dovecot with lmtp -- Christian Kivalo ___ dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-le...@dovecot.org
Re: lda or lmtp for sieve?
On 2024-01-19 16:12, Peter wrote: On 20/01/24 12:28, Joe Acquisto wrote: I noticed that many places in the documentation and in examples gleaned from the wilderness, refer to the LDA protocol when discussing sieve. The documentation also mentions that lmtp is preferred over lda, and seems to say in places that sieve will operate without issue in either case. Does it matter to sieve implementation if one uses only lmtp? LDA is older, think of LMTP as a more modern replacement. LDA has to launch a separate process and process one message at a time. LMTP maintains a running service and can stream multiple messages in a single connection, therefore LMTP is a lot more efficient. You will see a lot of bad advice on the internet, or old outdated advice. Tutorials that use LDA is an example of old, outdated advice. Sieve itself doesn't care which one you use, but there are other reasons to prefer LMTP. Just wish LMTP would not end up with duplicate Return-Path headers.. -- "Catch the Magic of Linux..." Michael Peddemors, President/CEO LinuxMagic Inc. Visit us at http://www.linuxmagic.com @linuxmagic A Wizard IT Company - For More Info http://www.wizard.ca "LinuxMagic" a Reg. TradeMark of Wizard Tower TechnoServices Ltd. 604-682-0300 Beautiful British Columbia, Canada ___ dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-le...@dovecot.org
Re: lda or lmtp for sieve?
Thanks for the reassurance. It was a reach, hoping for some straw to grasp regarding the managesieve 4190 failure to bind. On 1/19/24 18:28, Joe Acquisto wrote: I noticed that many places in the documentation and in examples gleaned from the wilderness, refer to the LDA protocol when discussing sieve. The documentation also mentions that lmtp is preferred over lda, and seems to say in places that sieve will operate without issue in either case. Does it matter to sieve implementation if one uses only lmtp? ___ dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-le...@dovecot.org ___ dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-le...@dovecot.org
Re: lda or lmtp for sieve?
On 20/01/24 12:28, Joe Acquisto wrote: I noticed that many places in the documentation and in examples gleaned from the wilderness, refer to the LDA protocol when discussing sieve. The documentation also mentions that lmtp is preferred over lda, and seems to say in places that sieve will operate without issue in either case. Does it matter to sieve implementation if one uses only lmtp? LDA is older, think of LMTP as a more modern replacement. LDA has to launch a separate process and process one message at a time. LMTP maintains a running service and can stream multiple messages in a single connection, therefore LMTP is a lot more efficient. You will see a lot of bad advice on the internet, or old outdated advice. Tutorials that use LDA is an example of old, outdated advice. Sieve itself doesn't care which one you use, but there are other reasons to prefer LMTP. Peter ___ dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-le...@dovecot.org
Re: lda or lmtp for sieve?
Does it matter to sieve implementation if one uses only lmtp? No. Works here with only lmtp. -- Christian Kivalo ___ dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-le...@dovecot.org
Re: lda or lmtp for sieve?
Nope. That's what I do. With the new Tainting rules in the Exim MTA, LMTP became the easier of the two. On Fri, Jan 19, 2024 at 5:28 PM Joe Acquisto wrote: I noticed that many places in the documentation and in examples gleaned from the wilderness, refer to the LDA protocol when discussing sieve. The documentation also mentions that lmtp is preferred over lda, and seems to say in places that sieve will operate without issue in either case. Does it matter to sieve implementation if one uses only lmtp? ___ dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-le...@dovecot.org -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 214-642-9640 (c) E-Mail: larry...@gmail.com US Mail: 5708 Sabbia Dr, Round Rock, TX 78665-2106 ___ dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-le...@dovecot.org
lda or lmtp for sieve?
I noticed that many places in the documentation and in examples gleaned from the wilderness, refer to the LDA protocol when discussing sieve. The documentation also mentions that lmtp is preferred over lda, and seems to say in places that sieve will operate without issue in either case. Does it matter to sieve implementation if one uses only lmtp? ___ dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-le...@dovecot.org