sieve directory
HI
im getting crazy.
Today i have setup roundcube which is working quite well.
Roundcube found the old scripts from 10.6 server an displays them. I assume it uses dovecot to find the right location as shown below, or it uses managesieve via Port 4190.
The reason why i assume that these are converted ones is the link from dovecot.sieve -> wiki_server_rules.sieve. Which indicates that this was from old 10.6. In 10.6 everything was working if I edited from Roundcube (delivered from Apple). And roundcube display wiki_server_rules and not dovecot.sieve.
But sieve does nothing. Interesting is also that there is a directtory /Library/EmailRules/sievescripts/ which contains exactly for this user a sievescript.
more /Library/EmailRules/sievescripts/EB161B47-39D3-4372-B376-B6A0B7EA31EB.sieve
require ["fileinto", "vacation", "relational"];
if address :contains "from" "blubb@blubb.de" {fileinto "INBOX.blubb"; stop;}
if header :contains "subject" "SolarLog" {fileinto "INBOX.solarlog"; stop;}
...
So my question is now which one is used use ? Or should be used ?
according to
/Library/Server/Mail/Config/dovecot/conf.d/90-sieve.conf
Only the script sieve = /Library/Server/Mail/Data/rules/%u/dovecot.sieve should be used. But this seems not to be the case.
Checking with
sh-3.2# doveconf
...
managesieve_client_workarounds =
managesieve_implementation_string = Dovecot Pigeonhole
managesieve_logout_format = bytes=%i/%o
managesieve_max_compile_errors = 5
managesieve_max_line_length = 65536
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave
...
service managesieve-login {
chroot = login
client_limit = 0
drop_priv_before_exec = no
executable = managesieve-login
extra_groups =
group =
idle_kill = 0
inet_listener sieve {
address =
port = 4190
ssl = no
}
privileged_group =
process_limit = 0
process_min_avail = 0
protocol = sieve
service_count = 1
type = login
user = $default_login_user
vsz_limit = 18446744073709551615 B
}
service managesieve {
chroot =
client_limit = 1
drop_priv_before_exec = no
executable = managesieve
extra_groups =
group =
idle_kill = 0
privileged_group =
process_limit = 0
process_min_avail = 0
protocol = sieve
service_count = 1
type =
unix_listener login/sieve {
group =
mode = 0666
user =
}
user =
vsz_limit = 18446744073709551615 B
}
...
Shows nothint strange.
So im now a little bit lost as from my point of view everything seems to be Ok.
The only difference i see is that Apple seemed to make compiled sieve scripts. But roundcube not.
Any idea what to check else or how to debug ?
And one other important difference.
The fileinto statement will change .
In 10.6 an INBOX. was necessary. Sample below:
# rule:[WLAN Event]
if header :contains "subject" "WLAN Event"
{
fileinto "gatekeeper.wlan";
stop;
}
if header :contains "subject" "NAS01 Warning"
{
fileinto "INBOX.NAS01 Warning";
stop;
}
How to find user mail dirs:
macmini:~ root# doveadm user USER
userdb: USER
uid : 214
gid : 6
quota : maildir:User quota:noenforcing
quota_rule: *:storage=0
mail : maildir:/Volumes/mirror/Library/Server/Mail/Data/mail/EB161B47-39D3-4372-B376-B 6A0B7EA31EB
mail_location: maildir:/Volumes/mirror/Library/Server/Mail/Data/mail/EB161B47-39D3-4372-B376-B 6A0B7EA31EB
sieve : /Library/Server/Mail/Data/rules/EB161B47-39D3-4372-B376-B6A0B7EA31EB/dovecot.si eve
sieve_dir : /Library/Server/Mail/Data/rules/EB161B47-39D3-4372-B376-B6A0B7EA31EB
sieve_storage: /Library/Server/Mail/Data/rules/EB161B47-39D3-4372-B376-B6A0B7EA31EB
Mac mini, OS X Mountain Lion (10.8.3)