formatting
This commit is contained in:
parent
fb8b55b2c9
commit
e569bdec50
|
@ -2,9 +2,9 @@
|
||||||
let
|
let
|
||||||
hostname = "mail.test.stramke.com";
|
hostname = "mail.test.stramke.com";
|
||||||
domain = "test.stramke.com";
|
domain = "test.stramke.com";
|
||||||
in {
|
in
|
||||||
networking.firewall.allowedTCPPorts = [ 25 587 143 11334];
|
{
|
||||||
users.users.postfix.extraGroups = ["rspamd"]; # doesn't seem to work
|
networking.firewall.allowedTCPPorts = [ 25 587 143 ];
|
||||||
services = {
|
services = {
|
||||||
postfix = {
|
postfix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -22,8 +22,8 @@
|
||||||
smtpd_sasl_auth_enable = true;
|
smtpd_sasl_auth_enable = true;
|
||||||
smtpd_sasl_path = "/var/lib/postfix/auth";
|
smtpd_sasl_path = "/var/lib/postfix/auth";
|
||||||
|
|
||||||
# put in opendkim (port 8891) and rspamd (port 11334) as mail filter
|
# put in opendkim (port 8891) and rspamd (port 11333) as mail filter
|
||||||
smtpd_milters = ["inet:localhost:8891" "/run/rspamd/rspamd.sock"];
|
smtpd_milters = [ "inet:localhost:8891" "inet:localhost:11333" ];
|
||||||
non_smtpd_milters = "$smtpd_milters";
|
non_smtpd_milters = "$smtpd_milters";
|
||||||
milter_default_action = "accept";
|
milter_default_action = "accept";
|
||||||
};
|
};
|
||||||
|
@ -70,6 +70,14 @@
|
||||||
};
|
};
|
||||||
rspamd = {
|
rspamd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
workers = {
|
||||||
|
normal = {
|
||||||
|
bindSockets = [ "*:11333" ]; # interface for the mailfilter
|
||||||
|
};
|
||||||
|
controller = {
|
||||||
|
bindSockets = [ "*:11334" ]; # webinterface
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
opendkim = {
|
opendkim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Reference in a new issue