nixos-mailserver/nixops/single-server.nix

34 lines
886 B
Nix
Raw Normal View History

2017-08-11 14:06:54 +02:00
{
network.description = "mail server";
mailserver =
{ config, pkgs, ... }:
{
imports = [
2017-09-02 12:58:25 +02:00
./../default.nix
2017-08-11 14:06:54 +02:00
];
2017-09-02 12:58:25 +02:00
mailserver = {
enable = true;
domain = "example.com";
2017-11-09 22:13:27 +01:00
extraDomains = [ "example2.com" ];
2017-09-13 10:16:47 +02:00
hostPrefix = "mail";
loginAccounts = {
2017-11-09 23:17:03 +01:00
"user1" = {
2017-09-13 10:16:47 +02:00
hashedPassword = "$6$/z4n8AQl6K$kiOkBTWlZfBd7PvF5GsJ8PmPgdZsFGN1jPGZufxxr60PoR0oUsrvzm2oQiflyz5ir9fFJ.d/zKm/NgLXNUsNX/";
};
};
virtualAliases = {
2017-11-09 23:17:03 +01:00
"info" = "user1";
"postmaster" = "user1";
"abuse" = "user1";
"user1@example2.com" = "user1";
"info@example2.com" = "user1";
"postmaster@example2.com" = "user1";
"abuse@example2.com" = "user1";
2017-09-13 10:16:47 +02:00
};
2017-09-02 12:58:25 +02:00
};
2017-08-11 14:06:54 +02:00
};
}