Hello,
After upgrading Dovecot from version 2.3.4 to 2.3.19 i noticed errors for some users having sieve redirects. Before upgrade all worked fine.
In sieve plugin i have two limits:
sieve_max_actions = 500 sieve_max_redirects = 150
If user have up to 100 redirects all works fine but if there are 101 or more none of them works and there is error:
dovecot: lmtp(test2.mbox) Error: sieve: msgid=<***l>: redirect action: failed to check for duplicate forward to <101th.email.address>
It seams that there is another limit but cant find where. When checked "dovecot -n|grep 100" there was only "default_process_limit". Increasing this changed nothing. Still the same error. File ".dovecot.sieve.log" in user home dir don't have any additional information. There is only:
redirect action: failed to check for duplicate forward: internal error occurred: refer to server log for more information.
Do you have any ideas how to fix it?
-- Best regards,
Maciej Polewczyński Do or do not. There is no try.
it is hard coded - i had to change mine
under src : dovecot-2.3-pigeonhole-0.5.19.new
modify INSTALL:
sieve_max_redirects
i set the install to 256
but still can set in config
sieve_max_redirects = 64
gmake clean gmake gmake install
after changes
Sieve Interpreter - Configurable Limits
The settings that specify a period are specified in s(econds), unless followed by a d(ay), h(our), or m(inute) specifier character.
sieve_max_script_size = 1M The maximum size of a Sieve script. The compiler will refuse to compile any script larger than this limit. If set to 0, no limit on the script size is enforced.
sieve_max_actions = 256 The maximum number of actions that can be performed during a single script execution. If set to 0, no limit on the total number of actions is enforced.
sieve_max_redirects =256 The maximum number of redirect actions that can be performed during a single script execution. If set to 0, no redirect actions are allowed.
Thanks - Paul Kudla (Manager SCOM.CA Internet Services Inc.)
Have A Happy Thursday !!!
Scom.ca Internet Services <http://www.scom.ca> 004-1009 Byron Street South Whitby, Ontario - Canada L1N 4S3
Toronto 416.642.7266 Main 1.866.411.7266 Fax 1.888.892.7266 Email paul@scom.ca
On 2024-12-19 3:33 PM, Maciej Polewczynski via dovecot wrote:
Hello,
After upgrading Dovecot from version 2.3.4 to 2.3.19 i noticed errors for some users having sieve redirects. Before upgrade all worked fine.
In sieve plugin i have two limits:
sieve_max_actions = 500 sieve_max_redirects = 150
If user have up to 100 redirects all works fine but if there are 101 or more none of them works and there is error:
dovecot: lmtp(test2.mbox) Error: sieve: msgid=<***l>: redirect action: failed to check for duplicate forward to <101th.email.address>
It seams that there is another limit but cant find where. When checked "dovecot -n|grep 100" there was only "default_process_limit". Increasing this changed nothing. Still the same error. File ".dovecot.sieve.log" in user home dir don't have any additional information. There is only:
redirect action: failed to check for duplicate forward: internal error occurred: refer to server log for more information.
Do you have any ideas how to fix it?
The INSTALL file in source code is an instruction. You can find "SIEVE_DEFAULT_MAX_REDIRECTS" in "src/lib-sieve/sieve-limits.h" file but this constant can be overwritten by "sieve_max_redirects" parameter. I can't find in source code other limits. It's weird that checking for duplicate forwards stops precisely at 100 and throw an error. Some other limit have to act but don't know what it is.
W dniu 20.12.2024 o 00:35, Paul Kudla via dovecot pisze:
it is hard coded - i had to change mine
under src : dovecot-2.3-pigeonhole-0.5.19.new
modify INSTALL:
sieve_max_redirects
i set the install to 256
but still can set in config
sieve_max_redirects = 64
gmake clean gmake gmake install
after changes
Sieve Interpreter - Configurable Limits
The settings that specify a period are specified in s(econds), unless followed by a d(ay), h(our), or m(inute) specifier character.
sieve_max_script_size = 1M The maximum size of a Sieve script. The compiler will refuse to compile any script larger than this limit. If set to 0, no limit on the script size is enforced.
sieve_max_actions = 256 The maximum number of actions that can be performed during a single script execution. If set to 0, no limit on the total number of actions is enforced.
sieve_max_redirects =256 The maximum number of redirect actions that can be performed during a single script execution. If set to 0, no redirect actions are allowed.
Thanks - Paul Kudla (Manager SCOM.CA Internet Services Inc.)
Have A Happy Thursday !!!
Scom.ca Internet Services <http://www.scom.ca> 004-1009 Byron Street South Whitby, Ontario - Canada L1N 4S3
Toronto 416.642.7266 Main 1.866.411.7266 Fax 1.888.892.7266 Email paul@scom.ca
On 2024-12-19 3:33 PM, Maciej Polewczynski via dovecot wrote:
Hello,
After upgrading Dovecot from version 2.3.4 to 2.3.19 i noticed errors for some users having sieve redirects. Before upgrade all worked fine.
In sieve plugin i have two limits:
sieve_max_actions = 500 sieve_max_redirects = 150
If user have up to 100 redirects all works fine but if there are 101 or more none of them works and there is error:
dovecot: lmtp(test2.mbox) Error: sieve: msgid=<***l>: redirect action: failed to check for duplicate forward to <101th.email.address>
It seams that there is another limit but cant find where. When checked "dovecot -n|grep 100" there was only "default_process_limit". Increasing this changed nothing. Still the same error. File ".dovecot.sieve.log" in user home dir don't have any additional information. There is only:
redirect action: failed to check for duplicate forward: internal error occurred: refer to server log for more information.
Do you have any ideas how to fix it?
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
-- Best regards,
Maciej Polewczyński Do or do not. There is no try.
i did this a while ago, i will review my code, you are correct it is in more then one place to make everything work.
i ran into it trying to use forwards for a mailing list send?
I will try to track this down and advise.
i just need to do a diff on the src and origional src, it hould pickup any changes.
Thanks - Paul Kudla (Manager SCOM.CA Internet Services Inc.)
Have A Happy Friday !!!
Scom.ca Internet Services <http://www.scom.ca> 004-1009 Byron Street South Whitby, Ontario - Canada L1N 4S3
Toronto 416.642.7266 Main 1.866.411.7266 Fax 1.888.892.7266 Email paul@scom.ca
On 2024-12-20 4:50 a.m., Maciej Polewczynski via dovecot wrote:
The INSTALL file in source code is an instruction. You can find "SIEVE_DEFAULT_MAX_REDIRECTS" in "src/lib-sieve/sieve-limits.h" file but this constant can be overwritten by "sieve_max_redirects" parameter. I can't find in source code other limits. It's weird that checking for duplicate forwards stops precisely at 100 and throw an error. Some other limit have to act but don't know what it is.
W dniu 20.12.2024 o 00:35, Paul Kudla via dovecot pisze:
it is hard coded - i had to change mine
under src : dovecot-2.3-pigeonhole-0.5.19.new
modify INSTALL:
sieve_max_redirects
i set the install to 256
but still can set in config
sieve_max_redirects = 64
gmake clean gmake gmake install
after changes
Sieve Interpreter - Configurable Limits
The settings that specify a period are specified in s(econds), unless followed by a d(ay), h(our), or m(inute) specifier character.
sieve_max_script_size = 1M The maximum size of a Sieve script. The compiler will refuse to compile any script larger than this limit. If set to 0, no limit on the script size is enforced.
sieve_max_actions = 256 The maximum number of actions that can be performed during a single script execution. If set to 0, no limit on the total number of actions is enforced.
sieve_max_redirects =256 The maximum number of redirect actions that can be performed during a single script execution. If set to 0, no redirect actions are allowed.
Thanks - Paul Kudla (Manager SCOM.CA Internet Services Inc.)
Have A Happy Thursday !!!
Scom.ca Internet Services <http://www.scom.ca> 004-1009 Byron Street South Whitby, Ontario - Canada L1N 4S3
Toronto 416.642.7266 Main 1.866.411.7266 Fax 1.888.892.7266 Email paul@scom.ca
On 2024-12-19 3:33 PM, Maciej Polewczynski via dovecot wrote:
Hello,
After upgrading Dovecot from version 2.3.4 to 2.3.19 i noticed errors for some users having sieve redirects. Before upgrade all worked fine.
In sieve plugin i have two limits:
sieve_max_actions = 500 sieve_max_redirects = 150
If user have up to 100 redirects all works fine but if there are 101 or more none of them works and there is error:
dovecot: lmtp(test2.mbox) Error: sieve: msgid=<***l>: redirect action: failed to check for duplicate forward to <101th.email.address>
It seams that there is another limit but cant find where. When checked "dovecot -n|grep 100" there was only "default_process_limit". Increasing this changed nothing. Still the same error. File ".dovecot.sieve.log" in user home dir don't have any additional information. There is only:
redirect action: failed to check for duplicate forward: internal error occurred: refer to server log for more information.
Do you have any ideas how to fix it?
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
participants (3)
-
Maciej Polewczynski
-
Paul Kudla
-
Paul Kudla (SCOM.CA Internet Services Inc.)