Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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)

Posted on Mar 17, 2013 11:12 AM

Reply
2 replies

May 1, 2013 6:37 PM in response to tesme33

Did you find your answer? The apple docs say to check the dovecot wiki, however the file locations don't match. I'm not even sure the config file i'm using is in /etc/dovecot/ because it doesn't list the LDA plugin nor much about sieve except that it is an allowed protocol.


I'm just trying where i can put this script to be a server side rule. Anyone know?

May 2, 2013 9:38 AM in response to Tenn_Surety

So I found that on my lion server this under /etc/dovecot/conf.d/ in a rule marked 90-sieve.conf


# A path to a global sieve script file, which gets executed ONLY

# if user's private Sieve script doesn't exist. Be sure to

# pre-compile this script manually using the sievec command line

# tool.

#sieve_global_path = /var/lib/dovecot/sieve/default.sieve


Which is commented out and the directories do not exist. Can I simply just create them? the Dovecot wiki seems to imply they would exist if you have installed sieve.

sieve directory

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.