From d1fca836b9da18e572eefac4960b15147961e0fa Mon Sep 17 00:00:00 2001 From: Rouven Seifert Date: Fri, 8 Mar 2024 14:41:03 +0100 Subject: [PATCH] mail: match smtp banner to rDNS --- modules/mail/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/mail/default.nix b/modules/mail/default.nix index 60d59d8..02413c9 100644 --- a/modules/mail/default.nix +++ b/modules/mail/default.nix @@ -92,6 +92,7 @@ in message_size_limit = "26214400"; # hostname used in helo command. It is recommended to have this match the reverse dns entry smtp_helo_name = config.networking.rDNS; + smtpd_banner = "${config.networking.rDNS} ESMTP $mail_name"; smtp_use_tls = true; # smtp_tls_security_level = "encrypt"; smtpd_use_tls = true;