From b25ba6b00c40db970547679d3c36198d07ff290c Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Thu, 22 Dec 2022 14:36:58 +0000
Subject: [PATCH] Set Sieve forwarding sender to the recipient

This should allow forwarding via Sieve scripts to work with
SPF (otherwise emails will likely bounce).
---
 roles/mail/templates/dovecot/conf.d/90-sieve.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/roles/mail/templates/dovecot/conf.d/90-sieve.conf b/roles/mail/templates/dovecot/conf.d/90-sieve.conf
index 6963ab39..a6072222 100644
--- a/roles/mail/templates/dovecot/conf.d/90-sieve.conf
+++ b/roles/mail/templates/dovecot/conf.d/90-sieve.conf
@@ -176,7 +176,7 @@ plugin {
   #
   # This setting is ignored when the envelope sender is "<>". In that case the
   # sender of the redirected message is also always "<>".
-  #sieve_redirect_envelope_from = sender
+  sieve_redirect_envelope_from = recipient
 
   ## TRACE DEBUGGING
   # Trace debugging provides detailed insight in the operations performed by
-- 
GitLab