David Litke:
> Thanks for the help,
> How do I tell qmail's log-functions script what log program to
> use? I can see where it looks for defaults but I don't know where it reads
> them from. I would be fine with just using syslog to dump everything to
> one mail file. Am I missing something obvious?
> Thanks in advance.
Qmail has a very different concept for logging and management of
processes in general. The basic idea is to use traditional Unix
mechanisms as much as possible and to be as modular as possible which
means, for instance, that qmail-start starts four processes, all of
which perform a very specific task and, more pertaining to your
question, all log to stdout. The idea is to use a special logging
program that reads all their log messages from stdin and then does the
actual logging. You give this programm plus its arguments as the
second argument to qmail-start. Possible choices are splogger, a
program that takes the messages and hands them over to syslog or
multilog, which adds features like log rotation, maximal logsize and,
most importantly, stability to the logging process. If you have an
urgent desire to do something unusual (and highly desireable), like
having all log messages show up as SMS messages on your mobile phone,
no problem, just write a script/program that reads the messages from
stdin and sends them on their way. Use this as the second argument to
qmail-send ...
Try reading up on it on http://Web.InfoAve.Net/~dsill/lwq.html (Life
with Qmail), look at the manual page of qmail-start and also have a
look at the example startup scripts in /var/qmail/boot.
regards,
--
Joerg Lenneis
email: [EMAIL PROTECTED]