Add postfix smarthost to the mail namespace #541
Reference in New Issue
Block a user
Delete Branch "benvin/mail-smarthost"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Mail needs one routing hub between the edge gateways, Stalwart and the lab: inbound to Stalwart over LMTP, outbound to the gateways, all of it through rspamd.
mail-in.main.unkin.net(50Gi spool per pod, node spread, PDB)*.main.unkin.netwildcard, reflected intomailmail.unkin.net/smarthost-client=truepodsRequires #539 merged.
relay_domainsis in the defaultparent_domain_matches_subdomains, sox@sub.unkin.netpassesreject_unauth_destinationfrom a gateway, buttransportonly matchesunkin.netexactly. The recipient is then routed and address-verified viarelayhost(mta1/mta2, i.e. back to the gateway), giving a mail loop → setparent_domain_matches_subdomains = debug_peer_list,fast_flush_domains,mynetworks,permit_mx_backup_networks,qmqpd_authorized_clients,smtpd_access_maps(droprelay_domains), or add.unkin.nettorelay_domains+transportif subdomains are meant to be delivered.address_verify_positive_refresh_timeis 7d, so deleted Stalwart mailboxes keep being accepted from gateways for up to a week → set it to ~1h.reject_plaintext_session, permitis a comma list; Postfix access-map RHS takes one action or a restriction class, so check_client_access will log "unknown restriction" and 451 every gateway connection → declaresmtpd_restriction_classes = gateway_tlswithgateway_tls = reject_plaintext_session, permitand usegateway_tlsas the RHS (also in thesmtpd_authorized_xforward_hostslookup, where any hit already matches).