2019-05-10 23:21:28 +02:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
2021-08-12 18:32:28 +02:00
|
|
|
let mymailserver = (import <nixpkgs> {}).pkgs.fetchgit {
|
|
|
|
url = "https://codeberg.org/tokudan/nixos-mailserver.git";
|
2021-12-13 20:17:08 +01:00
|
|
|
rev = "4ace785a05f233392b6db6c82dcdd25599cd88dc";
|
|
|
|
sha256 = "1cwj2k2w7316jby7l7fjcclbwjfs7p7ymyslw1cfh7y8vf2a32ii";
|
2021-08-12 18:32:28 +02:00
|
|
|
};
|
|
|
|
in
|
|
|
|
|
2019-05-10 23:21:28 +02:00
|
|
|
{
|
|
|
|
# Import some configuration as they are too long to be easily readable here
|
|
|
|
imports = [
|
2021-08-12 18:32:28 +02:00
|
|
|
#./dovecot.nix
|
|
|
|
#./postfix.nix
|
|
|
|
#./postfixadmin.nix
|
|
|
|
#./roundcube.nix
|
|
|
|
#./rspamd.nix
|
|
|
|
"${mymailserver}/default.nix"
|
2019-05-10 23:21:28 +02:00
|
|
|
];
|
2021-08-12 18:32:28 +02:00
|
|
|
networking.domain = "hamburg.freifunk.net";
|
|
|
|
services.mymailserver = {
|
|
|
|
enable = true;
|
2021-08-23 21:16:52 +02:00
|
|
|
logging = false;
|
2021-08-12 18:39:56 +02:00
|
|
|
adminAddress = "postmaster@mail.hamburg.freifunk.net";
|
2021-08-12 18:32:28 +02:00
|
|
|
mailFQDN = "mail2.hamburg.freifunk.net";
|
|
|
|
};
|
2019-05-10 23:21:28 +02:00
|
|
|
}
|