2024-07-10 22:14:45 +00:00
|
|
|
{ pkgs, config, ... }:
|
2024-04-30 19:43:13 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
services.postfix = {
|
|
|
|
enable = true;
|
|
|
|
enableSubmission = true;
|
2024-07-10 22:14:45 +00:00
|
|
|
domain = config.networking.fqdn;
|
2024-04-30 19:43:13 +00:00
|
|
|
|
2024-07-10 22:14:45 +00:00
|
|
|
config = {
|
|
|
|
inet_interfaces = "loopback-only";
|
|
|
|
smtpd_milters = config.services.opendkim.socket;
|
|
|
|
non_smtpd_milters = "$smtpd_milters";
|
|
|
|
milter_default_action = "accept";
|
|
|
|
};
|
2024-07-10 22:00:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
services.opendkim = {
|
|
|
|
enable = true;
|
|
|
|
selector = "default";
|
2024-07-10 22:14:45 +00:00
|
|
|
domains = "csl:${config.networking.fqdn}";
|
2024-04-30 19:43:13 +00:00
|
|
|
};
|
|
|
|
}
|