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, ... }:
|
||||
|
||||
{
|
||||
users.users."${config.services.postfix.user}".extraGroups =
|
||||
[ "${config.services.opendkim.group}" ];
|
||||
services.postfix = {
|
||||
enable = true;
|
||||
enableSubmission = true;
|
||||
|
@ -10,7 +8,7 @@
|
|||
|
||||
config = {
|
||||
inet_interfaces = "loopback-only";
|
||||
smtpd_milters = config.services.opendkim.socket;
|
||||
smtpd_milters = "inet:127.0.0.1:8891";
|
||||
non_smtpd_milters = "$smtpd_milters";
|
||||
milter_default_action = "accept";
|
||||
};
|
||||
|
@ -19,6 +17,7 @@
|
|||
services.opendkim = {
|
||||
enable = true;
|
||||
selector = "default";
|
||||
socket = "inet:8891@127.0.0.1";
|
||||
domains = "csl:${config.networking.fqdn}";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue