On Sat, Mar 15, 2014 at 03:24:02PM -0300, Friedrich Locke wrote: > Hi folks, > > someone send me an email stating that qmail-queue reads the whole bb file > for each message that is queued. > If bigbrother file is small, it is ok, but what happens if we have, for > instance, 10k users we would like to monitor ? I believe performance will > go down. > Am i the only one who see this as performance limitation ? > > If not i would like to purpose a change: I could write a program that > converts bigbrother file to an djb cdb database to be looked up by > qmail-queue and since i lack the knowledge about qmail-ldap some else could > adapt the qmail-queue to read from this djb cdb file (bigbrother.cdb, for > instance). > > What you guys thing about this ? >
Yes, qmail-queue is called per message and will load the file. For us there was never a need to optimize the lookup since this feature is a bit of a hack and evil and should only be used in exceptional circumstances. The bigbrother patch was not built monitor large amount of users. It is possible to intercept all mails from a single domain. Why do you need to bigbrother 10k users? >From QLDAPINSTALL: ~control/bigbrother This file is only used if BIGBROTHER was defined in the Makefile. For ISP that need to implement some surveillance method because of some beloved authorities (like here in switzerland), you can enable a per address queue extra feature. To automatically forward all mail to and from bad...@badplace.ch to bigbrot...@admin.ch you need to add followong line to ~control/bigbrother: bad...@badplace.ch:bigbrot...@admin.ch. bigbrot...@admin.ch can be a local, ldap or remote address. To intercept all mails to and from a domain @badplace.ch can be used. Default: none (off) Example: bad...@badplace.ch:bigbrot...@admin.ch Note: An extra recipient will be added in qmail-send. If the bigbrother address causes a bounce the sender will see this bounce. Btw. qmail-cdb should be able to create a cdb file out of bigbrother without an issue. -- :wq Claudio