Sieve Mailfilter Problem

Discussion in 'Server Operation' started by admins, Apr 9, 2013.

  1. admins

    admins Member

    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 [email protected]

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

    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
     

Share This Page