use inet connection instead

This commit is contained in:
jaina heartles 2024-07-10 15:24:58 -07:00
parent 0db0cf490b
commit 9dced36892

View file

@ -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}";
};
}