mailserver: Enable postscreen

nazuna
Simon Bruder 2023-08-18 15:15:07 +02:00
parent 385cf15e02
commit 30485e7d70
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
1 changed files with 20 additions and 0 deletions

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;