Hey guys - so I've been looking into how to get dovecot to automatically sort email coming in based on any number of criteria. This thread is one I came upon, as well as others. I started following the breadcrums leading up to enabling Sieve, and saw that dovecot 15-lda.conf and 20-lmtp.conf files *already* had the sieve service listed in mail_plugins = . So I figured I'd have to get ManageSieve working and followed that to find it too was enabled. It's ALL enabled. You can just telnet to the sieve port (4190), authenticate, and dump your script right into it. Set it as active, and bang - you're done. Now, the manually way is indeed a bit tedious, but I've been having trouble getting the stand-alone ManageSieve clients working properly, so I'm just doing it manually for now. So, for a vacation script, you'd paste:
require ["fileinto", "vacation"];
# Move spam to spam folder
if header :contains "X-Spam-Flag" "YES" {
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 additional recipient addresses which are included in the auto replying.
# If a mail's recipient is not the envelope recipient and it's 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";
Now, manually you need to authenticate with plain auth and provide a base64 encoding of NULuserNULpassword. You'll need to count the bytes of the script to.
There's more examples here:
http://wiki2.dovecot.org/Pigeonhole/Sieve/Examples
I'd much rather do it this way as it's already there and I don't have to load up other stuff.
t