mirror of
https://github.com/Mailu/Mailu.git
synced 2025-03-03 14:52:36 +02:00
fix clamav handling
This commit is contained in:
parent
fd66c76c83
commit
aefbd9552c
@ -29,11 +29,6 @@ if spamtest :percent :value "gt" :comparator "i;ascii-numeric" "{{ user.spam_thr
|
||||
}
|
||||
{% endif %}
|
||||
|
||||
if exists "X-Virus" {
|
||||
discard;
|
||||
stop;
|
||||
}
|
||||
|
||||
{% if user.reply_active %}
|
||||
if not address :localpart :contains ["From","Reply-To"] ["noreply","no-reply"]{
|
||||
vacation :days 1 {% if user.displayed_name != "" %}:from "{{ user.displayed_name }} <{{ user.email }}>"{% endif %} :subject "{{ user.reply_subject }}" "{{ user.reply_body }}";
|
||||
|
@ -14,5 +14,15 @@ rules {
|
||||
expression = "!IS_LOCALLY_GENERATED & !MAILLIST & BLACKLIST_ANTISPOOF";
|
||||
message = "Rejected (anti-spoofing: auth-failed)";
|
||||
}
|
||||
ANTIVIRUS_FLAGGED {
|
||||
action = "reject";
|
||||
expression = "CLAM_VIRUS";
|
||||
message = "Rejected (anti-virus)";
|
||||
}
|
||||
ANTIVIRUS_FAILED {
|
||||
action = "soft-reject";
|
||||
expression = "CLAM_VIRUS_FAIL | OLETOOLS_FAIL";
|
||||
message = "Please retry later (anti-virus/oletools)";
|
||||
}
|
||||
}
|
||||
.include(try=true,priority=1,duplicate=merge) "/overrides/force_actions.conf"
|
||||
|
1
towncrier/newsfragments/3048.bugfix
Normal file
1
towncrier/newsfragments/3048.bugfix
Normal file
@ -0,0 +1 @@
|
||||
Ensure that we do not silently discard PUAs flagged by clamav. Instead we will reject emails.
|
Loading…
x
Reference in New Issue
Block a user