|
|
|
|
|
|
| Author |
Message |
Joshua Nichols *nix forums beginner
Joined: 06 Apr 2005
Posts: 11
|
Posted: Mon Jun 26, 2006 3:42 am Post subject:
Re: qmailanalog single message statistics
|
|
|
Kyle Wheeler wrote:
| Quote: | On Thursday, June 22 at 09:10 AM, quoth Joshua Nichols:
I'm interested in getting qmailanalog style statistics for a specific
message that was sent to a number of recipients.
What you're looking for should be easily possible with qmailanalog. The
trick is finding out what the qp number ("long-term queue identifier")
of the message is first (this information is in the logs).
For example, you'll find log entries like this:
@40000000449f3e6f1e2a2cf4 info msg 64027: bytes 1490 from
sender@address> qp 1715 uid 64020
The qp in this case is 1715. Now, once you've got this, you can send
your logs through matchup:
cat /var/log/qmail/@4* /var/log/qmail/current | \
matchup 5>/dev/null | xqp 1715 | zoverall
Presto: you're done!
One small word of warning; qmail does, every now and then, reuse a qp
number. The qp is a long-term queue identifier, but they aren't
infallible
|
Thank you, I clearly didn't fully comprehend how to use the
xqp/xsender/x___ commands. In my case, since the specific messages
we're looking for are most often ezmlm messages, I believe using xsender
will get us guaranteed unique results, since the ezmlm embeds the
listname and message number in the envelope sender.
--joshua. |
|
| Back to top |
|
 |
Kyle Wheeler *nix forums Guru Wannabe
Joined: 07 Jan 2005
Posts: 208
|
Posted: Mon Jun 26, 2006 2:31 am Post subject:
Re: qmailanalog single message statistics
|
|
|
On Thursday, June 22 at 09:10 AM, quoth Joshua Nichols:
| Quote: | I'm interested in getting qmailanalog style statistics for a specific
message that was sent to a number of recipients.
|
What you're looking for should be easily possible with qmailanalog.
The trick is finding out what the qp number ("long-term queue
identifier") of the message is first (this information is in the
logs).
For example, you'll find log entries like this:
@40000000449f3e6f1e2a2cf4 info msg 64027: bytes 1490 from <sender@address> qp 1715 uid 64020
The qp in this case is 1715. Now, once you've got this, you can send
your logs through matchup:
cat /var/log/qmail/@4* /var/log/qmail/current | \
matchup 5>/dev/null | xqp 1715 | zoverall
Presto: you're done!
One small word of warning; qmail does, every now and then, reuse a qp
number. The qp is a long-term queue identifier, but they aren't
infallible (they're based on PIDs, which, on super-busy servers, can
wrap around in less than an hour), so you may have to judiciously
limit how far back in time the logs you feed it go. My system is
pretty low-load, so when I tested the above command, I found one
message with the same qp from several months ago, but you may find it
necessary to be more judicious.
~Kyle
--
A fanatic is one who can't change his mind and won't change the
subject.
-- Winston Churchill, July 5, 1954 |
|
| Back to top |
|
 |
Erwin Hoffmann *nix forums addict
Joined: 24 Jan 2005
Posts: 71
|
Posted: Thu Jun 22, 2006 7:31 pm Post subject:
Re: qmailanalog single message statistics
|
|
|
Hi,
At 09:10 22.06.2006 -0400, Joshua Nichols wrote:
| Quote: | I'm interested in getting qmailanalog style statistics for a specific
message that was sent to a number of recipients.
I'm not married to using qmailanalog at all, but it is rather thorough.
What I need is to know, for a given message, delivery attempts,
deferral info, bounce info, etc.
Does anyone have any good tools to provide this kind of data? One of my
clients runs a paid-subscription newsletter, and needs to be able to
track the results on that level to ensure QoS for paying customers.
|
you could give my 'newanalyse' a trial:
http://www.fehcom.de/qmail.html
regards.
--eh.
Dr. Erwin Hoffmann | FEHCom | http://www.fehcom.de/
Wiener Weg 8, 50858 Cologne | T: +49 221 484 4923 | F: ...24 |
|
| Back to top |
|
 |
Joshua Nichols *nix forums beginner
Joined: 06 Apr 2005
Posts: 11
|
Posted: Thu Jun 22, 2006 1:10 pm Post subject:
qmailanalog single message statistics
|
|
|
I'm interested in getting qmailanalog style statistics for a specific
message that was sent to a number of recipients.
I'm not married to using qmailanalog at all, but it is rather thorough.
What I need is to know, for a given message, delivery attempts,
deferral info, bounce info, etc.
Does anyone have any good tools to provide this kind of data? One of my
clients runs a paid-subscription newsletter, and needs to be able to
track the results on that level to ensure QoS for paying customers.
Thanks,
--joshua. |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Sat Jan 10, 2009 12:36 am | All times are GMT
|
|
Loans | Bleach | Credit Cards UK | Xbox Mod Chip | Bankruptcy
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|