[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: sendmail
- From: <karlp ourldsfamily com>
- To: RHL Install <redhat-install-list redhat com>
- Subject: Re: sendmail
- Date: Tue, 10 Apr 2001 12:31:22 -0600 (MDT)
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.
--
Registered Linux user #211615
Registered Linux machine #98619
"I am not young enough to know everything."
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]