hosts/suwako: add mailserver for amneesh.com
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
		@@ -10,6 +10,7 @@
 | 
			
		||||
    ./hardware.nix
 | 
			
		||||
    ./boot.nix
 | 
			
		||||
    ./services.nix
 | 
			
		||||
    ./mailserver.nix
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  time.timeZone = "Asia/Kolkata";
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										26
									
								
								hosts/suwako/mailserver.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								hosts/suwako/mailserver.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,26 @@
 | 
			
		||||
{
 | 
			
		||||
  conf,
 | 
			
		||||
  ...
 | 
			
		||||
}:
 | 
			
		||||
{
 | 
			
		||||
  mailserver =
 | 
			
		||||
    let
 | 
			
		||||
      domain = conf.network.addresses.domain.amneesh;
 | 
			
		||||
    in
 | 
			
		||||
    rec {
 | 
			
		||||
      enable = true;
 | 
			
		||||
      stateVersion = 1;
 | 
			
		||||
      fqdn = "mail.${domain}";
 | 
			
		||||
      sendingFqdn = fqdn;
 | 
			
		||||
      domains = [ domain ];
 | 
			
		||||
      certificateDomains = [ "mail.${domain}" ];
 | 
			
		||||
      certificateScheme = "acme-nginx";
 | 
			
		||||
      loginAccounts = {
 | 
			
		||||
        "me@${domain}" = {
 | 
			
		||||
          hashedPasswordFile = "/var/secrets/me@${domain}.key";
 | 
			
		||||
        };
 | 
			
		||||
      };
 | 
			
		||||
      enablePop3 = false;
 | 
			
		||||
      enablePop3Ssl = false;
 | 
			
		||||
    };
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user