mirror of
				https://github.com/optim-enterprises-bv/Mailu.git
				synced 2025-11-03 19:47:52 +00:00 
			
		
		
		
	untested code that may just work
This commit is contained in:
		@@ -25,3 +25,8 @@ def rspamd_dkim_key(domain_name):
 | 
				
			|||||||
                }
 | 
					                }
 | 
				
			||||||
            )
 | 
					            )
 | 
				
			||||||
    return flask.jsonify({'data': {'selectors': selectors}})
 | 
					    return flask.jsonify({'data': {'selectors': selectors}})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@internal.route("/rspamd/local_domains", methods=['GET'])
 | 
				
			||||||
 | 
					def rspamd_local_domains():
 | 
				
			||||||
 | 
					    domains = set(models.Domain.query.all() + models.Alternative.query.all())
 | 
				
			||||||
 | 
					    return '\n'.join(domains)
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										8
									
								
								core/rspamd/conf/whitelist.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								core/rspamd/conf/whitelist.conf
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
				
			|||||||
 | 
					rules {
 | 
				
			||||||
 | 
					        BLACKLIST_ANTISPOOF = {
 | 
				
			||||||
 | 
					            valid_dmarc = true;
 | 
				
			||||||
 | 
					            blacklist = true;
 | 
				
			||||||
 | 
					            domains = "http://{{ ADMIN_ADDRESS }}/internal/rspamd/local_domains";
 | 
				
			||||||
 | 
					            score = 15.0;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user