-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Jul 30, 2009, at 12:49 PM, Qmail List wrote:
Yes. I know that the logs are in /var/log/qmail/smtp/current and
/var/log/qmail/pop3/current but they only log for only a certain time. I
will like if I can retain them and put them in logrotate like those in
/var/log/secure etc.

Just modify the multilog parameters in your log/run files.. For instance,

#!/bin/sh
exec setuidgid qmaill multilog t s999999 /var/log/qmail/pop3d

The t enables timestamplng and the s999999 sets the max filesize required before rotating the log. You can also add an n<number> to set the number of log files to keep. There's also an action flag (!) you can use to call a processor to process the files instead of rotating them...

Check here for more details :

http://cr.yp.to/daemontools/multilog.html


Thanks


- ---------------------------
Jason 'XenoPhage' Frisvold
Engine / Technology Programmer
f...@godshell.com
RedHat Certified - RHCE # 803004140609871
MySQL Pro Certified - ID# 207171862
MySQL Core Certified - ID# 205982910
- ---------------------------
"Something mysterious is formed, born in the silent void. Waiting alone
and unmoving, it is at once still and yet in constant motion. It is the
source of all programs. I do not know its name, so I will call it the
Tao of Programming."

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAkpx29IACgkQhR5xme3cl76+3wCgkjG1FcGu2Fpwf13OnABRp29i
+TMAnizZMR1TDCDK+yUV4wkVUm+d6wsj
=D2hJ
-----END PGP SIGNATURE-----

Reply via email to