Andrés Yacopino wrote:
Greetings, i am testing:
- dovecot-1.2-sieve-0.1.11
- dovecot 1.2.3
- dovecot-1.2-managesieve-0.11.8 (with patch)
I am trying to use sieve_after to execute some redirection of mails.
I have put in the after script:
require "include"; require "fileinto";
if header :contains ["To","Cc"] "userA@acasalud.com.ar" { keep; redirect "userB@acasalud.com.ar"; }
The redirection works but the sender user (userA) get the following error:
This is the mail system at host acamail.acasalud.com.ar.
I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below.
The mail system
http://10.11.0.21/webmail/src/compose.php?send_to=ayacopino%40acasalud.com.a...>: mail forwarding loop for userB@acasalud.com.ar http://10.11.0.21/webmail/src/compose.php?send_to=ayacopino%40acasalud.com.a... Could somebody can help me.
Thanks,
What does your log file says?
Also, you could cheat and tell it to use copy instead of keep and
redirect?