mailserver: Enable postscreen

This commit is contained in:
Simon Bruder 2023-08-18 15:15:07 +02:00
parent 385cf15e02
commit 30485e7d70
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -133,6 +133,26 @@ lib.mkIf cfg.enable {
submissionsOptions = config.services.postfix.submissionOptions;
masterConfig = {
# Postscreen
smtpd = {
type = "pass";
};
smtp_inet = {
# Partially overrides upstream
name = "smtp";
type = "inet";
private = false;
command = lib.mkForce "postscreen";
maxproc = 1;
};
tlsproxy = {
maxproc = 0;
};
dnsblog = {
maxproc = 0;
};
# Heder cleanup
submission-header-cleanup = {
private = false;
maxproc = 0;