Re: how to calculate the number of returned mails using qmail

2001-04-17 Thread Markus Stumpf

On Tue, Apr 17, 2001 at 05:32:52PM +0530, mugundhan wrote:
> iam very much confused as to how to find the number of bounced back mails. iam able 
>to receive all the bounce back mails to my email address. but, i need to count them 
>manually to get the number of returned mails. 

Set up an account that will only receive the bounces.
Make the delivery of that account a Maildir.
Do a "/bin/ls -1 | wc -l" in that Maildir/new . The number you get is
the number of messages in that box.
If you want to start over, remove all the files in that Maildir.

Please note that it may take hours and days for bounces to come back.

\Maex

-- 
SpaceNet AG| Joseph-Dollinger-Bogen 14 | Fon: +49 (89) 32356-0
Research & Development |   D-80807 Muenchen| Fax: +49 (89) 32356-299
Stress is when you wake up screaming and you realize you haven't fallen
asleep yet.



Re: how to calculate the number of returned mails using qmail

2001-04-17 Thread lenneis


mugundhan :

> hi all,

> i need to know how to calculate the number of bounced back/returned =
> mails when sending mails to a list of email addresses.

> i have qmail installed on a linux box.

> iam pretty new to qmail. so far, i have been using sendmail wherein =
> there was a option in the sendmail program (-X) which will redirect the =
> entire conversation which my server had with the smtp servers of the =
> recepient boxes to a file. i would then grep the mail ids alone which =
> had returned back from that file.=20

> now, iam using qmail-inject and the -X option is not available.

> iam very much confused as to how to find the number of bounced back =
> mails. iam able to receive all the bounce back mails to my email =
> address. but, i need to count them manually to get the number of =
> returned mails.=20

> is there any way to automate the process.

> i know cgi-perl and all my applications are in perl only. so, a solution =
> in terms of perl would very much helpful to me.


Not in Perl, but you can munge the ascii output with Perl scripts:
http://cr.yp.to/software.html, qmailanalog. That package will crank
out all kinds of statistics about delivered and bounced mails broken
down per sender/recipent if needed.

regards,

-- 

Joerg Lenneis

email: [EMAIL PROTECTED]



how to calculate the number of returned mails using qmail

2001-04-17 Thread mugundhan



 

hi all,
 
i need to know how to calculate the number of 
bounced back/returned mails when sending mails to a list of email 
addresses.
 
i have qmail installed on a linux box.
 
iam pretty new to qmail. so far, i have been using 
sendmail wherein there was a option in the sendmail program (-X) which will 
redirect the entire conversation which my server had with the smtp servers of 
the recepient boxes to a file. i would then grep the mail ids alone which had 
returned back from that file. 
 
now, iam using qmail-inject and the -X option is 
not available.
 
iam very much confused as to how to find the number 
of bounced back mails. iam able to receive all the bounce back mails to my email 
address. but, i need to count them manually to get the number of returned mails. 

 
is there any way to automate the 
process.
 
i know cgi-perl and all my applications are in perl 
only. so, a solution in terms of perl would very much helpful to 
me.
 
advance thanks for the solutions and 
replies.
 
hoping to get a solution from all of you very 
soon.
 
Thanks and Regards,S.Mugundhan,[EMAIL PROTECTED]