24 lines
573 B
Nix
24 lines
573 B
Nix
{ pkgs, config, ... }:
|
|
|
|
{
|
|
users.users."${config.services.postfix.user}".extraGroups =
|
|
[ "${config.services.opendkim.group}" ];
|
|
services.postfix = {
|
|
enable = true;
|
|
enableSubmission = true;
|
|
domain = config.networking.fqdn;
|
|
|
|
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}";
|
|
};
|
|
}
|