doc:appunti:linux:sa:postfix_spamassassin_clamav_dovecot
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
doc:appunti:linux:sa:postfix_spamassassin_clamav_dovecot [2023/02/17 18:58] – [Error Unable to flush stdout] niccolo | doc:appunti:linux:sa:postfix_spamassassin_clamav_dovecot [2023/10/30 11:09] (current) – [Enable SSL, imaps and pop3s] niccolo | ||
---|---|---|---|
Line 176: | Line 176: | ||
Once restarted the **dovecot.service**, | Once restarted the **dovecot.service**, | ||
+ | |||
+ | ==== Client connections are being dropped ==== | ||
+ | |||
+ | You may encounter wanring messages like these into the mail log: | ||
+ | |||
+ | < | ||
+ | dovecot: master: Warning: service(imap-login): | ||
+ | </ | ||
+ | |||
+ | To increase the number of process that are allowed to spawn, edit the **/ | ||
+ | |||
+ | < | ||
+ | default_process_limit = 200 | ||
+ | </ | ||
+ | |||
===== SpamAssassin Filter ===== | ===== SpamAssassin Filter ===== | ||
Line 209: | Line 224: | ||
* **clamdscan** | * **clamdscan** | ||
* **clamav-freshclam** | * **clamav-freshclam** | ||
+ | * **libclamunrar9** (non-free package to scan inside RAR archives) | ||
Periodic download (update) of viruses database is performed by the **clamav-freshclam.service**, | Periodic download (update) of viruses database is performed by the **clamav-freshclam.service**, | ||
Line 287: | Line 303: | ||
postfix/ | postfix/ | ||
status=bounced (Command died with status 134: | status=bounced (Command died with status 134: | ||
- | "/ | + | "/ |
+ | | ||
</ | </ | ||
Line 316: | Line 333: | ||
</ | </ | ||
- | 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 **/ | + | 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 **/ |
< | < | ||
Line 322: | Line 339: | ||
... | ... | ||
# 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 | ||
} | } | ||
</ | </ | ||
Line 396: | Line 416: | ||
<code bash> | <code bash> | ||
#!/bin/sh | #!/bin/sh | ||
- | / | + | / |
</ | </ | ||
+ | |||
+ | 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.1676656697.txt.gz · Last modified: 2023/02/17 18:58 by niccolo