Christopher Stolzenberg
2011-Jun-27 11:24 UTC
[Dovecot] hide sieve folder from imap clients
Hello, What is the best way to hide sieve folders from IMAP clients? old config mail_home = /var/vmail/%d/%n plugin { sieve_dir = /var/vmail/%d/%n/.sieve/ sieve = /var/vmail/%d/%n/.dovecot.sieve } new config (hide sieve folder) mail_home = /var/vmail/%d/%n maildir_stat_dirs = yes plugin { sieve_dir = /var/vmail/%d/%n/sieve/ sieve = /var/vmail/%d/%n/.dovecot.sieve } Is there a better way without maildir_stat_dirs = yes ? -- Christopher
On Mon, 27 Jun 2011 13:24:39 +0200, Christopher Stolzenberg wrote:> mail_home = /var/vmail/%d/%nmail_home = /var/vmail/%d/%n/.maildir> sieve_dir = /var/vmail/%d/%n/sieve/sieve_dir = /var/vmail/%d/%n/.sieve
Christopher Stolzenberg
2011-Jun-27 12:04 UTC
[Dovecot] hide sieve folder from imap clients
2011/6/27 Benny Pedersen <me at junc.org>:> On Mon, 27 Jun 2011 13:24:39 +0200, Christopher Stolzenberg wrote: > >> mail_home = /var/vmail/%d/%n > > mail_home = /var/vmail/%d/%n/.maildir > >> sieve_dir = /var/vmail/%d/%n/sieve/ > > sieve_dir = /var/vmail/%d/%n/.sieve >Can you explain that? -- Christopher
On Mon, 27 Jun 2011 14:04:23 +0200, Christopher Stolzenberg wrote:> Can you explain that?yes, but is it needed ? with this setup seive scripts are not in maildir or visa versa :)
> new config (hide sieve folder) > > mail_home = /var/vmail/%d/%n > maildir_stat_dirs = yes > > plugin { > sieve_dir = /var/vmail/%d/%n/sieve/ > sieve = /var/vmail/%d/%n/.dovecot.sieve > }All the examples look a bit overcomplicated. Why not go with the "defaults"? mail_location = maildir:~/maildir sieve = ~/.dovecot.sieve However this relies on home dirs being returned from the user lookups which has not been revealed in the OP's partial config post. Thomas -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 203 bytes Desc: Signierter Teil der Nachricht URL: <http://dovecot.org/pipermail/dovecot/attachments/20110627/89a21bdf/attachment-0002.bin>
Christopher Stolzenberg
2011-Jun-27 20:33 UTC
[Dovecot] hide sieve folder from imap clients
2011/6/27 Thomas Leuxner <tlx at leuxner.net>:>> new config (hide sieve folder) >> >> mail_home = /var/vmail/%d/%n >> maildir_stat_dirs = yes >> >> plugin { >> sieve_dir = /var/vmail/%d/%n/sieve/ >> sieve = /var/vmail/%d/%n/.dovecot.sieve >> } > > All the examples look a bit overcomplicated. Why not go with the "defaults"?I'll try it.> ?mail_location = maildir:~/maildir > ?sieve = ~/.dovecot.sieveHave you any idea how i specify it best? mail_location and mail_home.> > However this relies on home dirs being returned from the user lookups which has not been revealed in the OP's partial config post.With MySQL. user_query = SELECT concat('/var/vmail/', maildir) as home, concat('maildir:/var/vmail/', maildir) as mail, 6000 AS uid, 6000 AS gid, concat('maildir:storage=', quota) AS quota FROM mailbox WHERE username = '%u' AND active = '1' -- Christopher
Christopher Stolzenberg
2011-Jun-28 11:06 UTC
[Dovecot] hide sieve folder from imap clients
2011/6/27 Thomas Leuxner <tlx at leuxner.net>:>> new config (hide sieve folder) >> >> mail_home = /var/vmail/%d/%n >> maildir_stat_dirs = yes >> >> plugin { >> sieve_dir = /var/vmail/%d/%n/sieve/ >> sieve = /var/vmail/%d/%n/.dovecot.sieve >> } > > All the examples look a bit overcomplicated. Why not go with the "defaults"? > > ?mail_location = maildir:~/maildir > ?sieve = ~/.dovecot.sieve > > However this relies on home dirs being returned from the user lookups which has not been revealed in the OP's partial config post.Okay, here is my new config: mail_home = /var/vmail/%d/%n/ mail_location = maildir:/var/vmail/%d/%n/maildir plugin { sieve_dir = /var/vmail/%d/%n/.sieve sieve = /var/vmail/%d/%n/.dovecot.sieve } How should I configure mysql? user_query = SELECT CONCAT('maildir:/var/vmail/',maildir) AS mail, 6000 AS uid, 6000 AS gid FROM mailbox WHERE username = '%u' AND active = '1' or user_query = SELECT maildir, 6000 AS uid, 6000 AS gid FROM mailbox WHERE username = '%u' AND active = '1' mysql query return: maildir: domain.com/user/ Thank you for your help. -- Christopher
Maybe Matching Threads
- How to prevent delivery to mailboxes over quota at SMTP-time
- sieve folders in maildir with imap: not a directory not fixed with maildir_stat_dirs = yes
- Different behavior of ACLs in MUA and doveadm
- Different behavior of ACLs in MUA and doveadm
- Latest HG Changes (fac92b5) affect Sieve-Plugin/LMTP