mail_relay: postfix relays all mail through the mailcow submission port with a mailbox per host, replaces mail_aliases
This commit is contained in:
@@ -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 }}
|
||||
Reference in New Issue
Block a user