Hi,
we just setup a new mailserver for our company with some sieve filtering in place. Everything works as expected but there is one flaw. We setup the per user sieve filters in files within the users mailbox maildir as follows:
lrwxrwxrwx 1 mail mail 21 Jan 13 17:20 .dovecot.sieve -> sieve/phpscript.sieve
This link is actually picked up by dovecot and being announced as an IMAP folder which gives an error in certain MUAs as they try to access it.
Is there a way to let dovecot check if the link is really a maildir, so lets say a directory with a maildirfolder file within it? Or just to hide this link from dovecot so its not advertised as an IMAP folder?
Greetings, Sascha
On Mon, 14 Jan 2008, Sascha Holzleiter wrote:
Hi,
we just setup a new mailserver for our company with some sieve filtering in place. Everything works as expected but there is one flaw. We setup the per user sieve filters in files within the users mailbox maildir as follows:
lrwxrwxrwx 1 mail mail 21 Jan 13 17:20 .dovecot.sieve -> sieve/phpscript.sieve
This link is actually picked up by dovecot and being announced as an IMAP folder which gives an error in certain MUAs as they try to access it.
Is there a way to let dovecot check if the link is really a maildir, so lets say a directory with a maildirfolder file within it? Or just to hide this link from dovecot so its not advertised as an IMAP folder?
In Maildir++ [1], if it doesn't start with a '.' it shouldn't be seen as a folder. I seem to recall some discussion of adding an option that would affect that in the 1.1 series.
[1] http://wiki.dovecot.org/MailboxFormat/Maildir
Best, Ben
On Mon, 2008-01-14 at 11:26 -0500, Benjamin R. Haskell wrote:
In Maildir++ [1], if it doesn't start with a '.' it shouldn't be seen as a folder. I seem to recall some discussion of adding an option that would affect that in the 1.1 series.
Hmm, that's worth a try as it only requires little changes to the layout which can be patched into the used applications within 5 minutes.
Thanks, Sascha
On Mon, 2008-01-14 at 17:13 +0100, Sascha Holzleiter wrote:
Hi,
we just setup a new mailserver for our company with some sieve filtering in place. Everything works as expected but there is one flaw. We setup the per user sieve filters in files within the users mailbox maildir as follows:
lrwxrwxrwx 1 mail mail 21 Jan 13 17:20 .dovecot.sieve -> sieve/phpscript.sieve
This link is actually picked up by dovecot and being announced as an IMAP folder which gives an error in certain MUAs as they try to access it.
Is there a way to let dovecot check if the link is really a maildir, so lets say a directory with a maildirfolder file within it? Or just to hide this link from dovecot so its not advertised as an IMAP folder?
This is one reason why home directory shouldn't be the same as mail directory. http://wiki.dovecot.org/VirtualUsers#homedirs
You can maybe work around this by setting maildir_stat_dirs=yes, although I'm not sure if it works with symlinks.
participants (3)
-
Benjamin R. Haskell
-
Sascha Holzleiter
-
Timo Sirainen