use inet connection instead
This commit is contained in:
parent
0db0cf490b
commit
9dced36892
1 changed files with 2 additions and 3 deletions
|
@ -1,8 +1,6 @@
|
||||||
{ pkgs, config, ... }:
|
{ pkgs, config, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
users.users."${config.services.postfix.user}".extraGroups =
|
|
||||||
[ "${config.services.opendkim.group}" ];
|
|
||||||
services.postfix = {
|
services.postfix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableSubmission = true;
|
enableSubmission = true;
|
||||||
|
@ -10,7 +8,7 @@
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
inet_interfaces = "loopback-only";
|
inet_interfaces = "loopback-only";
|
||||||
smtpd_milters = config.services.opendkim.socket;
|
smtpd_milters = "inet:127.0.0.1:8891";
|
||||||
non_smtpd_milters = "$smtpd_milters";
|
non_smtpd_milters = "$smtpd_milters";
|
||||||
milter_default_action = "accept";
|
milter_default_action = "accept";
|
||||||
};
|
};
|
||||||
|
@ -19,6 +17,7 @@
|
||||||
services.opendkim = {
|
services.opendkim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
selector = "default";
|
selector = "default";
|
||||||
|
socket = "inet:8891@127.0.0.1";
|
||||||
domains = "csl:${config.networking.fqdn}";
|
domains = "csl:${config.networking.fqdn}";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue