niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Apps » Qmail
qmailanalog single message statistics
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
Author Message
Joshua Nichols
*nix forums beginner


Joined: 06 Apr 2005
Posts: 11

PostPosted: Mon Jun 26, 2006 3:42 am    Post subject: Re: qmailanalog single message statistics Reply with quote

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

PostPosted: Mon Jun 26, 2006 2:31 am    Post subject: Re: qmailanalog single message statistics Reply with quote

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

PostPosted: Thu Jun 22, 2006 7:31 pm    Post subject: Re: qmailanalog single message statistics Reply with quote

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

PostPosted: Thu Jun 22, 2006 1:10 pm    Post subject: qmailanalog single message statistics Reply with 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.


Thanks,

--joshua.
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
The time now is Sat Jan 10, 2009 12:36 am | All times are GMT
navigation Forum index » Apps » Qmail
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts New mailbox wellcome message allexxei Postfix 0 Thu Feb 28, 2008 8:43 am
No new posts database Share Memory Limit (2 GB ) in a Instance is tota... sadanjan@gmail.com IBM DB2 0 Fri Jul 21, 2006 12:57 pm
No new posts Single Bit Error Correction & Double Eror Detection using... Hari C 3 Fri Jul 21, 2006 11:43 am
No new posts statistics library Arkadiusz Stasiak C++ 1 Fri Jul 21, 2006 11:40 am
No new posts determine pointer to point to array or single item during... yancheng.cheok@gmail.com C++ 5 Fri Jul 21, 2006 1:17 am

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
[ Time: 0.2418s ][ Queries: 20 (0.1370s) ][ GZIP on - Debug on ]