vacation auto reply mail line endings CR LF
Hi all,
I tried to setup dovecot 2.3.21.1 (d492236fa0) (dovecot-pigeonhole-0.5.21.1) with the sieve vacation function. I'm getting here a bit into trouble. if I sent an e-mail to an receipient dovecot does via dma and the local mailserver an mail reply but the mail does only have the header inside. After a bit research my conclusion is that the reply mail which gets generated has line endings CR LF. I have to remove this manualy and set it to \LF to get the mail correcly transfered. I Setup the sieve rule with roundcube. I tried to manualy change the .dovecot.sieve file endings and comipled with sievec .dovecot.sieve .dovecot.svbin the binary again, with no change in the behavior. I guess i missed somewhere an variable to fix this issue?
here the sieve file: #################################################### require ["vacation"];^M # rule:[Urlaub]^M if true^M {^M vacation :addresses "test02@projektb-mail.net" :subject "test Urlaub" text:^M test 1 test 2 test 3^M .^M ;^M }^M ####################################################
thank you for your Support
Tobias
Am 20.12.24 um 15:58 schrieb tobias.niethammer--- via dovecot:
I tried to setup dovecot 2.3.21.1 (d492236fa0) (dovecot-pigeonhole-0.5.21.1) with the sieve vacation function. I'm getting here a bit into trouble. if I sent an e-mail to an receipient dovecot does via dma and the local mailserver an mail reply but the mail does only have the header inside. After a bit research my conclusion is that the reply mail which gets generated has line endings CR LF. I have to remove this manualy and set it to \LF to get the mail correcly transfered.
Something is broken with your setup outside of Dovecot then.
RFC5321 2.3.8 Lines: Lines consist of zero or more data characters terminated by the sequence ASCII character "CR" (hex value 0D) followed immediately by ASCII character "LF" (hex value 0A). This termination sequence is denoted as <CRLF> in this document. Conforming implementations MUST NOT recognize or generate any other character or character sequence as a line terminator.
So Dovecot does what is correct, it terminates lines with CRLF.
so I do not find the root cause. Its difficult for me to debug the problem must be somewhere between dovecot and DMA mail agent the spool file in the dma looks like:
################################ Received: from vpopmail (uid 89) (envelope-from dovecot@mx40.projektb.net) id 1008d by mx40.projektb.net (DragonFly Mail Agent v0.11+ on dovecot); Fri, 20 Dec 2024 20:27:42 +0100 X-Sieve: Pigeonhole Sieve 0.5.21.1 (49005e73)^M Message-ID: <dovecot-sieve-1734722862-691938-0@dovecot>^M Date: Fri, 20 Dec 2024 20:27:42 +0100^M From: <test02@projektb-mail.net>^M To: <tobias.niethammer@gmx.net>^M Subject: test Urlaub^M In-Reply-To: <01f701db5315$3b6f4c50$b24de4f0$@gmx.net>^M References: <01f701db5315$3b6f4c50$b24de4f0$@gmx.net>^M Auto-Submitted: auto-replied (vacation)^M Precedence: bulk^M X-Auto-Response-Suppress: All^M MIME-Version: 1.0^M Content-Type: text/plain; charset=utf-8^M Content-Transfer-Encoding: 8bit^M ^M test 1^M test 2^M test 3^M test4^M ^M ################################
there ist an wrong CR LF after the Content-Transfer-Encoding shoud there not be an LF
I modified the .dovecot.sieve file to: require ["vacation"];^M # rule:[Urlaub]^M if true^M {^M vacation :addresses "test02@projektb-mail.net" :subject "test Urlaub" text: test 1 test 2 test 3 test4^M .^M ;^M }^M # rule:[Weiterleitung]^M if true^M {^M redirect "tobias.niethammer@projektb.net";^M }^M
when I run: sudo -u vpopmail sieve-test -D -c /data/etc/dovecot.conf -e .dovecot.sieve test.eml > test.output2 I get following output: ######################################### X-Sieve: Pigeonhole Sieve 0.5.21.1 (49005e73)^M Message-ID: <dovecot-sieve-1734724632-119992-1@dovecot>^M Date: Fri, 20 Dec 2024 20:57:12 +0100^M From: <test02@projektb-mail.net>^M To: <tobias.niethammer@projetkb.net>^M Subject: test Urlaub^M Auto-Submitted: auto-replied (vacation)^M Precedence: bulk^M X-Auto-Response-Suppress: All^M MIME-Version: 1.0^M Content-Type: text/plain; charset=utf-8^M Content-Transfer-Encoding: 8bit^M ^M test 1^M test 2^M test 3^M test4^M ^M X-Sieve: Pigeonhole Sieve 0.5.21.1 (49005e73) X-Sieve-Redirected-From: vpopmail@projektb.net Message-ID: <dovecot-sieve-1734724632-119992-0@dovecot>^M From: tobias.niethammer@projetkb.net To: test02@projektb-mail.net Subject: Test Email
This is a test message.^M ^M ^M
RECIPIENT: tobias.niethammer@projetkb.net START MESSAGE: END MESSAGE
RECIPIENT: tobias.niethammer@projektb.net START MESSAGE: END MESSAGE #########################################
so from my point of view, there is an different line ending on vacation function to the forward function
Have a look here https://notes.sagredo.eu/qmail-notes-185/qmail-inject-sieve-vacationreject-m...
Il 20-12-2024 20:58 tobias.niethammer--- via dovecot ha scritto:
so I do not find the root cause. Its difficult for me to debug the problem must be somewhere between dovecot and DMA mail agent the spool file in the dma looks like:
################################ Received: from vpopmail (uid 89) (envelope-from dovecot@mx40.projektb.net) id 1008d by mx40.projektb.net (DragonFly Mail Agent v0.11+ on dovecot); Fri, 20 Dec 2024 20:27:42 +0100 X-Sieve: Pigeonhole Sieve 0.5.21.1 (49005e73)^M Message-ID: <dovecot-sieve-1734722862-691938-0@dovecot>^M Date: Fri, 20 Dec 2024 20:27:42 +0100^M From: <test02@projektb-mail.net>^M To: <tobias.niethammer@gmx.net>^M Subject: test Urlaub^M In-Reply-To: <01f701db5315$3b6f4c50$b24de4f0$@gmx.net>^M References: <01f701db5315$3b6f4c50$b24de4f0$@gmx.net>^M Auto-Submitted: auto-replied (vacation)^M Precedence: bulk^M X-Auto-Response-Suppress: All^M MIME-Version: 1.0^M Content-Type: text/plain; charset=utf-8^M Content-Transfer-Encoding: 8bit^M ^M test 1^M test 2^M test 3^M test4^M ^M ################################
there ist an wrong CR LF after the Content-Transfer-Encoding shoud there not be an LF
I modified the .dovecot.sieve file to: require ["vacation"];^M # rule:[Urlaub]^M if true^M {^M vacation :addresses "test02@projektb-mail.net" :subject "test Urlaub" text: test 1 test 2 test 3 test4^M .^M ;^M }^M # rule:[Weiterleitung]^M if true^M {^M redirect "tobias.niethammer@projektb.net";^M }^M
when I run: sudo -u vpopmail sieve-test -D -c /data/etc/dovecot.conf -e .dovecot.sieve test.eml > test.output2 I get following output: ######################################### X-Sieve: Pigeonhole Sieve 0.5.21.1 (49005e73)^M Message-ID: <dovecot-sieve-1734724632-119992-1@dovecot>^M Date: Fri, 20 Dec 2024 20:57:12 +0100^M From: <test02@projektb-mail.net>^M To: <tobias.niethammer@projetkb.net>^M Subject: test Urlaub^M Auto-Submitted: auto-replied (vacation)^M Precedence: bulk^M X-Auto-Response-Suppress: All^M MIME-Version: 1.0^M Content-Type: text/plain; charset=utf-8^M Content-Transfer-Encoding: 8bit^M ^M test 1^M test 2^M test 3^M test4^M ^M X-Sieve: Pigeonhole Sieve 0.5.21.1 (49005e73) X-Sieve-Redirected-From: vpopmail@projektb.net Message-ID: <dovecot-sieve-1734724632-119992-0@dovecot>^M From: tobias.niethammer@projetkb.net To: test02@projektb-mail.net Subject: Test Email
This is a test message.^M ^M ^M
RECIPIENT: tobias.niethammer@projetkb.net START MESSAGE: END MESSAGE
RECIPIENT: tobias.niethammer@projektb.net START MESSAGE: END MESSAGE #########################################
so from my point of view, there is an different line ending on vacation function to the forward function
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
Sorry, ignore my previous messages as I've sent the wrong patch link. Try to patch qmail with this one instead https://notes.sagredo.eu/en/qmail-notes-185/upgrading-qmail-82.html#liberal-....
Il 20-12-2024 20:58 tobias.niethammer--- via dovecot ha scritto:
so I do not find the root cause. Its difficult for me to debug the problem must be somewhere between dovecot and DMA mail agent the spool file in the dma looks like:
################################ Received: from vpopmail (uid 89) (envelope-from dovecot@mx40.projektb.net) id 1008d by mx40.projektb.net (DragonFly Mail Agent v0.11+ on dovecot); Fri, 20 Dec 2024 20:27:42 +0100 X-Sieve: Pigeonhole Sieve 0.5.21.1 (49005e73)^M Message-ID: <dovecot-sieve-1734722862-691938-0@dovecot>^M Date: Fri, 20 Dec 2024 20:27:42 +0100^M From: <test02@projektb-mail.net>^M To: <tobias.niethammer@gmx.net>^M Subject: test Urlaub^M In-Reply-To: <01f701db5315$3b6f4c50$b24de4f0$@gmx.net>^M References: <01f701db5315$3b6f4c50$b24de4f0$@gmx.net>^M Auto-Submitted: auto-replied (vacation)^M Precedence: bulk^M X-Auto-Response-Suppress: All^M MIME-Version: 1.0^M Content-Type: text/plain; charset=utf-8^M Content-Transfer-Encoding: 8bit^M ^M test 1^M test 2^M test 3^M test4^M ^M ################################
there ist an wrong CR LF after the Content-Transfer-Encoding shoud there not be an LF
I modified the .dovecot.sieve file to: require ["vacation"];^M # rule:[Urlaub]^M if true^M {^M vacation :addresses "test02@projektb-mail.net" :subject "test Urlaub" text: test 1 test 2 test 3 test4^M .^M ;^M }^M # rule:[Weiterleitung]^M if true^M {^M redirect "tobias.niethammer@projektb.net";^M }^M
when I run: sudo -u vpopmail sieve-test -D -c /data/etc/dovecot.conf -e .dovecot.sieve test.eml > test.output2 I get following output: ######################################### X-Sieve: Pigeonhole Sieve 0.5.21.1 (49005e73)^M Message-ID: <dovecot-sieve-1734724632-119992-1@dovecot>^M Date: Fri, 20 Dec 2024 20:57:12 +0100^M From: <test02@projektb-mail.net>^M To: <tobias.niethammer@projetkb.net>^M Subject: test Urlaub^M Auto-Submitted: auto-replied (vacation)^M Precedence: bulk^M X-Auto-Response-Suppress: All^M MIME-Version: 1.0^M Content-Type: text/plain; charset=utf-8^M Content-Transfer-Encoding: 8bit^M ^M test 1^M test 2^M test 3^M test4^M ^M X-Sieve: Pigeonhole Sieve 0.5.21.1 (49005e73) X-Sieve-Redirected-From: vpopmail@projektb.net Message-ID: <dovecot-sieve-1734724632-119992-0@dovecot>^M From: tobias.niethammer@projetkb.net To: test02@projektb-mail.net Subject: Test Email
This is a test message.^M ^M ^M
RECIPIENT: tobias.niethammer@projetkb.net START MESSAGE: END MESSAGE
RECIPIENT: tobias.niethammer@projektb.net START MESSAGE: END MESSAGE #########################################
so from my point of view, there is an different line ending on vacation function to the forward function
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
participants (4)
-
Daniel Lange
-
Roberto Puzzanghera
-
Roberto Puzzanghera
-
tobias.niethammer@projektb.net