mail_relay: postfix relays all mail through the mailcow submission port with a mailbox per host, replaces mail_aliases

This commit is contained in:
2026-10-26 09:44:37 +00:00
parent c91c56b153
commit 885e6f3338
7 changed files with 235 additions and 29 deletions
+4
View File
@@ -0,0 +1,4 @@
# mailcow rejects a sender that does not belong to the login of the submission, so every address of
# this host is rewritten to the mailbox. The map also applies to recipient addresses: only the names
# of this host match, never a recipient such as admin@ruekov.eu.
/^[^@]+@({{ mail_relay_local_names | map('regex_escape') | join('|') }})$/ {{ mail_relay.sender }}