2023-10-02 03:08:24 +01:00
|
|
|
{config, ...}: let
|
2024-03-10 17:26:18 +00:00
|
|
|
inherit (config.services.secrets) secrets;
|
2023-08-09 15:11:04 +01:00
|
|
|
in {
|
2023-09-08 21:29:08 +01:00
|
|
|
services.mailserver = {
|
2023-08-09 15:11:04 +01:00
|
|
|
enable = true;
|
|
|
|
fqdn = "mail.owo.monster";
|
|
|
|
domains = ["owo.monster"];
|
2023-09-18 03:56:58 +01:00
|
|
|
debugMode = true;
|
2023-08-09 15:11:04 +01:00
|
|
|
|
2023-09-18 03:56:58 +01:00
|
|
|
sslConfig = {
|
2023-08-09 15:11:04 +01:00
|
|
|
useACME = false;
|
|
|
|
cert = "/var/lib/acme/mail.owo.monster/fullchain.pem";
|
|
|
|
key = "/var/lib/acme/mail.owo.monster/key.pem";
|
|
|
|
};
|
|
|
|
|
2023-09-18 03:56:58 +01:00
|
|
|
spf.enable = false;
|
2023-08-09 15:11:04 +01:00
|
|
|
|
|
|
|
accounts = {
|
|
|
|
"chaos@owo.monster" = {
|
2023-09-18 03:56:58 +01:00
|
|
|
passwordHashFile = "${secrets.chaos_mail_passwd.path}";
|
2023-08-09 15:11:04 +01:00
|
|
|
aliases = [
|
|
|
|
"all@owo.monster"
|
|
|
|
"chaoticryptidz@owo.monster"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
"system@owo.monster" = {
|
2023-09-18 03:56:58 +01:00
|
|
|
passwordHashFile = "${secrets.system_mail_passwd.path}";
|
2023-08-09 15:11:04 +01:00
|
|
|
};
|
2023-09-02 18:17:03 +01:00
|
|
|
|
|
|
|
"gotosocial@owo.monster" = {
|
2023-09-18 03:56:58 +01:00
|
|
|
passwordHashFile = "${secrets.gotosocial_mail_passwd.path}";
|
2023-09-02 18:17:03 +01:00
|
|
|
};
|
2023-08-09 15:11:04 +01:00
|
|
|
};
|
2023-09-18 03:56:58 +01:00
|
|
|
|
|
|
|
extraAliasesFile = "${secrets.private_mail_aliases.path}";
|
2023-08-09 15:11:04 +01:00
|
|
|
};
|
|
|
|
}
|