introduce max_message_size config option

This commit is contained in:
holger krekel
2024-07-28 18:16:04 +02:00
parent 4858a67be1
commit ac1f2dadad
6 changed files with 15 additions and 6 deletions

View File

@@ -15,7 +15,7 @@ def get_initial_remote_data(sshexec, mail_domain):
def check_initial_remote_data(remote_data, print=print):
mail_domain = remote_data["mail_domain"]
if not remote_data["A"] and not remote_data["AAAA"]:
print("Missing A and/or AAAA DNS records for {mail_domain}!")
print(f"Missing A and/or AAAA DNS records for {mail_domain}!")
elif not remote_data["MTA_STS"]:
print("Missing MTA-STS CNAME record:")
print(f"mta-sts.{mail_domain}. CNAME {mail_domain}")

View File

@@ -62,8 +62,7 @@ mydestination =
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
# maximum 30MB sized messages
message_size_limit = 31457280
message_size_limit = {{config.max_message_size}}
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all