frikandel/email: make sure emails reach the right catch-all

This commit is contained in:
b12f 2024-08-19 17:09:01 +02:00
parent ddeed05da6
commit 091767fbae
Signed by: b12f
GPG key ID: 729956E1124F8F26

View file

@ -207,7 +207,7 @@ in {
# replace rcpt to catchall and deliver it there
destination $(local_domains) {
modify {
replace_rcpt regexp ".*" "mail@$(primary_domain)"
replace_rcpt regexp "(.+)@(.+)" "mail@$2"
}
deliver_to &local_mailboxes
}