sieve vacation script exclude based on sender email address

Stephan Bosch stephan at rename-it.nl
Mon Jun 13 16:40:39 UTC 2016



Op 4-6-2016 om 19:10 schreef Harondel J. Sibble:
> On 1 Jun 2016 at 16:49, Stephan Bosch wrote:
>
>>> I've been looking at the sieve docs and recipes, done a lot of googling but
>>> no joy so far.
>>>
>>> Using stanard vacation script and that works great, however I want to
>>> exclude certain sender email addressess from ever receiving a vacation
>>> autoresponse, how do I go about adding that to my existing vacation recipe.
>>>
>>> I suspect my search terminology is what is causing me not to find anything
>>> as I typically am using exclude and similar search terms.
>> Just use the envelope test:
>>
>> https://tools.ietf.org/html/rfc5228#section-5.4
>>
>> Regards,
>>
>> Stephan.
> Any recommendations for example usage, the RFC doesn't really tell me how to use it so that the
> vacation script will not reply if the header test turns out to be true.  I just want the email to be
> delivered without an autoresponse at that point.

require "envelope";
require "vacation";

if not envelope "from" "excluded at example.com" {
     vacation "I am away";
}




More information about the dovecot mailing list