I have scripts in 2 places: sieve_script personal { path = ~/.dovecot.sieve }
sieve_script before { path = /etc/dovecot/sieve }
/etc/dovecot/sieve is directory with (currently) one script. This script add header to message.
And it seems, that "before" script is not executed. Any hints? KJ
-- http://wolnelektury.pl/wesprzyj/teraz/ "Linux: the operating system with a CLUE... Command Line User Environment". (seen in a posting in comp.software.testing)
check logs, maybe memory use is killing the executables and save locations
I have scripts in 2 places: sieve_script personal { path = ~/.dovecot.sieve }
sieve_script before { path = /etc/dovecot/sieve }
/etc/dovecot/sieve is directory with (currently) one script. This script add header to message.
And it seems, that "before" script is not executed. Any hints? KJ
--
On 28/07/2025 10:46 EEST Kamil Jońca via dovecot <dovecot@dovecot.org> wrote:
I have scripts in 2 places: sieve_script personal { path = ~/.dovecot.sieve }
sieve_script before { path = /etc/dovecot/sieve }
/etc/dovecot/sieve is directory with (currently) one script. This script add header to message.
And it seems, that "before" script is not executed. Any hints? KJ
Try running with log_debug=category=sieve and see what gets logged?
Aki
Aki Tuomi via dovecot <dovecot@dovecot.org> writes:
On 28/07/2025 10:46 EEST Kamil Jońca via dovecot <dovecot@dovecot.org> wrote:
I have scripts in 2 places: sieve_script personal { path = ~/.dovecot.sieve }
sieve_script before { path = /etc/dovecot/sieve }
/etc/dovecot/sieve is directory with (currently) one script. This script add header to message.
And it seems, that "before" script is not executed. Any hints? KJ
Try running with log_debug=category=sieve and see what gets logged?
Aki
Hm. No mention about "before" script?
--8<---------------cut here---------------start------------->8--- 2025-07-28T10:07:00.764479+02:00 alfa dovecot: lda(kjonca): Debug: sieve: Pigeonhole version 2.4.1-4 (0a86619f) initializing 2025-07-28T10:07:00.764561+02:00 alfa dovecot: lda(kjonca): Debug: sieve: storage personal: file: Using Sieve script path: /home/kjonca/.dovecot.sieve 2025-07-28T10:07:00.764588+02:00 alfa dovecot: lda(kjonca): Debug: sieve: storage personal: file: script '.dovecot': Opened from 'personal' 2025-07-28T10:07:00.764622+02:00 alfa dovecot: lda(kjonca): Debug: sieve: Using the following personal Sieve script: personal/.dovecot 2025-07-28T10:07:00.764654+02:00 alfa dovecot: lda(kjonca): Debug: sieve: multi-script: Start execute sequence 2025-07-28T10:07:00.764680+02:00 alfa dovecot: lda(kjonca): Debug: sieve: Opening script 1 of 1 from 'personal/.dovecot' 2025-07-28T10:07:00.764707+02:00 alfa dovecot: lda(kjonca): Debug: sieve: Loading script personal/.dovecot 2025-07-28T10:07:00.764727+02:00 alfa dovecot: lda(kjonca): Debug: sieve: Script binary /home/kjonca/.dovecot.svbin successfully loaded 2025-07-28T10:07:00.764751+02:00 alfa dovecot: lda(kjonca): Debug: sieve: storage personal: file: script '.dovecot': Saving binary to '/home/kjonca/.dovecot.svbin' 2025-07-28T10:07:00.764776+02:00 alfa dovecot: lda(kjonca): Debug: sieve: binary /home/kjonca/.dovecot.svbin: save: not saving binary, because it is already stored 2025-07-28T10:07:00.764797+02:00 alfa dovecot: lda(kjonca): Debug: sieve: Executing script from '/home/kjonca/.dovecot.svbin' 2025-07-28T10:07:00.764823+02:00 alfa dovecot: lda(kjonca): Debug: sieve: multi-script: Run script '/home/kjonca/.dovecot.svbin' 2025-07-28T10:07:00.764908+02:00 alfa dovecot: lda(kjonca): Debug: sieve: Started running script '/home/kjonca/.dovecot.svbin' 2025-07-28T10:07:00.766300+02:00 alfa dovecot: lda(kjonca): Debug: sieve: Aborted running script '/home/kjonca/.dovecot.svbin' 2025-07-28T10:07:00.766352+02:00 alfa dovecot: lda(kjonca): Debug: sieve: multi-script: Execute result 2025-07-28T10:07:00.766374+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Executing result (status=ok, commit=no) 2025-07-28T10:07:00.766407+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Starting execution of actions 2025-07-28T10:07:00.766430+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:fileinto action: Start storing into mailbox admin/bambus 2025-07-28T10:07:00.766458+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Executing actions 2025-07-28T10:07:00.766484+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Executing fileinto action 2025-07-28T10:07:00.766505+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:fileinto action: Execute storing into mailbox 'admin/bambus' 2025-07-28T10:07:00.772270+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:fileinto action: Saving to mailbox 'admin/bambus' successful so far 2025-07-28T10:07:00.772329+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Finished executing fileinto action (status=ok, keep=canceled) 2025-07-28T10:07:00.772354+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Finished executing actions (status=ok, keep=none, executed=yes) 2025-07-28T10:07:00.772387+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Finished executing result (no commit, status=ok, keep=no) 2025-07-28T10:07:00.772411+02:00 alfa dovecot: lda(kjonca): Debug: sieve: multi-script: Sequence ended 2025-07-28T10:07:00.772437+02:00 alfa dovecot: lda(kjonca): Debug: sieve: multi-script: Finishing sequence (status=ok) 2025-07-28T10:07:00.772461+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Executing result (status=ok, commit=yes) 2025-07-28T10:07:00.772482+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Starting execution of actions 2025-07-28T10:07:00.772502+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Executing actions 2025-07-28T10:07:00.772527+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Finished executing actions (status=ok, keep=none, executed=yes) 2025-07-28T10:07:00.772550+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Finalizing actions 2025-07-28T10:07:00.772577+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Finalize fileinto action (status=ok, action_status=ok, commit_status=ok, pre-commit=yes) 2025-07-28T10:07:00.772603+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Commit fileinto action 2025-07-28T10:07:00.772628+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:fileinto action: Commit storing into mailbox 'admin/bambus' 2025-07-28T10:07:00.817005+02:00 alfa dovecot: lda(kjonca): sieve: <4brB035mnqz4cCFc@bambus.kjonca>:fileinto action: stored mail into mailbox 'admin/bambus' 2025-07-28T10:07:00.817133+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Finished finalizing actions (status=ok, keep=none, committed=yes) 2025-07-28T10:07:00.817195+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Finishing actions 2025-07-28T10:07:00.817224+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Finish fileinto action 2025-07-28T10:07:00.817252+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Finished executing result (final, status=ok, keep=no) 2025-07-28T10:07:00.817288+02:00 alfa dovecot: lda(kjonca): Debug: sieve: multi-script: Sequence finished (status=ok, keep=no) 2025-07-28T10:07:00.817310+02:00 alfa dovecot: lda(kjonca): Debug: sieve: multi-script: Destroy --8<---------------cut here---------------end--------------->8---
-- http://wolnelektury.pl/wesprzyj/teraz/ Zuzanka najwyraźniej pełni obowiązki Albina Siwaka w tej ekipie... (C) Slawek Kotynski w dyskusj nt. pl.whatewer.SETI@home...
Hi,
Try tailing journalctl for your MTA service and see if that helps (I found that helped me when I had problems).
Cheers
Dan
On July 28, 2025 10:10:46 AM GMT+02:00, "Kamil Jońca via dovecot" <dovecot@dovecot.org> wrote:
Aki Tuomi via dovecot <dovecot@dovecot.org> writes:
On 28/07/2025 10:46 EEST Kamil Jońca via dovecot <dovecot@dovecot.org> wrote:
I have scripts in 2 places: sieve_script personal { path = ~/.dovecot.sieve }
sieve_script before { path = /etc/dovecot/sieve }
/etc/dovecot/sieve is directory with (currently) one script. This script add header to message.
And it seems, that "before" script is not executed. Any hints? KJ
Try running with log_debug=category=sieve and see what gets logged?
Aki
Hm. No mention about "before" script?
--8<---------------cut here---------------start------------->8--- 2025-07-28T10:07:00.764479+02:00 alfa dovecot: lda(kjonca): Debug: sieve: Pigeonhole version 2.4.1-4 (0a86619f) initializing 2025-07-28T10:07:00.764561+02:00 alfa dovecot: lda(kjonca): Debug: sieve: storage personal: file: Using Sieve script path: /home/kjonca/.dovecot.sieve 2025-07-28T10:07:00.764588+02:00 alfa dovecot: lda(kjonca): Debug: sieve: storage personal: file: script '.dovecot': Opened from 'personal' 2025-07-28T10:07:00.764622+02:00 alfa dovecot: lda(kjonca): Debug: sieve: Using the following personal Sieve script: personal/.dovecot 2025-07-28T10:07:00.764654+02:00 alfa dovecot: lda(kjonca): Debug: sieve: multi-script: Start execute sequence 2025-07-28T10:07:00.764680+02:00 alfa dovecot: lda(kjonca): Debug: sieve: Opening script 1 of 1 from 'personal/.dovecot' 2025-07-28T10:07:00.764707+02:00 alfa dovecot: lda(kjonca): Debug: sieve: Loading script personal/.dovecot 2025-07-28T10:07:00.764727+02:00 alfa dovecot: lda(kjonca): Debug: sieve: Script binary /home/kjonca/.dovecot.svbin successfully loaded 2025-07-28T10:07:00.764751+02:00 alfa dovecot: lda(kjonca): Debug: sieve: storage personal: file: script '.dovecot': Saving binary to '/home/kjonca/.dovecot.svbin' 2025-07-28T10:07:00.764776+02:00 alfa dovecot: lda(kjonca): Debug: sieve: binary /home/kjonca/.dovecot.svbin: save: not saving binary, because it is already stored 2025-07-28T10:07:00.764797+02:00 alfa dovecot: lda(kjonca): Debug: sieve: Executing script from '/home/kjonca/.dovecot.svbin' 2025-07-28T10:07:00.764823+02:00 alfa dovecot: lda(kjonca): Debug: sieve: multi-script: Run script '/home/kjonca/.dovecot.svbin' 2025-07-28T10:07:00.764908+02:00 alfa dovecot: lda(kjonca): Debug: sieve: Started running script '/home/kjonca/.dovecot.svbin' 2025-07-28T10:07:00.766300+02:00 alfa dovecot: lda(kjonca): Debug: sieve: Aborted running script '/home/kjonca/.dovecot.svbin' 2025-07-28T10:07:00.766352+02:00 alfa dovecot: lda(kjonca): Debug: sieve: multi-script: Execute result 2025-07-28T10:07:00.766374+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Executing result (status=ok, commit=no) 2025-07-28T10:07:00.766407+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Starting execution of actions 2025-07-28T10:07:00.766430+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:fileinto action: Start storing into mailbox admin/bambus 2025-07-28T10:07:00.766458+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Executing actions 2025-07-28T10:07:00.766484+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Executing fileinto action 2025-07-28T10:07:00.766505+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:fileinto action: Execute storing into mailbox 'admin/bambus' 2025-07-28T10:07:00.772270+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:fileinto action: Saving to mailbox 'admin/bambus' successful so far 2025-07-28T10:07:00.772329+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Finished executing fileinto action (status=ok, keep=canceled) 2025-07-28T10:07:00.772354+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Finished executing actions (status=ok, keep=none, executed=yes) 2025-07-28T10:07:00.772387+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Finished executing result (no commit, status=ok, keep=no) 2025-07-28T10:07:00.772411+02:00 alfa dovecot: lda(kjonca): Debug: sieve: multi-script: Sequence ended 2025-07-28T10:07:00.772437+02:00 alfa dovecot: lda(kjonca): Debug: sieve: multi-script: Finishing sequence (status=ok) 2025-07-28T10:07:00.772461+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Executing result (status=ok, commit=yes) 2025-07-28T10:07:00.772482+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Starting execution of actions 2025-07-28T10:07:00.772502+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Executing actions 2025-07-28T10:07:00.772527+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Finished executing actions (status=ok, keep=none, executed=yes) 2025-07-28T10:07:00.772550+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Finalizing actions 2025-07-28T10:07:00.772577+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Finalize fileinto action (status=ok, action_status=ok, commit_status=ok, pre-commit=yes) 2025-07-28T10:07:00.772603+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Commit fileinto action 2025-07-28T10:07:00.772628+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:fileinto action: Commit storing into mailbox 'admin/bambus' 2025-07-28T10:07:00.817005+02:00 alfa dovecot: lda(kjonca): sieve: <4brB035mnqz4cCFc@bambus.kjonca>:fileinto action: stored mail into mailbox 'admin/bambus' 2025-07-28T10:07:00.817133+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Finished finalizing actions (status=ok, keep=none, committed=yes) 2025-07-28T10:07:00.817195+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Finishing actions 2025-07-28T10:07:00.817224+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Finish fileinto action 2025-07-28T10:07:00.817252+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Finished executing result (final, status=ok, keep=no) 2025-07-28T10:07:00.817288+02:00 alfa dovecot: lda(kjonca): Debug: sieve: multi-script: Sequence finished (status=ok, keep=no) 2025-07-28T10:07:00.817310+02:00 alfa dovecot: lda(kjonca): Debug: sieve: multi-script: Destroy --8<---------------cut here---------------end--------------->8---
-- http://wolnelektury.pl/wesprzyj/teraz/ Zuzanka najwyraźniej pełni obowiązki Albina Siwaka w tej ekipie... (C) Slawek Kotynski w dyskusj nt. pl.whatewer.SETI@home...
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
Hi,
Try tailing journalctl for your MTA service and see if that helps (I found that helped me when I had problems).
Cheers
Dan
On July 28, 2025 10:10:46 AM GMT+02:00, "Kamil Jonca via dovecot" <dovecot@dovecot.org> wrote:
Aki Tuomi via dovecot <dovecot@dovecot.org> writes:
On 28/07/2025 10:46 EEST Kamil Jonca via dovecot <dovecot@dovecot.org> wrote:
I have scripts in 2 places: sieve_script personal { path = ~/.dovecot.sieve }
sieve_script before { path = /etc/dovecot/sieve }
/etc/dovecot/sieve is directory with (currently) one script. This script add header to message.
And it seems, that "before" script is not executed. Any hints? KJ
Try running with log_debug=category=sieve and see what gets logged?
Aki
Hm. No mention about "before" script?
--8<---------------cut here---------------start------------->8--- 2025-07-28T10:07:00.764479+02:00 alfa dovecot: lda(kjonca): Debug: sieve: Pigeonhole version 2.4.1-4 (0a86619f) initializing 2025-07-28T10:07:00.764561+02:00 alfa dovecot: lda(kjonca): Debug: sieve: storage personal: file: Using Sieve script path: /home/kjonca/.dovecot.sieve 2025-07-28T10:07:00.764588+02:00 alfa dovecot: lda(kjonca): Debug: sieve: storage personal: file: script '.dovecot': Opened from 'personal' 2025-07-28T10:07:00.764622+02:00 alfa dovecot: lda(kjonca): Debug: sieve: Using the following personal Sieve script: personal/.dovecot 2025-07-28T10:07:00.764654+02:00 alfa dovecot: lda(kjonca): Debug: sieve: multi-script: Start execute sequence 2025-07-28T10:07:00.764680+02:00 alfa dovecot: lda(kjonca): Debug: sieve: Opening script 1 of 1 from 'personal/.dovecot' 2025-07-28T10:07:00.764707+02:00 alfa dovecot: lda(kjonca): Debug: sieve: Loading script personal/.dovecot 2025-07-28T10:07:00.764727+02:00 alfa dovecot: lda(kjonca): Debug: sieve: Script binary /home/kjonca/.dovecot.svbin successfully loaded 2025-07-28T10:07:00.764751+02:00 alfa dovecot: lda(kjonca): Debug: sieve: storage personal: file: script '.dovecot': Saving binary to '/home/kjonca/.dovecot.svbin' 2025-07-28T10:07:00.764776+02:00 alfa dovecot: lda(kjonca): Debug: sieve: binary /home/kjonca/.dovecot.svbin: save: not saving binary, because it is already stored 2025-07-28T10:07:00.764797+02:00 alfa dovecot: lda(kjonca): Debug: sieve: Executing script from '/home/kjonca/.dovecot.svbin' 2025-07-28T10:07:00.764823+02:00 alfa dovecot: lda(kjonca): Debug: sieve: multi-script: Run script '/home/kjonca/.dovecot.svbin' 2025-07-28T10:07:00.764908+02:00 alfa dovecot: lda(kjonca): Debug: sieve: Started running script '/home/kjonca/.dovecot.svbin' 2025-07-28T10:07:00.766300+02:00 alfa dovecot: lda(kjonca): Debug: sieve: Aborted running script '/home/kjonca/.dovecot.svbin' 2025-07-28T10:07:00.766352+02:00 alfa dovecot: lda(kjonca): Debug: sieve: multi-script: Execute result 2025-07-28T10:07:00.766374+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Executing result (status=ok, commit=no) 2025-07-28T10:07:00.766407+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Starting execution of actions 2025-07-28T10:07:00.766430+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:fileinto action: Start storing into mailbox admin/bambus 2025-07-28T10:07:00.766458+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Executing actions 2025-07-28T10:07:00.766484+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Executing fileinto action 2025-07-28T10:07:00.766505+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:fileinto action: Execute storing into mailbox 'admin/bambus' 2025-07-28T10:07:00.772270+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:fileinto action: Saving to mailbox 'admin/bambus' successful so far 2025-07-28T10:07:00.772329+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Finished executing fileinto action (status=ok, keep=canceled) 2025-07-28T10:07:00.772354+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Finished executing actions (status=ok, keep=none, executed=yes) 2025-07-28T10:07:00.772387+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Finished executing result (no commit, status=ok, keep=no) 2025-07-28T10:07:00.772411+02:00 alfa dovecot: lda(kjonca): Debug: sieve: multi-script: Sequence ended 2025-07-28T10:07:00.772437+02:00 alfa dovecot: lda(kjonca): Debug: sieve: multi-script: Finishing sequence (status=ok) 2025-07-28T10:07:00.772461+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Executing result (status=ok, commit=yes) 2025-07-28T10:07:00.772482+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Starting execution of actions 2025-07-28T10:07:00.772502+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Executing actions 2025-07-28T10:07:00.772527+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Finished executing actions (status=ok, keep=none, executed=yes) 2025-07-28T10:07:00.772550+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Finalizing actions 2025-07-28T10:07:00.772577+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Finalize fileinto action (status=ok, action_status=ok, commit_status=ok, pre-commit=yes) 2025-07-28T10:07:00.772603+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Commit fileinto action 2025-07-28T10:07:00.772628+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:fileinto action: Commit storing into mailbox 'admin/bambus' 2025-07-28T10:07:00.817005+02:00 alfa dovecot: lda(kjonca): sieve: <4brB035mnqz4cCFc@bambus.kjonca>:fileinto action: stored mail into mailbox 'admin/bambus' 2025-07-28T10:07:00.817133+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Finished finalizing actions (status=ok, keep=none, committed=yes) 2025-07-28T10:07:00.817195+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Finishing actions 2025-07-28T10:07:00.817224+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Finish fileinto action 2025-07-28T10:07:00.817252+02:00 alfa dovecot: lda(kjonca): Debug: sieve: <4brB035mnqz4cCFc@bambus.kjonca>:Finished executing result (final, status=ok, keep=no) 2025-07-28T10:07:00.817288+02:00 alfa dovecot: lda(kjonca): Debug: sieve: multi-script: Sequence finished (status=ok, keep=no) 2025-07-28T10:07:00.817310+02:00 alfa dovecot: lda(kjonca): Debug: sieve: multi-script: Destroy --8<---------------cut here---------------end--------------->8---
sieve_script before { type = before path = /etc/dovecot/sieve bin_path = /etc/dovecot/sieve }
Place sieve script in /etc/dovecot/sieve. run sievec <script.sieve>
John via dovecot <dovecot@dovecot.org> writes:
sieve_script before { type = before path = /etc/dovecot/sieve bin_path = /etc/dovecot/sieve }
Place sieve script in /etc/dovecot/sieve. run sievec <script.sieve>
It seems that: --8<---------------cut here---------------start------------->8--- type=before --8<---------------cut here---------------end--------------->8--- is key line.
But for me https://doc.dovecot.org/main/core/summaries/settings.html#sieve_script says that --8<---------------cut here---------------start------------->8--- sieve_script before { --8<---------------cut here---------------end--------------->8---
should be enough. Am I wrong? KJ
-- http://wolnelektury.pl/wesprzyj/teraz/ The church is near but the road is icy; the bar is far away but I will walk carefully. -- Russian Proverb
The developers are probably going to chuckle at me when they read this. :)
You are correct. " sieve_script before { ... }" should be enough according to my late night first read of the docs. I tried it, and it never called my script.
I tried to migrate my dovecot 2.3 to 2.4.1. I have a script_before line to be converted. I finally arrived at syntax that worked.
After reading the 2.4.1 docs again, I think my problem is the script name. My before script is named spam.sieve. Maybe what the docs are saying is this should work:
sieve_script before { # script needs to be called /etc/dovecot/before.sieve with before.svbin also at this location path = /etc/dovecot }
[My problem 1] Since spam.sieve was not called before.sieve, the script could not be found. Someone should test this idea.
There is sieve_script_name, sieve_script_type, and sieve_script_storage. Seems more involved than dovecot 2.3 and there is some auto sensing happening. It would be nice if the docs just say you must call your script before.sieve and it will work as a "before" script.
My problem 2: I wanted to remove the /etc/dovecot/sieve directory and run my before script from /etc/dovecot/spam.sieve. I placed spam.sieve and spam.svbin under /etc/dovecot. When I sent an email and it called spam.sieve, I received this error:
lmtp(john)<18431><WU7WN/9zhWj/RwAAfYjuOg>: Error: sieve: binary /etc/dovecot/spam.svbin: save: failed to create temporary file: open(/etc/dovecot/spam.svbin.) failed: Read-only file system
spam.svbin was there. I had just compiled it with sievec. Why is it trying to recompile a script when the binary version is present and up-to-date? So I moved spam* back to /etc/dovecot/sieve and everything worked again. No read-only error. The permissions on /etc/dovecot and /etc/dovecot/sieve are the same. I can only surmise that the scripts need to be under /etc/dovecot/sieve . I don't see any documentation or doveconf -a setting for this.
On 28/07/2025 20:46 EEST John via dovecot <dovecot@dovecot.org> wrote:
The developers are probably going to chuckle at me when they read this. :)
You are correct. " sieve_script before { ... }" should be enough according to my late night first read of the docs. I tried it, and it never called my script.
I tried to migrate my dovecot 2.3 to 2.4.1. I have a script_before line to be converted. I finally arrived at syntax that worked.
After reading the 2.4.1 docs again, I think my problem is the script name. My before script is named spam.sieve. Maybe what the docs are saying is this should work:
sieve_script before { # script needs to be called /etc/dovecot/before.sieve with before.svbin also at this location path = /etc/dovecot }
[My problem 1] Since spam.sieve was not called before.sieve, the script could not be found. Someone should test this idea.
There is sieve_script_name, sieve_script_type, and sieve_script_storage. Seems more involved than dovecot 2.3 and there is some auto sensing happening. It would be nice if the docs just say you must call your script before.sieve and it will work as a "before" script.
My problem 2: I wanted to remove the /etc/dovecot/sieve directory and run my before script from /etc/dovecot/spam.sieve. I placed spam.sieve and spam.svbin under /etc/dovecot. When I sent an email and it called spam.sieve, I received this error:
lmtp(john)<18431><WU7WN/9zhWj/RwAAfYjuOg>: Error: sieve: binary /etc/dovecot/spam.svbin: save: failed to create temporary file: open(/etc/dovecot/spam.svbin.) failed: Read-only file system
sieve looks at mtime when determining if a script needs to be recompiled or not. If you move/copy the files, the script mtime might end up newer than the svbin's, causing recompile.
Aki
Den 28.07.2025 09:46, skrev Kamil Jońca via dovecot:
I have scripts in 2 places: sieve_script personal { path = ~/.dovecot.sieve }
sieve_script before { path = /etc/dovecot/sieve }
/etc/dovecot/sieve is directory with (currently) one script. This script add header to message.
And it seems, that "before" script is not executed. Any hints? KJ
I may be totally misunderstanding, but is mail delivered by lda or lmtp ? If lda, it may be running as the mail user, and so will not have access to compile the before script. Try compiling it as the owner of the before script, and ensure that the delivery agent (daemon or lda binary) has access.
Håkon Alstadheim via dovecot <dovecot@dovecot.org> writes:
[...]
I may be totally misunderstanding, but is mail delivered by lda or lmtp ? If lda, it may be running as the mail user, and so will not have access to compile the before script. Try compiling it as the owner of the before script, and ensure that the delivery agent (daemon or lda binary) has access.
It was lda. But as I wrote earlier - "type=before" made script working, so it was not problem with permissions.
KJ
-- http://wolnelektury.pl/wesprzyj/teraz/ "My life is a soap opera, but who has the rights?" -- MadameX
participants (6)
-
Aki Tuomi
-
Daniel Botting
-
Håkon Alstadheim
-
johnd@broadlux.com
-
Kamil Jońca
-
Marc