-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 23 Oct 2014, Casey Bralla wrote:

I think this is a recursion problem, since the redirected mail has to go
through the spamassassin check and sieve again.   I tried to get clever and
prevent the recursion, but I'm not clever enough.  Here is my sieve rule
file.

the easiest way would be to prevent Sieve filtering for "spam" at all. Or use another filter without this check.

# rule:[SPAM]
if header :contains "X-Spam-Flag" ["YES"]
       {
       if address :is "to" "s...@vmailservertest.nerdworld.org"
               {
               keep;
               }
       else
               {
               redirect "s...@vmailservertest.nerdworld.org";
               }
       }

Did you've verified that "redirect" really alters the "to" header? Otherwise you need to use the envelope information. See http://wiki2.dovecot.org/Pigeonhole/Sieve

- -- Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQEVAwUBVEn3vnz1H7kL/d9rAQLpWggAtL976eZWk7xyI4WcqMMv6Zzuy4ylFf0z
2wbMt+YzuZ3oRWDw/K6Fqx4CqaWxte0MqdqzDpbJb2wrQSDXHRvs16oUOss0WN7o
cL/o4mdI4sn9W1/I1+QZb5kb+CqAT8HgvWdek4kQYoG01QN8NtvtEEliRttMMT/D
KAecKG+RvHdYfTOxyEAjKGcCZBspd928qCKZiqM4nyGtNM7tavLb9xaQd1ueRE/b
UD54MY896+AemRUITMQDqbyDVHWIawcpCcoLMq2+uTGtatBhdUuNERcbXQrzj3cB
kbXuJSMnODoOKYK0e/3ZMHPZYo5v/KQftasi0BACUHI8mTe0HUpMIw==
=KtCK
-----END PGP SIGNATURE-----

Reply via email to