nixos-mailserver/nixops/single-server.nix

32 lines
1001 B
Nix
Raw Permalink Normal View History

2017-08-11 17:06:54 +05:00
{
network.description = "mail server";
mailserver =
{ config, pkgs, ... }:
{
imports = [
2020-12-15 20:01:40 +05:00
../default.nix
2017-08-11 17:06:54 +05:00
];
2017-09-02 15:58:25 +05:00
mailserver = {
enable = true;
fqdn = "mail.example.com";
domains = [ "example.com" "example2.com" ];
2017-09-13 13:16:47 +05:00
loginAccounts = {
"user1@example.com" = {
2017-09-13 13:16:47 +05:00
hashedPassword = "$6$/z4n8AQl6K$kiOkBTWlZfBd7PvF5GsJ8PmPgdZsFGN1jPGZufxxr60PoR0oUsrvzm2oQiflyz5ir9fFJ.d/zKm/NgLXNUsNX/";
};
};
2019-05-03 16:11:47 +05:00
extraVirtualAliases = {
"info@example.com" = "user1@example.com";
"postmaster@example.com" = "user1@example.com";
"abuse@example.com" = "user1@example.com";
"user1@example2.com" = "user1@example.com";
"info@example2.com" = "user1@example.com";
"postmaster@example2.com" = "user1@example.com";
"abuse@example2.com" = "user1@example.com";
2017-09-13 13:16:47 +05:00
};
2017-09-02 15:58:25 +05:00
};
2017-08-11 17:06:54 +05:00
};
}