From ff70e44994f201ff3bbd192210116a8fcf5ddff1 Mon Sep 17 00:00:00 2001 From: jaina heartles Date: Wed, 10 Jul 2024 15:14:45 -0700 Subject: [PATCH] connect postfix and opendkim --- postfix.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/postfix.nix b/postfix.nix index 5a887f9..568b81a 100644 --- a/postfix.nix +++ b/postfix.nix @@ -1,16 +1,22 @@ -{ pkgs, ... }: +{ pkgs, config, ... }: { services.postfix = { enable = true; enableSubmission = true; - domain = "egirls.gay"; + domain = config.networking.fqdn; - config = { inet_interfaces = "loopback-only"; }; + config = { + inet_interfaces = "loopback-only"; + smtpd_milters = config.services.opendkim.socket; + non_smtpd_milters = "$smtpd_milters"; + milter_default_action = "accept"; + }; }; services.opendkim = { enable = true; selector = "default"; + domains = "csl:${config.networking.fqdn}"; }; }