feat(postfix): bind to mail_domain's A/AAAA addresses for outbound mail

Carry forward A/AAAA address from the DNS check to the postfix deploy
stage and set accordingly in main.cf.
This commit is contained in:
j4n
2026-02-11 10:11:16 +01:00
parent 1b0337a5f7
commit 06560dd071
3 changed files with 15 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
import os
from pathlib import Path
import iniconfig
@@ -43,6 +44,8 @@ class Config:
)
self.mtail_address = params.get("mtail_address")
self.disable_ipv6 = params.get("disable_ipv6", "false").lower() == "true"
self.addr_v4 = os.environ.get("CHATMAIL_ADDR_V4", "")
self.addr_v6 = os.environ.get("CHATMAIL_ADDR_V6", "")
self.acme_email = params.get("acme_email", "")
self.imap_rawlog = params.get("imap_rawlog", "false").lower() == "true"
self.imap_compress = params.get("imap_compress", "false").lower() == "true"