全部博文(1144)
分类: LINUX
2006-10-20 07:44:31
On Thu, 2006-10-19 at 12:09 -0400, wtechgroup wrote:
> What process makes the qmail logs clear out every so often? I want to
> keep track of things more and I can’t do that when the logs clear out
> so often.
Change your /service/qmail-smtpd/log/run to something like this...
(all on one line of course). The s5000000 is the size of the file before
it rotates.
#!/bin/sh
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t
s5000000 /var/log/qmail/smtpd
>
> Also, does anyone know how to configure MRTG to be more advanced? I
> would like to analyze the /var/log/qmail/smtpd/current file to report
> numbers on simscan lines. I want to report the number of times simscan
> reports a clean message, rejects a message, tags a message and sends
> it as passthrough, and relays a message. Does anyone have any ideas?
> Thanks
Mine already does this. Unless something has changed, yours should do
to.
Shane
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t s100000 n20 /var/log/qmail/qmail-pop3d 2>&1
Call the multilog program under the uid (user id) and gid (group id) which will call the qmail-pop3d program.
The t option means that the log file will have a timestamp on the beginning of the line (tai64n format).
s100000 : is the size of a log file (here 100 000 bytes). It is between 4096 and 16777215.
n20 : is the number of log file (here 20). At least 2.
then :