connect postfix and opendkim

This commit is contained in:
jaina heartles 2024-07-10 15:14:45 -07:00
parent 28a9074fa5
commit ff70e44994

View file

@ -1,16 +1,22 @@
{ pkgs, ... }: { pkgs, config, ... }:
{ {
services.postfix = { services.postfix = {
enable = true; enable = true;
enableSubmission = 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 = { services.opendkim = {
enable = true; enable = true;
selector = "default"; selector = "default";
domains = "csl:${config.networking.fqdn}";
}; };
} }