mail_location hashing & lowercasing?

Andreas Kasenides andreas at cymail.eu
Sun Aug 31 19:37:34 UTC 2014


On 31-08-2014 16:12, Sven Hartge wrote:
> Ralf Hildebrandt <r at sys4.de> wrote:
>> * Sven Hartge <sven at svenhartge.de>:
> 
>>> I have home=/srv/mail/%2NLn/%2.16NLn/%Ln/ in my auth-ldap.conf.ext 
>>> and
>>> this gives me a path like this: /srv/mail/0/08/myusername
>>> 
>>> I use version 2.2.13 of dovecot.
> 
>> I'm on 2.1.17 :(
> 
> %N could be a 2.2 feature. Someone with besser memory of version 
> changes
> will have to clarify this.
> 
>
%N requires a 2.2.3+ Dovecot.

But %H will do the trick for previous versions.
BUT %H will give a bad distribution if your %n ends in the same 
characters
ex. username at your.domain. This can be rectified by reversing the string 
using %R.

Have not tried this but could %2.256HRLu do the trick?
Have fun

Andreas



More information about the dovecot mailing list