I recently found the hooks in qmailadmin to be useful in a project I was
working on. I needed hooks to function with forwards as well as users, so
I hacked together a quick patch to add this feature. Someone may have
already done this, but in case they didn't, the patch is here:
http://www.dirtymac.net/qmailadmin_forward_hooks.patch.gz
I basically copied what was already in user.c and applied it to alias.c.
There are hooks for adding a forward, deleting one and modifying. Nothing
for adding/deleting members of a forward, though. I tried to keep the
format as close to the existing hooks as possible.
There may be a better way to do it, but this seemed easy enough at the
time and it's working great. By the way, I used the hooks to populate an
ldap addressbook.
--
Will