User Tools

Site Tools


doc:appunti:linux:sa:postfix_spamassassin_clamav_dovecot

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
doc:appunti:linux:sa:postfix_spamassassin_clamav_dovecot [2023/02/24 16:18] – [Sanitizer/ClamAV Filter] niccolodoc:appunti:linux:sa:postfix_spamassassin_clamav_dovecot [2023/05/02 13:05] – [Error Command output: Aborted] niccolo
Line 318: Line 318:
 </code> </code>
  
-There was a problem with **the filter program responding too slowly**. It is possible to change the **exec timeout**, in this case for the **filter** extension, just add the following in **/etc/dovecot/conf.d/90-sieve-extprograms.conf**:+There was a problem with **the filter program responding too slowly**. It is possible to change the **exec timeout**, in this case for the **filter** extension, just add the following in **/etc/dovecot/conf.d/90-sieve-extprograms.conf** (notice that you can configure ''sieve_pipe_exec_timeout'', ''sieve_filter_exec_timeout'' and ''sieve_execute_exec_timeout''):
  
 <file> <file>
Line 324: Line 324:
   ...   ...
   # Change the default timeout (10 seconds) for the filter extension.   # Change the default timeout (10 seconds) for the filter extension.
-  sieve_filter_exec_timeout = 20s+  sieve_filter_exec_timeout = 60s 
 + 
 +  # Change the default timeout (10 seconds) for the execute extension. 
 +  sieve_execute_exec_timeout = 60s
 } }
 </file> </file>
Line 398: Line 401:
 <code bash> <code bash>
 #!/bin/sh #!/bin/sh
-/usr/bin/spamc+/usr/bin/spamc --connect-timeout=5 --timeout=15
 </code> </code>
 +
 +Notice that we set two timeouts on spamassassin client, one to connect to the daemon and one to get the result. If the daemon does not respond timely, the message is passed unchanged. Beware that **the timeouts should be lower** than the one specified into the **Dovecot LDA Sieve Extprograms plugin** configuration.
  
 ==== How to Test an User's Sieve Filter File ==== ==== How to Test an User's Sieve Filter File ====
doc/appunti/linux/sa/postfix_spamassassin_clamav_dovecot.txt · Last modified: 2023/10/30 11:09 by niccolo