cluster/services/mail: move from VEGAS/mail
This commit is contained in:
parent
6ccc263100
commit
3289e05101
10 changed files with 21 additions and 9 deletions
|
@ -1,11 +1,6 @@
|
||||||
{ depot, lib, ... }:
|
{ depot, lib, ... }:
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
./imap.nix
|
|
||||||
./opendkim.nix
|
|
||||||
./postfix.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
|
{
|
||||||
security.acme.certs."mail.${depot.lib.meta.domain}" = {
|
security.acme.certs."mail.${depot.lib.meta.domain}" = {
|
||||||
dnsProvider = "exec";
|
dnsProvider = "exec";
|
||||||
webroot = lib.mkForce null;
|
webroot = lib.mkForce null;
|
|
@ -1,6 +1,24 @@
|
||||||
{ depot, ... }:
|
{ depot, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
services.mail = {
|
||||||
|
nodes = {
|
||||||
|
smtp = [ "VEGAS" ];
|
||||||
|
imap = [ "VEGAS" ];
|
||||||
|
};
|
||||||
|
nixos = {
|
||||||
|
smtp = [
|
||||||
|
./postfix.nix
|
||||||
|
./opendkim.nix
|
||||||
|
./certificate.nix
|
||||||
|
];
|
||||||
|
imap = [
|
||||||
|
./imap.nix
|
||||||
|
./certificate.nix
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
dns.records = let
|
dns.records = let
|
||||||
inherit (depot.lib.meta) domain adminEmail;
|
inherit (depot.lib.meta) domain adminEmail;
|
||||||
mailServerAddr = depot.hours.VEGAS.interfaces.primary.addrPublic;
|
mailServerAddr = depot.hours.VEGAS.interfaces.primary.addrPublic;
|
||||||
|
|
|
@ -32,7 +32,7 @@ let
|
||||||
'';
|
'';
|
||||||
in {
|
in {
|
||||||
|
|
||||||
age.secrets.dovecotLdapToken.file = ../../../../secrets/dovecot-ldap-token.age;
|
age.secrets.dovecotLdapToken.file = ../../../secrets/dovecot-ldap-token.age;
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 143 993 ];
|
networking.firewall.allowedTCPPorts = [ 143 993 ];
|
||||||
|
|
|
@ -14,7 +14,7 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
age.secrets."postfix-ldap-mailboxes.cf" = {
|
age.secrets."postfix-ldap-mailboxes.cf" = {
|
||||||
file = ../../../../secrets/postfix-ldap-mailboxes.age;
|
file = ../../../secrets/postfix-ldap-mailboxes.age;
|
||||||
owner = "postfix";
|
owner = "postfix";
|
||||||
group = "postfix";
|
group = "postfix";
|
||||||
mode = "0400";
|
mode = "0400";
|
|
@ -18,7 +18,6 @@
|
||||||
./services/backbone-routing
|
./services/backbone-routing
|
||||||
./services/cdn-shield
|
./services/cdn-shield
|
||||||
./services/jokes
|
./services/jokes
|
||||||
./services/mail
|
|
||||||
./services/minecraft
|
./services/minecraft
|
||||||
./services/websites
|
./services/websites
|
||||||
./services/wireguard-server
|
./services/wireguard-server
|
||||||
|
|
Loading…
Reference in a new issue