2017-08-11 12:06:54 +00:00
|
|
|
{
|
|
|
|
network.description = "mail server";
|
|
|
|
|
|
|
|
mailserver =
|
|
|
|
{ config, pkgs, ... }:
|
|
|
|
{
|
|
|
|
imports = [
|
2020-12-15 15:01:40 +00:00
|
|
|
../default.nix
|
2017-08-11 12:06:54 +00:00
|
|
|
];
|
2017-09-02 10:58:25 +00:00
|
|
|
|
|
|
|
mailserver = {
|
|
|
|
enable = true;
|
2017-11-11 09:44:45 +00:00
|
|
|
fqdn = "mail.example.com";
|
2017-11-11 09:53:35 +00:00
|
|
|
domains = [ "example.com" "example2.com" ];
|
2017-09-13 08:16:47 +00:00
|
|
|
loginAccounts = {
|
2017-11-11 09:44:45 +00:00
|
|
|
"user1@example.com" = {
|
2017-09-13 08:16:47 +00:00
|
|
|
hashedPassword = "$6$/z4n8AQl6K$kiOkBTWlZfBd7PvF5GsJ8PmPgdZsFGN1jPGZufxxr60PoR0oUsrvzm2oQiflyz5ir9fFJ.d/zKm/NgLXNUsNX/";
|
|
|
|
};
|
|
|
|
};
|
2019-05-03 11:11:47 +00:00
|
|
|
extraVirtualAliases = {
|
2017-11-11 09:44:45 +00:00
|
|
|
"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 08:16:47 +00:00
|
|
|
};
|
2017-09-02 10:58:25 +00:00
|
|
|
};
|
2017-08-11 12:06:54 +00:00
|
|
|
};
|
|
|
|
}
|