I want to know how many messages were sent/failed etc. for a given period of
time (say the last three days).
I have done the following in both /var/log/qmail/qmail-send and
/var/log/qmail/qmail-smtpd (I'll admit my ignorance and say that I don't
know the difference between the two. Is qmail-send local deliveries and
qmail-smtpd remote deliveries?):
1) Ran "matchup" on /var/log/qmail/qmail-send(smtpd)/current
2) Converted the "matchedup" version of "current" into human readable
format using tai64nlocal
3) Pulled out dates for which I want to see log results from the file
created above
4) Convert the data above to tai64 format using tai64n
5) Ran this data through zoverall to see qmailanalog results
Regardless of whether I run it against /var/log/qmail/qmail-send or
/var/log/qmail/qmail-smtpd I get the following:
++++++++++++
Completed messages: 0
Total delivery attempts: 0
++++++++++++
Am I anywhere near doing this right?
++++++++++++
Here are my actual commands
1) cat /var/log/qmail/qmail-smtpd/current |
/usr/local/qmailanalog/bin/matchup > /var/log/qmail/qmail-smtpd/matchedup
2) cat /var/log/qmail/qmail-smtpd/matchedup | /usr/local/bin/tai64nlocal >
human_readable_current
3) vi human_readable_current (remove all unneeded data)
4) cat /var/log/qmail/qmail-send/human_readable_current |
/usr/local/bin/tai64n > tai64_current
5) cat ./tai64_current | /usr/local/qmailanalog/bin/zoverall > overall_log