[Dovecot] After upgrading to 1.2 - absolute path questions
Hello.
I have this:
/usr/local/etc/dovecot.conf: mail_location = maildir:/var/spool/dovecot/domains/%d/%n
/usr/local/etc/dovecot-ldap.conf: user_attrs = mailQuotaSize=quota_rule=*:storage=%$M ,=uid=1002,=gid=1002,=home=/var/spool/dovecot/domains/%d/%n
Two absolute paths seems to it is not right(but it works good...)
Right way will be: mail_location = maildir:%d/%n
=home=/var/spool/dovecot/domains/
?
-- Best regards, Proskurin Kirill
On Dec 8, 2009, at 4:48 AM, Proskurin Kirill wrote:
/usr/local/etc/dovecot.conf: mail_location = maildir:/var/spool/dovecot/domains/%d/%n
/usr/local/etc/dovecot-ldap.conf: user_attrs = mailQuotaSize=quota_rule=*:storage=%$M ,=uid=1002,=gid=1002,=home=/var/spool/dovecot/domains/%d/%n
Two absolute paths seems to it is not right(but it works good...)
With the LDAP home you could use:
mail_location = maildir:~/
Although I wouldn't recommend using maildir = home, better would be:
mail_location = maildir:~/Maildir
On Tue, 2009-12-08 at 10:26 -0500, Timo Sirainen wrote:
On Dec 8, 2009, at 4:48 AM, Proskurin Kirill wrote:
/usr/local/etc/dovecot.conf: mail_location = maildir:/var/spool/dovecot/domains/%d/%n
/usr/local/etc/dovecot-ldap.conf: user_attrs = mailQuotaSize=quota_rule=*:storage=%$M ,=uid=1002,=gid=1002,=home=/var/spool/dovecot/domains/%d/%n
Two absolute paths seems to it is not right(but it works good...)
With the LDAP home you could use:
mail_location = maildir:~/
Although I wouldn't recommend using maildir = home, better would be:
mail_location = maildir:~/Maildir
I'm gunna but in here for a quick question :)
So, in using...
user_query = select 26 as uid, 26 as gid, '/var/vmail/%d/%1n/%1.1n/% 2.1n/%n' as home, <snip>
mail_location = maildir:/var/vmail/%d/%1n/%1.1n/%2.1n/%n/Maildir
... that is no longer the preferred way?
We should just use mail_location = maildir:~/Maildir along with our existing user_query?
Obviously things work fine now, but may this change/break in the future? Given it relies on 'deliver', but that does seems to query for home using user_query.
Cheers
On Wed, 2009-12-09 at 08:58 +1000, Noel Butler wrote:
So, in using...
user_query = select 26 as uid, 26 as gid, '/var/vmail/%d/%1n/%1.1n/% 2.1n/%n' as home, <snip>
mail_location = maildir:/var/vmail/%d/%1n/%1.1n/%2.1n/%n/Maildir
... that is no longer the preferred way?
I don't think it's ever been the preferred way, since it's just duplication of configuration. :) But you can keep doing it this way if you want to. The only thing that v1.2 doesn't allow anymore is relative home directory paths, and your home dir isn't relative.
Obviously things work fine now, but may this change/break in the future?
No, it won't break.
On Tue, 2009-12-08 at 18:20 -0500, Timo Sirainen wrote:
On Wed, 2009-12-09 at 08:58 +1000, Noel Butler wrote:
So, in using...
user_query = select 26 as uid, 26 as gid, '/var/vmail/%d/%1n/%1.1n/% 2.1n/%n' as home, <snip>
mail_location = maildir:/var/vmail/%d/%1n/%1.1n/%2.1n/%n/Maildir
... that is no longer the preferred way?
I don't think it's ever been the preferred way, since it's just duplication of configuration. :) But you can keep doing it this way if you want to. The only thing that v1.2 doesn't allow anymore is relative home directory paths, and your home dir isn't relative.
Obviously things work fine now, but may this change/break in the future?
No, it won't break.
Cool, thanks :)
participants (3)
-
Noel Butler
-
Proskurin Kirill
-
Timo Sirainen