[Dovecot] redirect and sieve
Hello,
I have set up postfix to use dove-cot lda. This works perfect. Sieve works a bit...
I would like to user the redirect feature of sieve. Having followed the wiki I added the following in my .dovecot.sieve :
require "redirect";
if header :contains "subject" ["order", "buy"] { redirect "orders@company.dom"; }
With this setup I get the following error: Sep 22 11:25:38 zalm deliver: sieve parse error for rgevaert: line 1: unsupported feature
Remove the require line makes a forward. But this doesn't forward the message I set, but makes a new empty message... :
- From Rudy.Gevaert@UGent.be Thu Sep 22 14:31:46 2005
- Date: Thu, 22 Sep 2005 14:29:01 +0200 (CEST)
- From: Rudy.Gevaert@UGent.be (Rudy Gevaert)
- To: undisclosed-recipients: ;
Is this a bug? Or have i missed something?
Thanks in advance,
--
Rudy Gevaert e-mail: Rudy.Gevaert@UGent.be Directie ICT, Afdeling Infrastructuur Groep Systemen tel: +32 9 264 4734 Universiteit Gent fax: +32 9 264 4994 Krijgslaan 281, gebouw S9, 9000 Gent, Belgie www.UGent.be
Hello,
I'm giving an update of the problem. I think this is a bug.
First of all, the require "redirect" line isn't needed in the scripts anymore.
When setting up redirect the following happens:
- mails are redirected
- the subject of the redirected message is empty
- the to field has undisclosed recipients in it
- when an empty line is found in the body of the email, everything after the empty line is not redirected
I've cc'ed the author of libsieve, maybe he has some knowlegde of this problem.
Could someone please take a look at this?
Thank you,
Rudy
Rudy Gevaert wrote:
Hello,
I have set up postfix to use dove-cot lda. This works perfect. Sieve works a bit...
I would like to user the redirect feature of sieve. Having followed the wiki I added the following in my .dovecot.sieve :
require "redirect";
if header :contains "subject" ["order", "buy"] { redirect "orders@company.dom"; }
With this setup I get the following error: Sep 22 11:25:38 zalm deliver: sieve parse error for rgevaert: line 1: unsupported feature
Remove the require line makes a forward. But this doesn't forward the message I set, but makes a new empty message... :
- From Rudy.Gevaert@UGent.be Thu Sep 22 14:31:46 2005
- Date: Thu, 22 Sep 2005 14:29:01 +0200 (CEST)
- From: Rudy.Gevaert@UGent.be (Rudy Gevaert)
- To: undisclosed-recipients: ;
Is this a bug? Or have i missed something?
Thanks in advance,
--
Rudy Gevaert e-mail: Rudy.Gevaert@UGent.be Directie ICT, Afdeling Infrastructuur Groep Systemen tel: +32 9 264 4734 Universiteit Gent fax: +32 9 264 4994 Krijgslaan 281, gebouw S9, 9000 Gent, Belgie www.UGent.be
On Fri, 2005-09-23 at 11:04 +0200, Rudy Gevaert wrote:
When setting up redirect the following happens:
- mails are redirected
- the subject of the redirected message is empty
- the to field has undisclosed recipients in it
- when an empty line is found in the body of the email, everything after the empty line is not redirected
Hmm. I can't reproduce this. Redirecting works just fine with me. Does reject works with you? Maybe it has something to do with your sendmail binary not working as expected. What happens if you from command line try this:
sendmail -i -f <> -- your.email@address
I've cc'ed the author of libsieve, maybe he has some knowlegde of this problem.
This part of code is in Dovecot's side and libsieve doesn't really have anything to do with it.
Hi Timo
Timo Sirainen wrote:
Hmm. I can't reproduce this. Redirecting works just fine with me. Does reject works with you?
Reject works. But the email telling me the mail is rejected doesn't contain the body of the mail I sent out. ( I don't know if it is that way.)
Maybe it has something to do with your sendmail binary not working as expected. What happens if you from command line try this:
sendmail -i -f <> -- your.email@address
<ctrl-d>
That input doesn't work sendmail -i -f <> -- your.email@address returns straight away.
zalm:~# sendmail -i -f rudy.gevaert@ugent.be To: info@webworm.org Subject: testje
lijn1 lijn2 lijn3
lijn4 . <ctrl-d>
This made me get an error message on rudy.gevaert@ugent.be:
This is the Postfix program at host zalm.UGent.be.
I'm sorry to have to inform you that your message could not be be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to <postmaster>
If you do so, please include this problem report. You can delete your own text from the attached returned message.
The Postfix program
<unknown>: No recipients specified
Reporting-MTA: dns; zalm.UGent.be X-Postfix-Queue-ID: AFDB8BE5F X-Postfix-Sender: rfc822; rudy.gevaert@ugent.be Arrival-Date: Sat, 24 Sep 2005 18:26:15 +0200 (CEST)
Final-Recipient: rfc822; unknown Action: failed Status: 5.0.0 Diagnostic-Code: X-Postfix; No recipients specified
Subject: testje From: rudy.gevaert@ugent.be (root) Date: Sat, 24 Sep 2005 18:26:15 +0200 (CEST) To: info@webworm.org
lijn1 lijn2 lijn3
lijn4 .
Thank you for looking into this!
Rudy
On Sat, 2005-09-24 at 18:30 +0200, Rudy Gevaert wrote:
Hi Timo
Timo Sirainen wrote:
Hmm. I can't reproduce this. Redirecting works just fine with me. Does reject works with you?
Reject works. But the email telling me the mail is rejected doesn't contain the body of the mail I sent out. ( I don't know if it is that way.)
It's supposed to leave the body out.
Maybe it has something to do with your sendmail binary not working as expected. What happens if you from command line try this:
sendmail -i -f <> -- your.email@address
<ctrl-d> That input doesn't work sendmail -i -f <> -- your.email@address returns straight away.
Oh, right, because of <> :) How about then:
sendmail -i -f '<>' -- rudy.gevaert@ugent.be
Although I'd think that it works since rejecting mails work.
Could you redirect some email to my address and then the same mail to me separately?
participants (2)
-
Rudy Gevaert
-
Timo Sirainen