mirror of
https://git.lgmrszd.xyz/Lgmrszd/nix-cfg.git
synced 2025-12-14 15:48:21 +01:00
vps1: enable mailserver
This commit is contained in:
parent
e8357e9ab0
commit
39e630f12a
3 changed files with 42 additions and 0 deletions
37
hosts/vps1/services/mailserver.nix
Normal file
37
hosts/vps1/services/mailserver.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{ lib, config, data, ...}:
|
||||
let
|
||||
inherit (data.host) rootDomain;
|
||||
inherit (data.services.mailserver) domain;
|
||||
gitDomain = data.services.git.domain;
|
||||
in
|
||||
{
|
||||
mailserver = {
|
||||
enable = true;
|
||||
fqdn = domain;
|
||||
domains = [
|
||||
rootDomain
|
||||
domain
|
||||
gitDomain
|
||||
];
|
||||
certificateScheme = "acme";
|
||||
|
||||
enableManageSieve = true;
|
||||
indexDir = "/var/lib/dovecot/indices";
|
||||
dkimKeyBits = 4096;
|
||||
|
||||
loginAccounts = {
|
||||
"lgm@${rootDomain}" = {
|
||||
aliases = [
|
||||
"lgmrszd@${rootDomain}"
|
||||
"postmaster@${rootDomain}"
|
||||
"abuse@${rootDomain}"
|
||||
];
|
||||
};
|
||||
"forgejo@${rootDomain}" = {
|
||||
aliases = [
|
||||
"@${gitDomain}"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue