OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: Using filestructure to for mailbox lookups

From: Wietse Venema (wietseporcupine.org)
Date: Sun Jun 08 2008 - 15:59:04 CDT


Mark Slade:
> I have a server that receives mail for a few domains. In the past
> I've used virtual_mailbox_maps to map every address from userdomain
> to "domain/user/". I'm wondering if it's possible to configure
> Postfix such that when mail comes in, it checks to see if
> /var/mail/domain/user/ exists, and if so delivers it. Therefore

Postfix currently does not have a lookup table mechanism that splits
userdomain, reverses it, and generates a pathname. Adding one should
not be hard. Otherwise, the best best is to use a policy daemon.
Be sure to not allow / in the domani or user part.

        Wietse