Files
Ansible-roles/mail_relay/templates/generic.regexp.j2
T

5 lines
365 B
Django/Jinja

# 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 }}