Mailing List Archive



Back to the month index Back to the list index

Mike Black (mblack@picard.csihq.com)
Wed, 14 Apr 1999 08:31:30 -0400


Message-ID: <00f801be8672$b941e610$32de11cc@csi.cc>
From: "Mike Black" <mblack@picard.csihq.com>
Subject: Re: Lite and sendmail
Date: Wed, 14 Apr 1999 08:31:30 -0400

Actually what you want is for sendmail to immediately "queue" mail -- NOT
deliver it. In order to have sendmail just queue up the messages with no
DNS/NIS lookup or attempted delivery try "-O DeliveryMode=d". This should
speed things up considerably. By default, sendmail will do a DNS loookup
and attempt to deliver the mail immediately. Any errors (like DNS servers
down or mail servers down) will cause things to get real slow.

________________________________________
Michael D. Black Principal Engineer
mblack@csi.cc 407-676-2923,x203
http://www.csi.cc Computer Science Innovations
http://www.csi.cc/~mike My home page
FAX 407-676-2355
----- Original Message -----
At 10:29 AM 4/13/99 -0400, Fernando Maior wrote:
>Hi List,
>
>On another message, Bambi showed me a piece of code to send mail from
>within a Lite script. Now I would like to put the funct I created for
>everybody use.
>
>/***/
>funct SendMail (char $To, char $Subj, char $Text)
>{
> $fd = open ("/usr/sbin/sendmail -t",">|");
> fprintf($fd, "To: $To\n");
> fprintf($fd, "Subject: $Subj\n");
> fprintf($fd, "\n");
> fprintf($fd, "$Text\n");
> close($fd);
> return(1);
>}
>
>It is a little different from what Bambi sent me, and I suspect we are
>using different linux flavors. Mine is RH5.1.
>
>Also, I realized sendmail is running nice this way but with a delay of
>approximately 1m35s. Well, my application selects a lot of clients from
>the database and sends a number of mails for them. It means, if I send
>50 mails, my Lite script will have to wait for sendmail for +- 1 hour!
>Bad thing, I would like sendmail to immediately deliver mail.
>
>Anyone know how to setup sendmail to do this?
>
>I already went to <man sendmail> and was not clarified, even after
>tests.
>
>And, if I am off topic from this list, tell me which list must I go to
>get this info.
>
>Thanks,
>Bye,
>Fernando Maior
>
>

________________________________________
Michael D. Black Principal Engineer
mblack@csi.cc 407-676-2923,x203
http://www.csi.cc Computer Science Innovations
http://www.csi.cc/~mike My home page
FAX 407-676-2355