View Single Post
  #1  
Old 9th April 2013, 20:52
admins admins is offline
Senior Member
 
Join Date: Apr 2009
Location: Switzerland
Posts: 210
Thanks: 6
Thanked 6 Times in 3 Posts
Default Sieve Mailfilter Problem

Hi all
I've did the ubuntu 12.10 setup with dovecot and apache from howtoforge.org.

I want to filter following with a custom rule in sieve. I want to to following: If not "mail.xy.net" in the header, redirect to the email xy@x.org

I've created following rule:
if not header :contains "received" ["mail.xy.net"] {
redirect "xy@x.org";
}

May in the sieve log is following:
main_script: line 5: error: the header test requires 2 positional argument(s), but 1 is/are specified.
main_script: error: validation failed.
error: the header test requires 2 positional argument(s), but 1 is/are specified.

Has somebody an idea how I can fix it?
Thx
admins
Reply With Quote
Sponsored Links