From 091767fbae753d8e0caa0b445725cb147c124cf2 Mon Sep 17 00:00:00 2001 From: b12f Date: Mon, 19 Aug 2024 17:09:01 +0200 Subject: [PATCH] frikandel/email: make sure emails reach the right catch-all --- hosts/frikandel/email.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosts/frikandel/email.nix b/hosts/frikandel/email.nix index 3b54d3f..9f92a1a 100644 --- a/hosts/frikandel/email.nix +++ b/hosts/frikandel/email.nix @@ -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 }