mirror of
https://github.com/RGBCube/ncc
synced 2025-07-30 11:37:44 +00:00
Use dmarc messaging
This commit is contained in:
parent
fa4520cb2c
commit
1e90277f19
2 changed files with 21 additions and 8 deletions
|
@ -1,6 +1,8 @@
|
|||
{ config, ulib, ... }: with ulib;
|
||||
|
||||
serverSystemConfiguration {
|
||||
let
|
||||
inherit (config.networking) domain;
|
||||
in serverSystemConfiguration {
|
||||
security.acme = {
|
||||
acceptTerms = true;
|
||||
|
||||
|
@ -11,8 +13,8 @@ serverSystemConfiguration {
|
|||
email = "security@rgbcu.be";
|
||||
};
|
||||
|
||||
certs.${config.networking.domain} = {
|
||||
extraDomainNames = [ "*.${config.networking.domain}" ];
|
||||
certs.${domain} = {
|
||||
extraDomainNames = [ "*.${domain}" ];
|
||||
group = "nginx";
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1,17 +1,28 @@
|
|||
{ config, ulib, ... }: with ulib;
|
||||
|
||||
serverSystemConfiguration {
|
||||
let
|
||||
inherit (config.networking) domain;
|
||||
|
||||
fqdn = "mail.${domain}";
|
||||
in serverSystemConfiguration {
|
||||
mailserver = enabled {
|
||||
domains = [ config.networking.domain ];
|
||||
fqdn = "mail.${config.networking.domain}";
|
||||
inherit fqdn;
|
||||
|
||||
domains = [ domain ];
|
||||
|
||||
certificateScheme = "acme";
|
||||
|
||||
hierarchySeparator = "/";
|
||||
useFsLayout = true;
|
||||
|
||||
loginAccounts."contact@${config.networking.domain}" = {
|
||||
aliases = [ "@${config.networking.domain}" ];
|
||||
dmarcReporting = enabled {
|
||||
inherit domain;
|
||||
|
||||
organizationName = "Doofemshmirtz Evil Inc.";
|
||||
};
|
||||
|
||||
loginAccounts."contact@${domain}" = {
|
||||
aliases = [ "@${domain}" ];
|
||||
|
||||
hashedPasswordFile = config.age.secrets."cube.mail.password.hash".path;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue