On Thu, Sep 25, 2008 at 03:06:10PM +0200, Matteo Niccoli wrote: > Wietse Venema ha scritto: > >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 > > So is not possible attach a simple script that receive as stdin > the email address, return on stdout the mailbox pathname, so > the virtual deliver agent write on that path?
The virtual(8) delivery table uses lookup tables to find the mailbox location. Postfix lookup tables include: - Indexed files, e.g. Berkeley DB hash/btree or CDB. - LDAP - MySQL, PgSQL - additional tables reported by "postconf -m". If you use a non-Postifx "VDA", such as "maildrop" (or dovecot's delivery agent) or deliver via LMTP, the external code may support additional lookup mechanisms. A table mechanism is much more efficient than (multiple for shell scripts) fork/exec for every lookup. -- Viktor. Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the "Reply-To" header. To unsubscribe from the postfix-users list, visit http://www.postfix.org/lists.html or click the link below: <mailto:[EMAIL PROTECTED]> If my response solves your problem, the best way to thank me is to not send an "it worked, thanks" follow-up. If you must respond, please put "It worked, thanks" in the "Subject" so I can delete these quickly.