On Tue, 17 Oct 2000, Javier Szyszlican wrote:

> HI list.
> 
> I want to make the controls files (first virtualdomains) load directly from
> a mysql database.

Why?

The files read by qmail-send are read into memory and
are not read again until qmail-send is either restarted or receives a
SIGHUP. A simpler approach might be to generate virtualdomains from
your database and then send qmail-send a SIGHUP.

Other control files are read by programs such as qmail-smtpd, qmail-inject
and qmail-remote. These programs read the control files once, perform
their actions and then exit. Again a simpler approach would be to
generate these files from your database. The only problem I can see
with this method is any race conditions where files are incomplete,
but this can be avaoided by writing to a temporary file and then doing
a rename().

-- 
Regards
Peter
----------
Peter Samuel                            [EMAIL PROTECTED]
http://www.e-smith.org (development)    http://www.e-smith.com (corporate)
Phone: +1 613 368 4398                  Fax: +1 613 564 7739
e-smith, inc. 1500-150 Metcalfe St, Ottawa, ON K2P 1P1 Canada

"If you kill all your unhappy customers, you'll only have happy ones left"

Reply via email to