Email configuration #9
|
@ -1,15 +1,17 @@
|
|||
`sops.config.secrets.portunus_search.path`
`/var/lib/mail`
`rspamd.ifsr.de`
|
||||
{ config, pkgs, ... }:
|
||||
let hostname = "mail.test.stramke.com";
|
||||
`sops.config.secrets.portunus_search.path`
`/var/lib/mail`
`rspamd.ifsr.de`
|
||||
let
|
||||
`sops.config.secrets.portunus_search.path`
`/var/lib/mail`
`rspamd.ifsr.de`
|
||||
hostname = "mail.test.stramke.com";
|
||||
`sops.config.secrets.portunus_search.path`
`/var/lib/mail`
`rspamd.ifsr.de`
|
||||
domain = "test.stramke.com";
|
||||
`sops.config.secrets.portunus_search.path`
`/var/lib/mail`
`rspamd.ifsr.de`
|
||||
in {
|
||||
networking.firewall.allowedTCPPorts = [ 25 587 143 ];
|
||||
services = {
|
||||
postfix = {
|
||||
enable = true;
|
||||
hostname = "${hostname}";
|
||||
domain = "test.stramke.com";
|
||||
`sops.config.secrets.portunus_search.path`
`/var/lib/mail`
`rspamd.ifsr.de`
|
||||
domain = "${domain}";
|
||||
`sops.config.secrets.portunus_search.path`
`/var/lib/mail`
`rspamd.ifsr.de`
|
||||
relayHost = "";
|
||||
origin = "test.stramke.com";
|
||||
`sops.config.secrets.portunus_search.path`
`/var/lib/mail`
`rspamd.ifsr.de`
|
||||
destination = ["mail.test.stramke.com" "test.stramke.com" "localhost"];
|
||||
`sops.config.secrets.portunus_search.path`
`/var/lib/mail`
`rspamd.ifsr.de`
|
||||
origin = "${domain}";
|
||||
`sops.config.secrets.portunus_search.path`
`/var/lib/mail`
`rspamd.ifsr.de`
|
||||
destination = ["${hostname}" "${domain}" "localhost"];
|
||||
`sops.config.secrets.portunus_search.path`
`/var/lib/mail`
`rspamd.ifsr.de`
|
||||
config = {
|
||||
mynetworks = "168.119.135.69/32 10.0.0.0/24 0.0.0.0/0 127.0.0.1";
|
||||
smtpd_recipient_restrictions = [
|
||||
|
@ -62,6 +64,14 @@
|
|||
`sops.config.secrets.portunus_search.path`
`/var/lib/mail`
`rspamd.ifsr.de`
`sops.config.secrets.portunus_search.path`
`/var/lib/mail`
`rspamd.ifsr.de`
|
||||
}
|
||||
'';
|
||||
};
|
||||
rspamd = {
|
||||
`sops.config.secrets.portunus_search.path`
`/var/lib/mail`
`rspamd.ifsr.de`
|
||||
enable = true;
|
||||
`sops.config.secrets.portunus_search.path`
`/var/lib/mail`
`rspamd.ifsr.de`
|
||||
};
|
||||
`sops.config.secrets.portunus_search.path`
`/var/lib/mail`
`rspamd.ifsr.de`
|
||||
opendkim = {
|
||||
`sops.config.secrets.portunus_search.path`
`/var/lib/mail`
`rspamd.ifsr.de`
|
||||
enable = true;
|
||||
`sops.config.secrets.portunus_search.path`
`/var/lib/mail`
`rspamd.ifsr.de`
|
||||
selector = "mail";
|
||||
`sops.config.secrets.portunus_search.path`
`/var/lib/mail`
`rspamd.ifsr.de`
|
||||
domains = "csl:${domain}";
|
||||
`sops.config.secrets.portunus_search.path`
`/var/lib/mail`
`rspamd.ifsr.de`
|
||||
};
|
||||
`sops.config.secrets.portunus_search.path`
`/var/lib/mail`
`rspamd.ifsr.de`
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|||
`sops.config.secrets.portunus_search.path`
`/var/lib/mail`
`rspamd.ifsr.de`
`sops.config.secrets.portunus_search.path`
`/var/lib/mail`
`rspamd.ifsr.de`
|
sops.config.secrets.portunus_search.path
/var/lib/mail
rspamd.ifsr.de