OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: Alias directory

From: Dehnert James Sr (jdehnertnorcalnetworks.com)
Date: Tue May 01 2007 - 19:05:04 CDT


On May 1, 2007, at 4:41 PM, Wietse Venema wrote:

> Dehnert James Sr:
>> Question? Is it possible to create an alias directory and have
>> postfix source all the files contained therein?
>>
>> I'd like to create a /etc/postfix/domain.tld directory and then have
>> a file for each individual user or group in that directory. I know I
>> could write a script that cats and outputs, then postmaps, but I was
>> wondering if there are any provisions for that IN postfix.
>
> There is no need to re-invent cat(1) and make(1) for Postfix.

Quite true.

> Instead of maintaining lots of files, consider using a database.
> Postfix supports SQL and LDAP. They allow you to change a few
> records without having to postmap a huge amount of information.

I did consider those, but I those were more complex than what I need
for my current small
application. If I was building a system for a larger user base I
would go that route.

> Wietse