Matteo Niccoli:
[ Charset ISO-8859-15 unsupported, converting... ]
> Hi,
> 
> Suppose to have 1.000.000 maildir mailboxes using this
> path:
> 
> /MAIL/$1/$2/$3/$4/$5/$address.$domain/folders/Maildir/
> 
> where $1 is the first letter of the recipient, $2 is the
> second, and so on. Like this example:
> 
> [EMAIL PROTECTED]
> 
> /MAIL/f/o/o/b/a/foobar.antani/folders/Maildir/
> 
> If we have an address with length less of 5 characters,
> we shift the domain on the left:
> 
> [EMAIL PROTECTED]
> 
> /MAIL/f/o/o/a/n/foo.antani/folders/Maildir/
> 
> In /folders/ dir we have also .qmail files.
> 
> Actually we use a patched version of Qmail to deliver
> email to this mailboxes, but my boss ask me to write a
> migration plan from Qmail to Postfix.
> 
> How to fix this using postfix? We need to patch source
> code like Qmail, o we can solve it using some workaround
> or smart configuration?

Look at the virtual(8) delivery agent. It uses lookup tables
to map a recipient to a pathname, and to look up the UID/GID
information. Such tables can be generated programmatically.

http://www.postfix.org/virtual.8.html
http://www.postfix.org/VIRTUAL_README.html

        Wietse

Reply via email to