adding nixos mailserver
This commit is contained in:
parent
e56de75416
commit
096ad802bd
2 changed files with 56 additions and 0 deletions
|
@ -171,6 +171,54 @@
|
|||
nodes.clightning.enable = true;
|
||||
};
|
||||
|
||||
mailserver = {
|
||||
enable = true;
|
||||
fqdn = "mail.cochrun.xyz";
|
||||
domains = [ "cochrun.xyz" ];
|
||||
enableManageSieve = true;
|
||||
mailDirectory = "/storage/vmail";
|
||||
mailboxes = {
|
||||
Archive = {
|
||||
auto = "subsribe";
|
||||
specialUse = "Archive";
|
||||
}
|
||||
Drafts = {
|
||||
auto = "subscribe";
|
||||
specialUse = "Drafts";
|
||||
};
|
||||
Junk = {
|
||||
auto = "subscribe";
|
||||
specialUse = "Junk";
|
||||
};
|
||||
Sent = {
|
||||
auto = "subscribe";
|
||||
specialUse = "Sent";
|
||||
};
|
||||
Trash = {
|
||||
auto = "no";
|
||||
specialUse = "Trash";
|
||||
};
|
||||
};
|
||||
useFsLayout = true;
|
||||
hierarchySeparator = "/";
|
||||
certificateScheme = 1;
|
||||
certificateFile = "/var/lib/caddy/.local/share/caddy/certificates/acme-v02.api.letsencrypt.org-directory/mail.cochrun.xyz/mail.cochrun.xyz.crt";
|
||||
keyFile = "/var/lib/caddy/.local/share/caddy/certificates/acme-v02.api.letsencrypt.org-directory/mail.cochrun.xyz/mail.cochrun.xyz.key";
|
||||
loginAccounts = {
|
||||
"chris@cochrun.xyz" = {
|
||||
hashedPasswordFile = "/home/chris/mailp";
|
||||
aliases = [
|
||||
"postmaster@cochrun.xyz"
|
||||
"cxda@cochrun.xyz"
|
||||
"ceth@cochrun.xyz"
|
||||
"clocb@cochrun.xyz"
|
||||
"higdry@cochrun.xyz"
|
||||
"clin@cochrun.xyz"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# DDCLIENT
|
||||
services.ddclient = {
|
||||
enable = true;
|
||||
|
@ -213,6 +261,10 @@
|
|||
reverse_proxy localhost:8123
|
||||
'';
|
||||
};
|
||||
virtualHosts = {
|
||||
"mail.cochrun.xyz".extraConfig = ''
|
||||
'';
|
||||
}
|
||||
virtualHosts = {
|
||||
"jelly.cochrun.xyz".extraConfig = ''
|
||||
reverse_proxy localhost:8096
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue