egirls-nixos/postfix.nix

24 lines
492 B
Nix
Raw Normal View History

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";
2024-07-10 22:24:58 +00:00
smtpd_milters = "inet:127.0.0.1:8891";
2024-07-10 22:14:45 +00:00
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:24:58 +00:00
socket = "inet:8891@127.0.0.1";
2024-07-10 22:14:45 +00:00
domains = "csl:${config.networking.fqdn}";
2024-04-30 19:43:13 +00:00
};
}