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

Re: sendmail



karlp ourldsfamily com wrote:

> 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."
>
> _______________________________________________
> Redhat-install-list mailing list
> Redhat-install-list redhat com
> https://listman.redhat.com/mailman/listinfo/redhat-install-list

    Thanks for the script. But, in mailq -v, both the senders (mine) and
the receipient's email addresses are displayed, so grep '@' | wc -l
returns double the number of e-mails currently in queue. IMHO, it's better
to check for '<' or '>'..... and when does sendmail append AA to a message
in queue?

Regards,
Steve Fernandez.

--
Registered Linux user #211615
Registered Linux machine #98619

"I am not young enough to know everything."


begin:vcard 
n:Fernandez;Steve
tel;home:0091-484-234155
x-mozilla-html:FALSE
org:Model Engg. College
version:2.1
email;internet:franline eth net
adr;quoted-printable:;;'Franline', Hno 22/580,=0D=0AEdacochin, Kerala,=0D=0AIndia - 682006.;Cochin;Kerala;682006;India
x-mozilla-cpt:;0
fn:Steve Fernandez
end:vcard

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


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