[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: sendmail



So, I'll give everyone a full refund...

Thanks for the heads up Pete. Any help I can get, I'll gladly take it for
free...

Karl L. Pearson
Senior Consulting Systems Analyst
Senior Consulting Database Analyst
karlp ourldsfamily com
-- All the opinions expressed above are mine.
   For a small fee, they can also be yours. --

On Wed, 11 Apr 2001, Pete Peterson wrote:


It appears that the script counts the sender among the "Total Recipient
Emails".  In this entry, it would count two "recipients":
-----
GAA26199      196 Wed Apr 11 06:50 <someuser GenRad com>
                 (host map: lookup (fastsigns.com): deferred)
                                   <somrecipient fastsigns com>
-----

One very minor nit on the "grep AA"... It isn't *ALWAYS* "AA".  If the
current PID and the current hour would produce a conflict with "AA" (e.g.
PID is 12345 and it's 01:15 and qfBAA12345 already exists in the queue,
sendmail will try qfBAB12345...qfBAZ12345 ... qfB[A12345 ... qfB~Z12345.
The second letter has ASCII range 0x41-0x7e and the third has 0x41-0x5a.
(A-Z) and (A-~).  For quick checks, the way you use it, it's no big deal,
but if you were trying to make sure you got an accurate list for some
other reason, you might prefer "grep '^[A-W]'".

This is only likely to happen if you have a very busy machine and a
lot of as yet undelivered messages in the queue.



    pete peterson

> From redhat-install-list-admin redhat com  Wed Apr 11 07:07:57 2001
> From: "biscut" <biscut ntlworld com>
> To: <redhat-install-list redhat com>
> Subject: RE: sendmail
>
> nice script...I assume its okay for me to use it ?? royalties paid of course
>:-)
>
> Regards
> biscut
>
> > -----Original Message-----
> > From: redhat-install-list-admin redhat com
> > [mailto:redhat-install-list-admin redhat com]On Behalf Of
> > karlp ourldsfamily com
> > Sent: 10 April 2001 19:31
> > To: RHL Install
> > Subject: Re: sendmail
> >
> >
> > Here's what I use, instead of using sendmail -bp:
> >
> >
> > #!/bin/sh
> > mailq -v|more
> > echo
> > echo "  There are"`mailq -v|grep '@'|wc -l`" Total Recipient Emails"
> > echo " Comprizing"`mailq -v|grep AA|wc -l`" Total Unique Emails"
> > echo
> > echo " To see them all, execute mailq -v"
> > echo
> > ps ax|grep sendmail|grep -v grep|grep -v accepting
> >
> >
> > I named it mq and put it in /usr/bin, executable by any user (755).
> >
> > Hope this helps.
> >
> > Karl L. Pearson
> > Senior Consulting Systems Analyst
> > Senior Consulting Database Analyst
> > karlp ourldsfamily com
> > -- All the opinions expressed above are mine.
> >    For a small fee, they can also be yours. --
> >
> > On Mon, 9 Apr 2001, Steve Fernandez wrote:
> >
> > Hi Guys,
> >
> >     I have sendmail installed at home, and I use a dialup connection.
> > After I connect to my ISP, I run fetchmail to fetch all my mail from my
> > POP3 server. By this time, sendmail, running in background, would have
> > sent all messages in queue to my IMAP server. I want to know the status
> > of sendmail at any time, or make it output a message when it has
> > transferred all messages in the mail queue to my SMTP server, so that I
> > do not terminate the connection to my ISP while a mail transfer is in
> > progress. Could somebody give me a script or anything else to satisfy
> > the above requirements?
> >
> > Regards,
> > Steve Fernandez.
> >
>





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]