speaking of sieve scripts... how to selectively not send vacation autoreply
Don't need to block anyone like in the "Re: Dovecot Oy merger with Open-Xchange AG" thread, but when I have my vacation recipie active, I'd like it to NOT reply to certain addresses.
I tried the following, you can see the section with
if header :contains "addressIdontwant@repliedtoo.tld"
is commented out, once I'd added that section, no Vacation messages went out at all. Googling and reading the wiki and recipie suggestions doesn't make it clear how to exempt a list of addresses from ever receiving a vacation response. Suggestions on additional reading or solutions?
require ["fileinto", "vacation"];
if header :comparator "i;ascii-casemap" :contains "Subject" "**SPAM**" {
fileinto "Trash";
stop;
}
#if header :contains "addressIdontwant@repliedtoo.tld" {
# stop;
#}
vacation
# Reply at most once a day to a same sender
:days 1
:subject "Changes to email addresses effective Jan 01/15"
# List of recipient addresses which are included in the auto replying.
# If a mail's recipient is not on this list, no vacation reply is sent for
it.
:addresses ["user@repliedtoo.tld"]
This is on a Dovecot 1.x system that is slated for an upgrade soon.
-- Harondel J. Sibble Sibble Computer Consulting Ltd. Creating Solutions for the small and medium business computer user. harondel@pdscc.com (use pgp keyid 0x3CC3CFCE not 0x3AD5C11D) http://www.pdscc.com Blog: http://www.pdscc.com/blog (604) 739-3709 (voice)
On 4.4.2015 10:02, Harondel J. Sibble wrote:
The commented out condition in the rule you posted seems syntactically wrong to me (not sure, never used Dovecot 1.x so can't rule out the possibility it's valid there.) Also I think you can find answer to your question in one of RH's posts in the thread you mentioned.
On 4/4/2015 10:02 AM, Harondel J. Sibble wrote:
You should really inspect your log files or test the scripts with the sieve-test command line tool. There is a syntax error in the part you commented out:
error: the header test requires 2 positional argument(s), but 1 is/are specified.
At delivery, this means that the script is not executed at all and the message is just filed into INBOX.
Regards,
Stephan.
On 4 Apr 2015 at 12:19, Stephan Bosch wrote:
I wasn't even aware of the sieve-test command, that'll really come in handy, thanks for that tip
I believe I based my entry on the
if header :contains "X-Spam-Level" "**********" {
discard;
stop;
}
here and until you mentioned it, I did not realize the *'s were a second argument, I'd assumed it as part and parcel of the same argument.
wiki2.dovecot.org/Pigeonhole/Sieve/Examples#Spam.2BAC8-Virus_rules
I'll try the recipie RH posted
if address :is ["From", "Sender"] ["h.reindl@thelounge.net",
"nick.z.edwards@gmail.com"]
{
discard;
}
modified as below
if address :is ["From", "Sender"] ["addressIdontwant@repliedtoo.tld", "otheraddressIdontwant@repliedtoo.tld"] { stop; }
-- Harondel J. Sibble Sibble Computer Consulting Ltd. Creating Solutions for the small and medium business computer user. harondel@pdscc.com (use pgp keyid 0x3CC3CFCE not 0x3AD5C11D) http://www.pdscc.com Blog: http://www.pdscc.com/blog (604) 739-3709 (voice)
participants (3)
-
Harondel J. Sibble
-
Jiri Bourek
-
Stephan Bosch