changed stateVersion to 3 More: https://nixos-mailserver.readthedocs.io/en/latest/migrations.html#dovecot-mail-directory-migration Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
		
			
				
	
	
		
			36 lines
		
	
	
		
			784 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			784 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{
 | 
						|
  config,
 | 
						|
  pkgs,
 | 
						|
  conf,
 | 
						|
  network,
 | 
						|
  ...
 | 
						|
}:
 | 
						|
{
 | 
						|
  mailserver =
 | 
						|
    let
 | 
						|
      domain = conf.network.addresses.domain.natto;
 | 
						|
    in
 | 
						|
    rec {
 | 
						|
      enable = true;
 | 
						|
      stateVersion = 3;
 | 
						|
      fqdn = "mail.${domain}";
 | 
						|
      sendingFqdn = fqdn;
 | 
						|
      domains = [ domain ];
 | 
						|
      certificateDomains = [ "mail.${domain}" ];
 | 
						|
      certificateScheme = "acme-nginx";
 | 
						|
      loginAccounts = {
 | 
						|
        "natto@${domain}" = {
 | 
						|
          hashedPasswordFile = "/var/secrets/natto@${domain}.key";
 | 
						|
        };
 | 
						|
        "masti@${domain}" = {
 | 
						|
          hashedPasswordFile = "/var/secrets/masti@${domain}.key";
 | 
						|
        };
 | 
						|
        "chamar@${domain}" = {
 | 
						|
          hashedPasswordFile = "/var/secrets/chamar@${domain}.key";
 | 
						|
        };
 | 
						|
      };
 | 
						|
      enablePop3 = false;
 | 
						|
      enablePop3Ssl = false;
 | 
						|
    };
 | 
						|
}
 |