[Rspamd] Change spoofed mail handling
This commit is contained in:
		@@ -17,6 +17,6 @@ SOGO_CONTACT_SPOOFED {
 | 
				
			|||||||
  expression = "(R_SPF_PERMFAIL | R_SPF_SOFTFAIL | R_SPF_FAIL) & ~SOGO_CONTACT";
 | 
					  expression = "(R_SPF_PERMFAIL | R_SPF_SOFTFAIL | R_SPF_FAIL) & ~SOGO_CONTACT";
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
SPOOFED_UNAUTH {
 | 
					SPOOFED_UNAUTH {
 | 
				
			||||||
  expression = "UNAUTH_MAILCOW_DOMAIN & !MAILCOW_WHITE & !R_SPF_ALLOW";
 | 
					  expression = "!MAILCOW_AUTH & !MAILCOW_WHITE & !R_SPF_ALLOW & !DMARC_POLICY_ALLOW";
 | 
				
			||||||
  score = 5.0;
 | 
					  score = 5.0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -83,11 +83,3 @@ GLOBAL_RCPT_BL {
 | 
				
			|||||||
  prefilter = true;
 | 
					  prefilter = true;
 | 
				
			||||||
  action = "reject";
 | 
					  action = "reject";
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					 | 
				
			||||||
UNAUTH_MAILCOW_DOMAIN {
 | 
					 | 
				
			||||||
  type = "header";
 | 
					 | 
				
			||||||
  header = "from";
 | 
					 | 
				
			||||||
  filter = "email:domain";
 | 
					 | 
				
			||||||
  nflags = ["authenticated"];
 | 
					 | 
				
			||||||
  map = "redis://DOMAIN_MAP";
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user