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 }