From 9b66f7b252973be9d0c1891f8db9032667a50ac8 Mon Sep 17 00:00:00 2001 From: uku Date: Thu, 9 Jan 2025 15:28:40 +0100 Subject: [PATCH] fix(vesuvio): add destination_in to maddy catchall setup --- systems/vesuvio/mail/maddy.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/systems/vesuvio/mail/maddy.nix b/systems/vesuvio/mail/maddy.nix index 60b387f..bff8006 100644 --- a/systems/vesuvio/mail/maddy.nix +++ b/systems/vesuvio/mail/maddy.nix @@ -71,7 +71,11 @@ in } # catch-all setup inspired by https://github.com/foxcpp/maddy/issues/243#issuecomment-1406567636 - # we don't have a destination_in clause because there is only one imap account + # if the email is one of the already existing imap mailboxes, redirect to that directly + destination_in &local_mailboxes { + deliver_to &local_mailboxes + } + destination $(local_domains) { modify { replace_rcpt regexp ".*" "hi@uku.moe"