mirror of
				https://github.com/optim-enterprises-bv/Mailu.git
				synced 2025-10-30 17:47:55 +00:00 
			
		
		
		
	fix clamav handling
This commit is contained in:
		| @@ -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. | ||||
		Reference in New Issue
	
	Block a user
	 Florent Daigniere
					Florent Daigniere