Mailing List Archive



Back to the month index Back to the list index

Jean-Oliver Holingue (joh@shore.net)
Tue, 13 Apr 1999 21:13:06 -0400


Message-Id: <3.0.6.32.19990413211306.0098c210@shell1.shore.net>
Date: Tue, 13 Apr 1999 21:13:06 -0400
From: Jean-Oliver Holingue <joh@shore.net>
Subject: Re: Lite and sendmail

Fernando,

Everything depends on how you start sendmail om your machine: which flags
do you pass? how looks your sendmail.cf configuration file (generally
/etc/mail/sendamil.cf) I run the same kind of applications and with a plain
vanilla sendmail 8.9, I don't run into any problems (I launch sendmail with
-bd options)
You can send me privately your config file if you want; the best resource
is the O'Reilly book (really a bible)
Finally, you can also license the commercial version of sendmail (sendamil
pro) and get support directly from Eric Altman, the creator of the sendmail
program.
HTH

Jean-Olivier Holingue
joh@shore.net

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
>
>
From bambi@Hughes.com.au Tue Apr 13 21:21:21 1999
Received: from sonic.fan.net.au (sonic.fan.net.au [203.20.92.3])
        by services.bunyip.com (8.8.5/8.8.5) with ESMTP id VAA21404
        for <msql-list@services.bunyip.com>; Tue, 13 Apr 1999 21:21:19 -0400 (EDT)
Received: from fawn.Hughes.com.au (fawn.hughes.com.au [203.23.133.33])
        by sonic.fan.net.au (8.9.1/8.9.1) with ESMTP id LAA12908;
        Wed, 14 Apr 1999 11:21:17 +1000 (EST)
Received: from localhost (Received: from localhost (hughes@localhost)
        by fawn.Hughes.com.au (8.8.7/8.8.5) with SMTP id LAA02409;
        Wed, 14 Apr 1999 11:21:17 +1000 (EST)
X-Authentication-Warning: fawn.hughes.com.au: hughes owned process doing -bs
Date: Wed, 14 Apr 1999 11:21:17 +1000 (EST)
From: "David J. Hughes" <bambi@Hughes.com.au>
To: Christian Hamel <christianhamel@videotron.ca>
cc: Multiple recipients of list <msql-list@services.bunyip.com>
Subject: Re: permission denied accessing a database.
In-Reply-To: <001001be85f7$ea20ff80$a4ddfdcf@videotron.ca>
Message-ID: <Pine.BSF.3.96.990414111951.564D-100000@fawn.hughes.com.au>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Tue, 13 Apr 1999, Christian Hamel wrote:

> I have an account on a web hosting server. I have access to an mSQL =
> database. I've ask to the operator to create a database for me; he did. =
> If I issue the command relshow, I see 3 different database. I can =
> access 2 of them with the command line msql -h host database-name but I =
> can't access mine this way, it gives me the error "Access to database =
> Denied" BUT if I try accessing it via the command msql database-name, I =
> can without any problems.

sounds as thought the ACL entry for that database has been configure to
only allow local access, not remote access. Remember that remote access is
anything that is received over a TCP connection, even if the connection
originated on the same machine.

> But if I try to access to my database via a C
> program or a java program I always get a permission denied,

>From C at least if you use msqlConnect(NULL) you should be fine as that
will use a local connection.

Bambi
...