[Dovecot] After upgrading to 1.2 - absolute path questions

Noel Butler noel.butler at ausics.net
Wed Dec 9 00:58:57 EET 2009


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



More information about the dovecot mailing list