You've already forked Mailu
mirror of
https://github.com/Mailu/Mailu.git
synced 2025-08-10 22:31:47 +02:00
Document default antivirus behaviour, add an option to reject viruses
This commit is contained in:
@@ -4,5 +4,8 @@ clamav {
|
||||
symbol = "CLAM_VIRUS";
|
||||
type = "clamav";
|
||||
servers = "{{ ANTIVIRUS_ADDRESS }}";
|
||||
{% if ANTIVIRUS_ACTION|default('discard') == 'reject' %}
|
||||
action = "reject"
|
||||
{% endif %}
|
||||
}
|
||||
{% endif %}
|
||||
|
@@ -131,6 +131,13 @@ See the `python docs`_ for more information.
|
||||
|
||||
.. _`python docs`: https://docs.python.org/3.6/library/logging.html#logging-levels
|
||||
|
||||
Antivirus settings
|
||||
------------------
|
||||
|
||||
The ``ANTIVIRUS_ACTION`` switches behaviour if a virus is detected. It defaults to 'discard',
|
||||
so any detected virus is silently discarded. If set to 'reject', rspamd is configured to reject
|
||||
virus mails during SMTP dialogue, so the sender will receive a reject message.
|
||||
|
||||
Infrastructure settings
|
||||
-----------------------
|
||||
|
||||
|
1
towncrier/newsfragments/1259.feature
Normal file
1
towncrier/newsfragments/1259.feature
Normal file
@@ -0,0 +1 @@
|
||||
Allow to reject virus mails by setting ANTIVITUS_ACTION=reject
|
Reference in New Issue
Block a user