Post edited 1:58 pm – November 19, 2011 by ron82
Greetings and Salutations,
I could use some expertise on how to properly get sieve to put mail in Public folder.
*My Public folder works. I see them, can drag mail from inbox to public folder, and other users see the folders/emails as well.
*When I setup a sieve rule, it seems to place mail in the user's Maildir directory
** Instead of going to /archive/public/.LogWatchers/
** It goes to /archive/vmail/<mydomain>/<user>/Maildir/.Netcats.LogWatchers
*I am simply testing incoming email from a gmail account to get filtered to a public folder called .LogWatchers; for future logwatch notifications abviously.
*I am using dovecot 2.0.14 with pigeonhole installed , Centos 5
Any help would be greatly appeciated. Thank you. - Ron
Relevant Configs:
mail_location = maildir:/%Lh/Maildir/:INDEX=/%Lh/Maildir/
namespace {
hidden = no
list = children
location = maildir:/archive/public
prefix = Netcats/
separator = /
subscriptions = no
type = public
}
plugin {
sieve = ~/.dovecot.sieve
sieve_dir = ~/sieve
sieve_global_dir = /archive/vmail/sieve/
sieve_global_path = /archive/vmail/sieve/default.sieve
}
protocol lda {
auth_socket_path = /var/run/dovecot/auth-master
log_path = /var/log/sieve.log
mail_plugins = sieve quota
}
My Global Sieve Filter:
require ["body", "fileinto", "relational", "regex",
"comparator-i;ascii-numeric"];
if header :contains ["From"] "@gmail"
{
fileinto "Netcats.LogWatchers";
stop;
}
Nov 19 12:33:26 lda(user@somedomain.com): Info: sieve: msgid=<4EC7F66.0200@gmail.com>: stored mail into mailbox 'Netcats.LogWatchers' (Netcats/LogWatchers)