Hi
I have a problem with logging on my zimbra install. I have looked through a lot of threads in these forums and I'm not experiencing any of the errors detailed in related threads that I can find.
cat /tmp/logprocess.out
Pruning service/server entries older then 2007-08-21 16:00:02
raidar maps to raidar.seabed.no
Processing mta entries from 0
Found 0 messages
Deleting processed postfix logs from raw_logs...Done
Processing clamd entries from 0
Found 0 entries
Deleting processed clamd logs from raw_logs...Done
Processing amavis entries from 31415
Found 4 entries
Saving ID 31455
Deleting processed amavis logs from raw_logs...Done
Processing sendmail entries from 0
Found 0 entries
Deleting processed sendmail logs from raw_logs...Done
Processing zimbramon entries from 31292
Found 3 entries
Saving ID 31488
Deleting processed zimbramon logs from raw_logs...Done
Aggregating hour mta from 2007-08-21 15:00:00 to 2007-08-21 16:00:00
Aggregating day mta from 2007-08-20 00:00:00 to 2007-08-21 00:00:00
Aggregating hour amavis from 2007-08-21 15:00:00 to 2007-08-21 16:00:00
Aggregating day amavis from 2007-08-20 00:00:00 to 2007-08-21 00:00:00
Aggregating hour disk from 2007-08-21 15:00:00 to 2007-08-21 16:00:00
Aggregating day disk from 2007-08-20 00:00:00 to 2007-08-21 00:00:00
Retaining 31 days worth of raw logs based on zimbraLogRawLifetime config.
Retaining 730 days worth of summary logs based on zimbraLogSummaryLifetime config.
Pruning raw mta logs from 2007-07-21 00:00:00
Pruning raw amavis logs from 2007-07-21 00:00:00
Pruning raw disk logs from 2007-07-21 00:00:00
Pruning summary mta logs from 2005-08-21 00:00:00
Pruning summary amavis logs from 2005-08-21 00:00:00
Pruning summary disk logs from 2005-08-21 00:00:00
Pruning other raw logs from 2007-07-21 00:00:00
For some reason it never finds any mail messages when it parses the logs. I have sent a bunch of test mails between accounts on the server and also mails to outside account (I haven't received any external mail as I have no MX record pointing to this server yet). Postfix does log to /var/log/zimbra.log for all mails sent.
Using zmmsgtrace also never finds anything, but I guess that is a related problem.
The logger service seems to run fine otherwise. Can it be a problem with that it doesn't parse the file correctly for the postfix entries? it seems to find the zimbramon entries just fine.
Let me know if I should provide more info
thanks,
Hogne
Edit:
Figured out the problem.
The following thread clued me in to have a look in the DB
MTA logging question
I had the same problem with postfix_qid being NULL and I noticed in my log entries the postfix ID was 13 digits.
After changing the following in /opt/zimbra/libexec/zmlogger everything works fine:
Code:
$qid = $1 if ($app =~ /^postfix/ && $msg =~ /^(\S{8,12}): /); To:
Code:
$qid = $1 if ($app =~ /^postfix/ && $msg =~ /^(\S{8,13}): /); It might be an idea to change this regexp into something more robust which can handle the apparent variances in Postfix ID length.