Turbo Fredriksson writes:
> This is not practically possible due to the design of Qmail. Every Qmail
> program is reading the configuration at startup, and there is only five
> of them that's running as daemons. They spawn other process, that needs
> there configuration when running. 
> 
> Doing the way you propose would need a TOTAL rewrite of qmail, and _I'M_
> not prepared to do that (EVEN if I wanted to, which I don't).

Actually I think qmail's design doesn't affect it at all. Just write a bunch 
of very small programs which pull controls from LDAP, and write control 
files. This way, qmail-ldap doesn't even need to be patched. Put the 
programs in the run files' chains for qmail-send qmail-smtpd, and 
qmail-pop3d, so when administrator restarts any of those services the files 
are recreated. Or the programs can be run by administrator at any other time 
(except for those controls which require complete restart of qmail-send), or 
from a cron job. 

The changes are not instantaneous, but you'll avoid patching qmail-ldap, and 
you'll avoid the overhead on the LDAP server. And they don't even need to be 
written in C, obviously.

Reply via email to