Re: Mail
| From: | Chronos | Date: | Sat, 07 Oct 2000 12:37:18 +0000 |
| Subject: | Re: Mail | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-19029@lists.php.net to get a copy of this message | ||
I found the fix for my problem, here it is
To fix the mail command used in PHP or CGI
Add the following in the /usr/lib/sendmail-cf/redhat.mc file.
FEATURE(accept_unresolvable_domains)dnl
----- Original Message -----
From: "Jeff" <php@biz-link.com>
To: "Chronos" <chronos@vic.bc.ca>
Cc: "Glover George" <dime@gulfsales.com>; "'Joe Stump'"
<joe@earth.care2.com>; <php-general@lists.php.net>
Sent: Thursday, October 05, 2000 6:47 PM
Subject: Re: [PHP] Mail
> sendmail does a reverse DNS lookup on every IP on its server
> to ensure the sender is authorized. IF your reverse DNS is not
> set up and/or the server is stuck or running slowly the process
> will get hung up until each request times out. I have experienced
> this on my system.
>
> do an nslookup on your domain's IP address and see how long it
> takes. Then do sendmail -d0-99.99 (insert the rest of your command here)
> which puts sendmail in debug mode. It will print a copious list
> of messages, and probably get stuck when it's doing its dns
> lookups.
>
> If it's not set up then have your ISP fix it for you.
>
> Hope this helps.
> Jeff
>
>
> Chronos wrote:
> >
> > The same thing is happening, what kind of DNS problems would I have??
> >
> > ----- Original Message -----
> > From: "Glover George" <dime@gulfsales.com>
> > To: "'Joe Stump'" <joe@earth.care2.com>;
> > "'Chronos'" <chronos@vic.bc.ca>
> > Cc: <php-general@lists.php.net>
> > Sent: Thursday, October 05, 2000 2:17 PM
> > Subject: RE: [PHP] Mail
> >
> > > Have you tried sending mail from the command prompt with these
machines?
> > > Does the same thing happen? If so, you may have some DNS probs. It
would
> > > seem that PHP is waiting on the underlying mailer to return some type
of
> > > status code (or finish). Do you experience the same thing with the
> > > underlying mail transport agent (sendmail?)?
> > >
> > > -----Original Message-----
> > > From: Joe Stump [mailto:joe@earth.care2.com]
> > > Sent: Thursday, October 05, 2000 4:05 PM
> > > To: Chronos
> > > Cc: php-general@lists.php.net
> > > Subject: Re: [PHP] Mail
> > >
> > >
> > > I often experience this on our server if our mailing list is going out
> > > (which
> > > sends about 1M mails) - but other than the PHP install, quirks with
your
> > > mail
> > > server, or restarting Apache (which usually helps), I'm not sure why
this
> > > would be occuring. The code looks sane.
> > >
> > > --Joe
> > >
> > > On Thu, Oct 05, 2000 at 01:49:29PM -0700, Chronos wrote:
> > > > I am new to PHP and have a quick question,
> > > > I am setting up an automated reply after a client completes a form
using
> > > the
> > > > following code..
> > > >
> > > > #####################
> > > > <?php
> > > > mail("$HTTP_POST_VARS[email]", "Registration Recieved",
> > > > "
> > > > Dear, $HTTP_POST_VARS[name]
> > > >
> > > > Thank you for your payment.
> > > >
> > > > Thank you speach here BLA BLA BLA...
> > > >
> > > > Thank you
> > > > myemail@domain.com
> > > > ",
> > > > "From: myemail@domain.com");
> > > > ?>
> > > > ####################
> > > >
> > > > It works fine on one of my servers, but it is extremly SLOOOOWW on
one
> > of
> > > > the other servers.
> > > > Is this somthing that is wrong with the code or the server? I am
> > thinking
> > > > it is the server or maybe the instalaton of PHP it self on the
server.
> > > <?php
> > > > phpinfo() ?> works just fine and is quick. I have tried a scaled
down
> > > > version for the mail code, (see below) and it is still very slow.
Can
> > > > somthing be done to the server to tweak it or the PHP instalation
> > itself??
> > > > Here is a link to my PHP Info file.
http://www.dotcom.am/phpinfo.php3
> > > > and here is a link to the code you see below.
> > > > http://www.dotcom.am/mailit/mail11.php3 email
> > > > address is my own in
this
> > > > code.
> > > >
> > > > ####################
> > > > <?php
> > > > mail(myemail@server.com, "My Subject", "Line 1\nLine 2\nLine
> > > > 3");
> > > > ?>
> > > > ###################
> > > >
> > > >
> > > > Any help would be GREAT!
> > > > Thank you
> > > > Randall
> > > >
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.php.net/)
> > > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > > > For additional commands, e-mail: php-general-help@lists.php.net
> > > > To contact the list administrators, e-mail:
php-list-admin@lists.php.net
> > > /*****************************\
> > > * Joe Stump *
> > > * www.Care2.com *
> > > * Office: 650.328.0198 *
> > > * Extension: 122 *
> > > \*****************************/
> > >
> > > http://www.miester.org/Joe/Stump/Joe_Stump_resume.html
> > >
> > > -----BEGIN GEEK CODE BLOCK-----
> > > Version: 3.12
> > > GB/E/IT d- s++:++ a? C++++ UL++$ P+ L+++$ E----! W+++$
> > > N+@ o? K? w---! O-@ M+@ V-! P(++) PE(+) Y+@ PGP+++@ t+@
> > > 5? R-! tv@ b+ DI++@ D(++++) G++@ e+@ h@ r+! z(+++++**)!
> > > ------END GEEK CODE BLOCK------
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > > For additional commands, e-mail: php-general-help@lists.php.net
> > > To contact the list administrators, e-mail:
php-list-admin@lists.php.net
> > >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>