Re: Cyrus - Postfix - redirect mails from a special sender domain

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2006-06-22 at 10:59 +0200, Sylvain MEDEOT wrote:
> Here is what I am using...
> 
> if allof (address :contains ["From","FROM"] "extspec.de") {
>      redirect "myuserlist@xxxxxxxxxxxxxxx";
> }

just picking some Sieve nits, I hope you don't mind.

the header field name is case insensitive, so you don't have to specify
both "From" and "FROM" -- all variants will be checked anyway.  also,
allof is superfluous here since there is only one test.  finally, in
this case I would prefer :matches for more exact matching, e.g.,

  From: Some One <nextspec.detritus@xxxxxxxxxxx>

would return true for the above test.  so I suggest:

  if address :matches "From" "*@extspec.de" {
    ...
  }

-- 
Kjetil T.


----
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux