PakOgah wrote:
There's a program to help parse the logs easier in QTP, if you want to try it. Qmail normally saves your logs in the "current" file, until they reach a certain size, then it archives them in the same dir, but the filename change to something like this: @4000000046760c052aa76924.s @40000000467cd4d81cf717ac.s @4000000046845dd90678845c.s @40000000468e5551147f759c.s @4000000046764688393030ac.s @40000000467d03e20aa3afac.s @400000004684f5e107cb6e14.s @40000000468ed5d12827da94.s @40000000467668e4240a287c.s @40000000467d2c16135685fc.s @40000000468519d603c96dd4.s @40000000468f505b04c3ac54.s @40000000467687f8331cadbc.s @40000000467d533a24871cc4.s @4000000046853f671f8a70a4.s @40000000468f8c8f103ee9a4.s @400000004676a2c2171a0e0c.s @40000000467dcc1614cebe7c.s @4000000046856a3614a410b4.s @40000000468fce2431cf59b4.s @400000004676f91e00799ec4.s @40000000467e6012031c804c.s @40000000468584ba01eba16c.s @40000000468ffc992f0bbd44.s @4000000046777c973533702c.s @40000000467ed78421a3f234.s @400000004685b72d362d29dc.s @40000000469026fc27cf1fbc.s @400000004677c14d0b379ec4.s @40000000467f2c960e1c09a4.s @40000000468608fc39723704.s @4000000046907a3a2854e1ec.s @400000004678033e0f4829ac.s @40000000467fa37427218e24.s @4000000046865a312837c4cc.s @400000004690de3a190ba4dc.s @4000000046783e9802b29ed4.s @40000000467ffa67243704dc.s @400000004686bc641bead3e4.s @400000004691283520bba95c.s @400000004678b2ef1c6a4cb4.s @4000000046802bea0555fd5c.s @40000000468716f230c13574.s @400000004691799e2c195074.sThank you A M,Hai Jake, can you share you script to archive qmail log. I think now I am need it. because some users asking me why the unable to send / rcvd to their partner which happen 4-5 days or more than 1 week ago, with reason they just have a free time to complain to me. but the logs already gone... it gave me a headache
You can get a better idea of what days the logs are for by running ls through tai64nlocal:
[EMAIL PROTECTED] smtp]# ls | tai64nlocal 2007-06-17 14:18:16.924725500.s 2007-06-17 19:05:14.718199500.s 2007-06-18 00:37:15.715614500.s 2007-06-18 04:46:54.959459500.s 2007-06-18 07:13:30.604645500.s 2007-06-18 09:26:06.857517500.s 2007-06-18 11:20:24.387583500.s 2007-06-18 17:28:52.007970500.s 2007-06-19 02:49:49.892563500.s 2007-06-19 07:42:59.188194500.s 2007-06-19 12:24:20.256387500.s 2007-06-19 16:37:34.045260500.s 2007-06-20 00:53:57.476728500.s 2007-06-20 05:09:05.998668500.s 2007-06-20 07:43:33.929977500.s 2007-06-20 10:28:59.550212500.s 2007-06-20 12:58:47.517956500.s 2007-06-20 15:16:02.478564500.s 2007-06-20 18:26:45.281570500.s 2007-06-20 22:23:29.635528500.sYou can control how often it archives the logs, but adjusting /var/qmail/control/logcount and logzise. Here's what I have my server set to:
[EMAIL PROTECTED] control]# cat logcount 100 [EMAIL PROTECTED] control]# cat logsize 1000000
smime.p7s
Description: S/MIME Cryptographic Signature
