nixos-config/modules/system/services/server/mailserver/simplenix/default.nix

58 lines
1.4 KiB
Nix
Raw Normal View History

{ mailserver, config, pkgs, ... }:
{
imports = [
./nginx
mailserver.nixosModule
];
mailserver = rec {
2024-12-22 22:02:10 -05:00
enable = config.system.mailserver.enable;
domains = [
2025-02-25 03:03:43 -05:00
"nixfox.ca"
"bloxelcom.net"
"freecorn1854.win"
"lunamoonlight.xyz"
];
2025-02-25 03:03:43 -05:00
fqdn = "mx.nixfox.ca";
certificateScheme = "acme-nginx";
localDnsResolver = false;
redis.port = 1515;
2024-12-22 22:02:10 -05:00
# Passwords made with 'mkpasswd -sm bcrypt'
loginAccounts = {
2025-02-25 03:03:43 -05:00
"noreply@nixfox.ca" = {
hashedPasswordFile = pkgs.writeText "noreply" config.secrets.noreplyMailHash;
sendOnly = true;
};
2025-02-25 03:03:43 -05:00
"jimbo@nixfox.ca" = {
hashedPasswordFile = pkgs.writeText "jimbo" config.secrets.jimboMailHash;
aliases = [
2025-02-25 03:03:43 -05:00
"james@nixfox.ca"
"jimbo@bloxelcom.net"
2025-01-01 22:42:08 -05:00
2025-02-25 03:03:43 -05:00
"vice@nixfox.ca"
"vice@bloxelcom.net"
"yara@nixfox.ca"
2025-01-01 22:42:08 -05:00
2025-02-25 03:03:43 -05:00
"contact@nixfox.ca"
];
};
2025-02-25 03:03:43 -05:00
"luna@lunamoonlight.xyz" = {
2025-02-24 22:52:40 -05:00
hashedPasswordFile = pkgs.writeText "luna" config.secrets.lunaMailHash;
2025-02-24 23:30:45 -05:00
aliases = [
2025-02-25 03:03:43 -05:00
"luna@bloxelcom.net"
"contact@bloxelcom.net"
"ibu@bloxelcom.net"
2025-02-24 23:30:45 -05:00
];
2025-02-24 22:52:40 -05:00
};
2025-02-25 03:03:43 -05:00
"contact@freecorn1854.win" = {
2025-02-24 22:52:40 -05:00
hashedPasswordFile = pkgs.writeText "corn" config.secrets.cornMailHash;
2025-02-25 03:03:43 -05:00
aliases = [ "freecorn@bloxelcom.net" ];
2025-02-24 22:52:40 -05:00
};
};
};
# Rspamd port from earlier to avoid overlap
services.redis.servers.rspamd.port = 1515;
}