Re: [Exim] Hashing level 2.

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Tony Finch
Fecha:  
A: exim-users
Asunto: Re: [Exim] Hashing level 2.
Yann Golanski <yann@???> wrote:
>--
>Quoth Guillermo Llenas on Mon, Sep 08, 2003 at 11:00:27 -0300
>>     for example, if the spool directory is /export/mail, the spool
>> file for user pepe@??? would be
>> /export/mail/mydomain.com/p/e/pepe , this is using directories equal to
>> domain and the first letter and the second letter (if any). This is
>> hash-spool=2.

>
>This is a terrible way of doing things. Names are not evenly spread by
>the alphabet and you will end up with directories empty and some over
>full.


IME it works well enough, and the uneven distribution isn't a real
problem so long as the biggest directories don't get too big. It has the
advantage of making the filesystem easier to navigate for the syaadmins.

To implement it you want something like

local_delivery:
driver = appendfile
file = /export/mail/$domain/${substr_1_1:$local_part}/${substr_1_2:$local_part}/$local_part
create_directory

Tony.
--
f.a.n.finch <dot@???> http://dotat.at/
CROMARTY FORTH TYNE DOGGER: VARIABLE BECOMING NORTHWEST 4, OCCASIONALLY 5 IN
DOGGER LATER. SHOWERS. GOOD.