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