1
0
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:
Florent Daigniere 2023-11-10 12:00:29 +01:00
parent fd66c76c83
commit aefbd9552c
3 changed files with 11 additions and 5 deletions

View File

@ -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 }}";

View File

@ -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"

View File

@ -0,0 +1 @@
Ensure that we do not silently discard PUAs flagged by clamav. Instead we will reject emails.