Email configuration #9
|
@ -2,9 +2,9 @@
|
|||
`sops.config.secrets.portunus_search.path`
`/var/lib/mail`
`rspamd.ifsr.de`
|
||||
let
|
||||
hostname = "mail.test.stramke.com";
|
||||
domain = "test.stramke.com";
|
||||
in {
|
||||
`sops.config.secrets.portunus_search.path`
`/var/lib/mail`
`rspamd.ifsr.de`
|
||||
networking.firewall.allowedTCPPorts = [ 25 587 143 11334];
|
||||
`sops.config.secrets.portunus_search.path`
`/var/lib/mail`
`rspamd.ifsr.de`
|
||||
users.users.postfix.extraGroups = ["rspamd"]; # doesn't seem to work
|
||||
`sops.config.secrets.portunus_search.path`
`/var/lib/mail`
`rspamd.ifsr.de`
|
||||
in
|
||||
`sops.config.secrets.portunus_search.path`
`/var/lib/mail`
`rspamd.ifsr.de`
|
||||
{
|
||||
`sops.config.secrets.portunus_search.path`
`/var/lib/mail`
`rspamd.ifsr.de`
|
||||
networking.firewall.allowedTCPPorts = [ 25 587 143 ];
|
||||
`sops.config.secrets.portunus_search.path`
`/var/lib/mail`
`rspamd.ifsr.de`
|
||||
services = {
|
||||
postfix = {
|
||||
enable = true;
|
||||
|
@ -22,8 +22,8 @@
|
|||
`sops.config.secrets.portunus_search.path`
`/var/lib/mail`
`rspamd.ifsr.de`
`sops.config.secrets.portunus_search.path`
`/var/lib/mail`
`rspamd.ifsr.de`
|
||||
smtpd_sasl_auth_enable = true;
|
||||
smtpd_sasl_path = "/var/lib/postfix/auth";
|
||||
|
||||
# put in opendkim (port 8891) and rspamd (port 11334) as mail filter
|
||||
`sops.config.secrets.portunus_search.path`
`/var/lib/mail`
`rspamd.ifsr.de`
|
||||
smtpd_milters = ["inet:localhost:8891" "/run/rspamd/rspamd.sock"];
|
||||
`sops.config.secrets.portunus_search.path`
`/var/lib/mail`
`rspamd.ifsr.de`
|
||||
# put in opendkim (port 8891) and rspamd (port 11333) as mail filter
|
||||
`sops.config.secrets.portunus_search.path`
`/var/lib/mail`
`rspamd.ifsr.de`
|
||||
smtpd_milters = [ "inet:localhost:8891" "inet:localhost:11333" ];
|
||||
`sops.config.secrets.portunus_search.path`
`/var/lib/mail`
`rspamd.ifsr.de`
|
||||
non_smtpd_milters = "$smtpd_milters";
|
||||
milter_default_action = "accept";
|
||||
};
|
||||
|
@ -70,6 +70,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 = {
|
||||
enable = true;
|
||||
workers = {
|
||||
`sops.config.secrets.portunus_search.path`
`/var/lib/mail`
`rspamd.ifsr.de`
|
||||
normal = {
|
||||
`sops.config.secrets.portunus_search.path`
`/var/lib/mail`
`rspamd.ifsr.de`
|
||||
bindSockets = [ "*:11333" ]; # interface for the mailfilter
|
||||
`sops.config.secrets.portunus_search.path`
`/var/lib/mail`
`rspamd.ifsr.de`
|
||||
};
|
||||
`sops.config.secrets.portunus_search.path`
`/var/lib/mail`
`rspamd.ifsr.de`
|
||||
controller = {
|
||||
`sops.config.secrets.portunus_search.path`
`/var/lib/mail`
`rspamd.ifsr.de`
|
||||
bindSockets = [ "*:11334" ]; # webinterface
|
||||
`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`
|
||||
};
|
||||
opendkim = {
|
||||
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`
|
sops.config.secrets.portunus_search.path
/var/lib/mail
rspamd.ifsr.de