Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Dovecot sieve and vacation - does not work?

Posted on 2008-10-28
5
Medium Priority
?
2,120 Views
Last Modified: 2012-06-27
I have installed Fedora9 with dovecot and sieve plugin.
I have created $HOME/.dovecot.sieve with following content
 require "vacation";
 if header :contains "from" "me@site.tld"
 {
    vacation "I'm away till testing end";
 }

yet it's not working. I even tried following content only
 vacation "I'm away till testing end";

not working as well.

after I receive a message $HOME/.dovecot.sievec is created(means sieve plugin works) yet no $HOME/.dovecot.lda-dupes as expected.
Note, that I'm sending message from me@site.tld, which is external account(say gmail).

If I configured dovecot/deliver to run in debug mode, sieve puts following messages to the syslog
Oct 28 15:16:15 mail deliver(user): cmusieve: Using sieve path: /home/user/.dovecot.sieve
Oct 28 15:16:15 mail deliver(user): cmusieve: Executing script /home/user/.dovecot.sievec

and nothing else. no information about any reply.

What next?
0
Comment
Question by:ravenpl
  • 3
  • 2
5 Comments
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 22822341
Hi,
the following hint was useful for one of my colleagues>

A list of autoreplied senders is stored in .dovecot.lda-dupes file in user's home directory.
The reply is sent only once in the number of configured days. If you've problems getting the vacation reply, try deleting this file. If that didn't help, make sure the problem isn't related to sending mails in general by trying the "reject" Sieve command.
The automatic replies aren't sent if any of the following is true:
Auto-Submitted: header exists with any value except "no"
Precedence: header exists with value "junk", "bulk" or "list"
The envelope sender
begins with "MAILER-DAEMON" (case-insensitive)
begins with "LISTSERV" (case-insensitive)
begins with "majordomo" (case-insensitive)
begins with "owner-" (case-sensitive)
contains the string "-request" anywhere within it (case-sensitive)
The envelope sender and envelope recipient are the same
The envelope recipient is not found in the message To:, Cc: or Bcc: fields.
A bare username without a domain gets canonicalised by the libsieve code to "<username>@unspecified-domain", which means it is highly unlikely to pass the last two tests in the list above.

wmp
 
0
 
LVL 43

Author Comment

by:ravenpl
ID: 22822389
Yes - I have read the text from http://wiki.dovecot.org/LDA/Sieve#head-f083c4265adca5ce0fecf17d7684bd2dedbd5812 already.
Anything else?
0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 2000 total points
ID: 22822425
This is an example I've found
require ["fileinto", "vacation"];
# Move spam to spam folder
if exists "X-Spam-Flag" {
  fileinto "spam";
  # Stop here so that we do not reply on spams
  stop;
}
vacation
  # Reply at most once a day to a same sender
  :days 1
  :subject "Out of office reply"
  # 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 ["j.doe@company.dom", "john.doe@company.dom"]
"I'm out of office, please contact Joan Doe instead.
Best regards
John Doe";
Look at the >addresses line!
wmp
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 22822480
Sorry, this was an overlap.
No, nothing else from my side.
I could ask my colleague when he's back, but that's all I could do.
wmp
0
 
LVL 43

Author Comment

by:ravenpl
ID: 22822514
Damn, You right. The stupid sieve could not resolve my address correctly.
From the http://www.pmdf.process.com/app-notes/sieve/draft-showalter-sieve-vacation-01.html
"Users can supply additional mail addresses that are theirs with the ":addresses" argument, which takes a string-list listing additional addresses that a user might have."

I just assumed it will find my address. I wonder what it found instead.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Want to know how to use Exchange Server Eseutil command? Go through this article as it gives you the know-how.
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
Suggested Courses

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question