Allow a specific mailserver to skip the spam filter
This commit is contained in:
		
					parent
					
						
							
								87087a3f39
							
						
					
				
			
			
				commit
				
					
						0ad69b95b2
					
				
			
		
					 1 changed files with 11 additions and 0 deletions
				
			
		|  | @ -1,5 +1,12 @@ | ||||||
| { config, pkgs, ... }: | { config, pkgs, ... }: | ||||||
| 
 | 
 | ||||||
|  | let | ||||||
|  |   spamfilter_greenlight_map = pkgs.writeText "spamfilter_greenlight_map.cf" '' | ||||||
|  |     # Disable Milters for specific clients | ||||||
|  |     2a00:14b0:4200:3000:122::1/128    DISABLE | ||||||
|  |     212.12.48.122/32                  DISABLE | ||||||
|  |     ''; | ||||||
|  | in | ||||||
| { | { | ||||||
|   # Import some configuration as they are too long to be easily readable here |   # Import some configuration as they are too long to be easily readable here | ||||||
|   imports = [  |   imports = [  | ||||||
|  | @ -17,4 +24,8 @@ | ||||||
|     adminAddress = "postmaster@mail.hamburg.freifunk.net"; |     adminAddress = "postmaster@mail.hamburg.freifunk.net"; | ||||||
|     mailFQDN = "mail2.hamburg.freifunk.net"; |     mailFQDN = "mail2.hamburg.freifunk.net"; | ||||||
|   }; |   }; | ||||||
|  |   # Special config | ||||||
|  |   services.postfix.config = { | ||||||
|  |     smtpd_milter_maps = "cidr:${spamfilter_greenlight_map}"; | ||||||
|  |   }; | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Daniel Frank
				Daniel Frank