Corrected a typo in the previous message, should have read sieve_filter_exec_timeout and not sieve_pipe_exec_timeout
On 10/07/2024 10:41, John Fawcett wrote:
On 10/07/2024 09:40, John Fawcett via dovecot wrote:
On 09/07/2024 09:02, Meinhard Schneider via dovecot wrote:
Hello, ....
I have set both the values for "sieve_execute_exec_timeout" and "sieve_extension_exec_timeout" to 60 sec, but according to the log, this does not seem to affect the 10000 msec mentioned therein.
The SpamAssassin daemon has enough child processes to handle the requests (most of them were idle at the time of the error).
How can I configure that the external script gets more time for execution? And what can I do so that - should the script terminate contrary to expectations or be killed in the timeout - the mail is not lost but simply processed further?
Many thanks & best regards Meinhard
Hi Mainhard
I can see the error in the log lines you posted above, but I don't see anything in your configuration that invokes /usr/lib/dovecot/sieve-filter/spamc-filter.sh script.
John
Just one thing I noticed which could well be relevant to the issue. Seems there is no setting called "|sieve_extension_exec_timeout|".
|For sieve_extension_socket_dir|and |sieve_extension_bin_dir| you correctly substituted extension with filter, but you did not do the same with sieve_extension_exec_timeout which should be sieve_filter_exec_timeout
https://doc.dovecot.org/configuration_manual/sieve/plugins/extprograms/
The three extensions introduced by this plugin -|vnd.dovecot.pipe|,|vnd.dovecot.filter|and|vnd.dovecot.execute|- each have separate but similar configuration. The following configuration settings are used, for which “<extension>” in the setting name is replaced by either|pipe|,|filter|or|execute|depending on which extension is being configured: |sieve_extension_socket_dir|= Points to a directory relative to the Dovecot base_dir where the plugin looks for script service sockets. |sieve_extension_bin_dir|= Points to a directory where the plugin looks for programs (shell scripts) to execute directly and pipe messages to. |sieve_extension_exec_timeout|= 10s Configures the maximum execution time after which the program is forcibly terminated.
John