OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
php-general Digest 31 Jul 2004 11:19:17 -0000 Issue 2909

php-general-digest-helplists.php.net
Date: Sat Jul 31 2004 - 06:19:17 CDT


php-general Digest 31 Jul 2004 11:19:17 -0000 Issue 2909

Topics (messages 192371 through 192391):

Re: Replace a button by an image
        192371 by: PHP Gen
        192373 by: Justin Patrin
        192380 by: Curt Zirzow

Re: upload_tmp_dir Not Working
        192372 by: Justin Patrin

str_replace: use multiple or array?
        192374 by: PHP Gen
        192377 by: Curt Zirzow

Re: db transactions across multiple pages...
        192375 by: John Nichel
        192379 by: bruce
        192382 by: Jim Grill

PHP5 Manual in PDF and for Pocket PCs
        192376 by: EE
        192391 by: Jason Barnett

Re: Means of collecting HTTP response headers
        192378 by: Curt Zirzow

Accepting Credit Cards
        192381 by: Jonathan Hadddad
        192383 by: Jim Grill

Re: Page load based on logic
        192384 by: Michael Harding
        192385 by: Jason Wong

Re: Sending E-mail From Mail
        192386 by: Ben Chivers
        192387 by: Jason Wong
        192388 by: Ben Chivers
        192390 by: Jason Wong

php4.3.7 + phpBB 2.0.10 + Apache - zero sized replies with no hits/errors logged by apache
        192389 by: ADFH

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscribelists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscribelists.php.net

To post to the list, e-mail:
        php-generallists.php.net

----------------------------------------------------------------------

attached mail follows:


> Jay Blanchard wrote:
> > Yes, anything is possible.
>
> Can I be the next Queen of England?
>
> --
> John C. Nichel

Anythings possible...and with all your choices you
want to be an old fart??

:-)

=====
------
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

                
__________________________________
Do you Yahoo!?
Y! Messenger - Communicate in real time. Download now.
http://messenger.yahoo.com

attached mail follows:


On Fri, 30 Jul 2004 23:14:53 +0100, Harlequin
<michael.masonarraspeople.co.uk> wrote:
> Henri.
>
> I prefer to use CSS for things like this but I'm sure PHP has it's own
> idiosyncrasies.
>
> I checked out the site posted in response to your post and personally
> thought the graphics were a bit ropey.
>
> typically CSS is used for replacing images or backgrounds on hover but is
> very flexible and quick to load an alternate image but it could just as
> easily be applied to static images such as buttons etc.
>

CSS is for the *styling* of a page. This includes, but is not limited
to: colors, borders, images, width, height, text attributes,
placement, background, and hover attributes.

You can literally use all DIVs and SPANs in your page, only set
classes, ids, and styles, and lay it all out and style it all with a
seperate CSS file. Of course, this is a hard thing to do, but it's
possible. ;-)

> Feel free to drop me a line if you need any pointers.
>
>
>
> > Hello,
> >
> > Is it possible to replace a button by an image with
> > PHP?
> >

--
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder

paperCrane --Justin Patrin--

attached mail follows:


* Thus wrote Justin Patrin:
> On Fri, 30 Jul 2004 23:14:53 +0100, Harlequin
> <michael.masonarraspeople.co.uk> wrote:
> > Henri.
> >
> > I prefer to use CSS for things like this but I'm sure PHP has it's own
> > idiosyncrasies.
> >
> > I checked out the site posted in response to your post and personally
> > thought the graphics were a bit ropey.
> >
> > typically CSS is used for replacing images or backgrounds on hover but is
> > very flexible and quick to load an alternate image but it could just as
> > easily be applied to static images such as buttons etc.
> >
>
> CSS is for the *styling* of a page. This includes, but is not limited
> to: colors, borders, images, width, height, text attributes,
> placement, background, and hover attributes.
>
> You can literally use all DIVs and SPANs in your page, only set
> classes, ids, and styles, and lay it all out and style it all with a
> seperate CSS file. Of course, this is a hard thing to do, but it's
> possible. ;-)

And here is a perfect example of that:

  http://www.csszengarden.com/

Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!

attached mail follows:


On Fri, 30 Jul 2004 18:05:54 -0400, Monty <monty3hotmail.com> wrote:
>
> > On Fri, 30 Jul 2004 17:08:46 -0400, Monty <monty3hotmail.com> wrote:
> >> In my .htaccess file I have...
> >>
> >> php_value upload_tmp_dir /home/site/temp
> >>
> >> But when I upload a file using a form, here's what the $_FILE array prints
> >> out:
> >>
> >> [tmp_name] => /temp/phpvRRDss
> >>
> >> /temp is a valid directory, but, it's not the directory I specified in the
> >> ..htaccess file for this site.
> >>
> >> So, obviously PHP is not using my temp directory, or it's not reporting the
> >> proper temp directory in the $_FILES array.
> >>
> >> I also tried adding this to my httpd.conf file within the site's VirtualHost
> >> directives, but, that didn't work either (yes, I restarted Apache first).
> >>
> >> Anyone have any insight on this??
> >>
> >
> > Perhaps try putting it in your php.ini where it belongs? Perhaps this
> > is a non-overrideable value.
> >
>
> The PHP manual says that the "upload_tmp_dir" setting is PHP_INI_SYSTEM, so,
> it can be set in php.ini or httpd.conf.
>
> That explains why it won't work in .htaccess, but, not why it didn't work in
> httpd.conf. Where in the httpd.conf file does this need to go then? The
> online docs don't say. I don't want this to be global, I want a different
> upload_tmp_dir for each site. But, if it can only be set in PHP.INI, then I
> guess this isn't possible??
>

I believe that if it's PHP_INI_SYSTEM, it has to be for the whole
system. If you're setting it per-domain or directory or something in
httpd.conf, that's probably why it's not working.

I don't see why this would matter as you can immediately move it
wherever you want it.

--
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder

paperCrane --Justin Patrin--

attached mail follows:


Hi,
I need to use a couple of str_replace's in one of my
programs and would like to know which is more resource
friendly:

1) having multiple str_replace one after another

eg:
$text = str_replace("orange", "apple", "$text");
$text = str_replace("black", "white", "$text");
$text = str_replace("girl", "guy", "$text");
$text = str_replace("woman", "man", "$text");
$text = str_replace("plant", "tree", "$text");

2) by using an array

eg:
$bad = array("orange", "black", "girl", "woman",
"plant");
$good = array("apple", "white", "guy", "man", "tree");
$text = str_replace($bad, $good, $text);

Also, off topic,
Anybody else getting a non delivery message from:
MAILER-DAEMON rotonet.rsdb.nl

Thanks,
Mag

=====
------
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

                
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail

attached mail follows:


* Thus wrote PHP Gen:
> Hi,
> I need to use a couple of str_replace's in one of my
> programs and would like to know which is more resource
> friendly:
>
> 1) having multiple str_replace one after another
>
> eg:
> $text = str_replace("orange", "apple", "$text");
> $text = str_replace("black", "white", "$text");
> ...
>
> 2) by using an array
>
> eg:
> $bad = array("orange", "black", "girl", "woman",
> "plant");
> $good = array("apple", "white", "guy", "man", "tree");
> $text = str_replace($bad, $good, $text);

#2

Anytime you can have the internals of php handle stuff for you the
better it most likely will be.

>
>
> Also, off topic,
> Anybody else getting a non delivery message from:
> MAILER-DAEMON rotonet.rsdb.nl

I'll see what I can do about this. thanks for reminding me :)

Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!

attached mail follows:


bruce wrote:
> not sure if it's php/mysqli... but if you check the php.net for the "mysqli"
> not "mysql" functions... you won't see the persistent attribute listed for
> the php.ini attributes...

I wouldn't worry too much about that though. I mean if persistant
connections are required for transactions, I'm sure it will be there.
The only reason we may not be seeing it now is because the PHP5
documentation is full of holes (with it not being a production release
yet). I know of a few items that are available in PHP5 that aren't
documented on php.net yet.

--
By-Tor.com
It's all about the Rush
http://www.by-tor.com

attached mail follows:


you also won't see the mysqli pconnect function... which tells me that at
least for now, it's not there...

-bruce

-----Original Message-----
From: John Nichel [mailto:jnichelby-tor.com]
Sent: Friday, July 30, 2004 8:44 PM
To: php-generallists.php.net
Subject: Re: [PHP] db transactions across multiple pages...

bruce wrote:
> not sure if it's php/mysqli... but if you check the php.net for the
"mysqli"
> not "mysql" functions... you won't see the persistent attribute listed for
> the php.ini attributes...

I wouldn't worry too much about that though. I mean if persistant
connections are required for transactions, I'm sure it will be there.
The only reason we may not be seeing it now is because the PHP5
documentation is full of holes (with it not being a production release
yet). I know of a few items that are available in PHP5 that aren't
documented on php.net yet.

--
By-Tor.com
It's all about the Rush
http://www.by-tor.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

attached mail follows:


It's my understanding that persistent connections via the old ext/mysql was
a flawed misfeature to begin with. This was one of several misfeatrures
corrected by the new mysqli extension. There is some information on the
subject here: http://www.zend.com/php5/articles/php5-mysqli.php

It would be my guess that pconnect will be a thing of the past. It's sort of
a drag, but running out of connections - as pconnect can cause - is a real
drag too. ;)

Jim Grill
Web-1 Hosting
http://www.web-1hosting.net

----- Original Message -----
From: "bruce" <bedouglasearthlink.net>
To: "'John Nichel'" <jnichelby-tor.com>; <php-generallists.php.net>
Sent: Saturday, July 31, 2004 12:10 AM
Subject: RE: [PHP] db transactions across multiple pages...

> you also won't see the mysqli pconnect function... which tells me that at
> least for now, it's not there...
>
> -bruce
>
>
> -----Original Message-----
> From: John Nichel [mailto:jnichelby-tor.com]
> Sent: Friday, July 30, 2004 8:44 PM
> To: php-generallists.php.net
> Subject: Re: [PHP] db transactions across multiple pages...
>
>
> bruce wrote:
> > not sure if it's php/mysqli... but if you check the php.net for the
> "mysqli"
> > not "mysql" functions... you won't see the persistent attribute listed
for
> > the php.ini attributes...
>
> I wouldn't worry too much about that though. I mean if persistant
> connections are required for transactions, I'm sure it will be there.
> The only reason we may not be seeing it now is because the PHP5
> documentation is full of holes (with it not being a production release
> yet). I know of a few items that are available in PHP5 that aren't
> documented on php.net yet.
>
> --
> By-Tor.com
> It's all about the Rush
> http://www.by-tor.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

attached mail follows:


Dears,

Anyone knows where can I find php5 manual in pdf format for for ppc

attached mail follows:


As far as I know, no one has done that yet. Although all of the PHP manual
pages are written in XML so if you were so inclined you could do it yourself.
And I'm sure others would appreciate it if you shared it :)

attached mail follows:


* Thus wrote Gerard Samuel:
> On Friday 30 July 2004 01:32 pm, Gerard Samuel wrote:
> > A means that is not specifically tied to Apache functions.
> > Just looking for a way so that it works no matter the webserver.
> >
>
> Seems like the function stream_get_meta_data() will fill the job..

hmm.. are you able to get the headers from that? could you provide a
sample?

Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!

attached mail follows:


I'm going to be setting up a site that needs to accept credit card
transactions. I was wondering what people thought of different
services such as paypal, 2checkout, or whatever you've used before.

I have used 2checkout, and it was OK. I'm looking for something that's
quick to set up and cheap doesn't hurt ;)

--
Jon Haddad
Check out http://www.oldirtyhaddad.com

attached mail follows:


At the risk of sounding dull, I have used Authorize.net for many years and
have no complaints. I'm not sure about price, but set up is pretty easy with
their documentation and they're very reliable.

Jim Grill
Web-1 Hosting
http://www.web-1hosting.net

----- Original Message -----
From: "Jonathan Hadddad" <jonoldirtyhaddad.com>
To: <php-generallists.php.net>
Sent: Thursday, July 29, 2004 11:30 PM
Subject: [PHP] Accepting Credit Cards

> I'm going to be setting up a site that needs to accept credit card
> transactions. I was wondering what people thought of different
> services such as paypal, 2checkout, or whatever you've used before.
>
> I have used 2checkout, and it was OK. I'm looking for something that's
> quick to set up and cheap doesn't hurt ;)
>
> --
> Jon Haddad
> Check out http://www.oldirtyhaddad.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

attached mail follows:


Thank you.

You suggestion will work for some cases. However it doesn't actually load a
different page. Sometime I will need to load a completely new URL instead
of just a local PHP page...ie: www.somepage.com.

Thanks

attached mail follows:


On Saturday 31 July 2004 13:58, Michael Harding wrote:

> You suggestion will work for some cases. However it doesn't actually load
> a different page. Sometime I will need to load a completely new URL
> instead of just a local PHP page...ie: www.somepage.com.

What exactly is it that you want to do?

1) redirect the use to a different -- the URL will change

or

2) output something different -- the URL will not change

--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
You know, the difference between this company and the Titanic is that the
Titanic had paying customers.
*/

attached mail follows:


Hi,

I am trying to send e-mail from using the mail function is PHP. My coding
definitely works because I have tried it on other servers.

I think it is to do with configuration of sendmail.

The e-mail isn't sent using sendmail. Does anyone know how to get around
this?

I've got root access to my linux server which will allow me to edit the
required files for sendmail.

Any help would be most appreciated.

Many Regards,
Ben Chivers

This is what me sendmail files looks like:

divert(-1)dnl
dnl #
dnl # This is the sendmail macro config file for m4. If you make changes to
dnl # /etc/mail/sendmail.mc, you will need to regenerate the
dnl # /etc/mail/sendmail.cf file by confirming that the sendmail-cf package
is
dnl # installed and then performing a
dnl #
dnl # make -C /etc/mail
dnl #
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`setup for Red Hat Linux')dnl
OSTYPE(`linux')dnl
dnl #
dnl # Uncomment and edit the following line if your outgoing mail needs to
dnl # be sent out through an external mail server:
dnl #
dnl define(`SMART_HOST',`smtp.your.provider')
dnl #
define(`confDEF_USER_ID',``8:12'')dnl
define(`confTRUSTED_USER', `smmsp')dnl
dnl define(`confAUTO_REBUILD')dnl
define(`confTO_CONNECT', `1m')dnl
define(`confTRY_NULL_MX_LIST',true)dnl
define(`confDONT_PROBE_INTERFACES',true)dnl
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
define(`ALIAS_FILE', `/etc/aliases')dnl
dnl define(`STATUS_FILE', `/etc/mail/statistics')dnl
define(`UUCP_MAILER_MAX', `2000000')dnl
define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
define(`confAUTH_OPTIONS', `A')dnl
dnl #
dnl # The following allows relaying if the user authenticates, and disallows
dnl # plaintext authentication (PLAIN/LOGIN) on non-TLS links
dnl #
dnl #
dnl # PLAIN is the preferred plaintext authentication method and used by
dnl # Mozilla Mail and Evolution, though Outlook Express and other MUAs do
dnl # use LOGIN. Other mechanisms should be used if the connection is not
dnl # guaranteed secure.
dnl #
TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN
PLAIN')dnl
dnl #
dnl # Rudimentary information on creating certificates for sendmail TLS:
dnl # make -C /usr/share/ssl/certs usage
dnl #
dnl define(`confCACERT_PATH',`/usr/share/ssl/certs')
dnl define(`confCACERT',`/usr/share/ssl/certs/ca-bundle.crt')
dnl define(`confSERVER_CERT',`/usr/share/ssl/certs/sendmail.pem')
dnl define(`confSERVER_KEY',`/usr/share/ssl/certs/sendmail.pem')
dnl #
dnl # This allows sendmail to use a keyfile that is shared with OpenLDAP's
dnl # slapd, which requires the file to be readble by group ldap
dnl #
dnl define(`confDONT_BLAME_SENDMAIL',`groupreadablekeyfile')dnl
dnl #
dnl define(`confTO_QUEUEWARN', `4h')dnl
dnl define(`confTO_QUEUERETURN', `5d')dnl
dnl define(`confQUEUE_LA', `12')dnl
dnl define(`confREFUSE_LA', `18')dnl
define(`confTO_IDENT', `0')dnl
dnl FEATURE(delay_checks)dnl
FEATURE(`no_default_msa',`dnl')dnl
FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
FEATURE(redirect)dnl
FEATURE(always_add_domain)dnl
FEATURE(use_cw_file)dnl
FEATURE(use_ct_file)dnl
FEATURE(`relay_entire_domain')dnl
dnl #
dnl # The -t option will retry delivery if e.g. the user runs over his
quota.
dnl #
FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl
FEATURE(`access_db',`hash -T<TMPF> -o /etc/mail/access.db')dnl
FEATURE(`blacklist_recipients')dnl
EXPOSED_USER(`root')dnl
dnl #
dnl # The following causes sendmail to only listen on the IPv4 loopback
address
dnl # 127.0.0.1 and not on any other network devices. Remove the loopback
dnl # address restriction to accept email from the internet or intranet.
dnl #
DAEMON_OPTIONS(`Port=smtp,Name=MTA')dnl
dnl #
dnl # The following causes sendmail to additionally listen to port 587 for
dnl # mail from MUAs that authenticate. Roaming users who can't reach their
dnl # preferred sendmail daemon due to port 25 being blocked or redirected
find
dnl # this useful.
dnl #
dnl DAEMON_OPTIONS(`Port=submission, Name=MSA, M=Ea')dnl
dnl #
dnl # The following causes sendmail to additionally listen to port 465, but
dnl # starting immediately in TLS mode upon connecting. Port 25 or 587
followed
dnl # by STARTTLS is preferred, but roaming clients using Outlook Express
can't
dnl # do STARTTLS on ports other than 25. Mozilla Mail can ONLY use STARTTLS
dnl # and doesn't support the deprecated smtps; Evolution <1.1.1 uses smtps
dnl # when SSL is enabled-- STARTTLS support is available in version 1.1.1.
dnl #
dnl # For this to work your OpenSSL certificates must be configured.
dnl #
dnl DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA, M=s')dnl
dnl #
dnl # The following causes sendmail to additionally listen on the IPv6
loopback
dnl # device. Remove the loopback address restriction listen to the network.
dnl #
dnl # NOTE: binding both IPv4 and IPv6 daemon to the same port requires
dnl # a kernel patch
dnl #
dnl DAEMON_OPTIONS(`port=smtp,Addr=::1, Name=MTA-v6, Family=inet6')dnl
dnl #
dnl # We strongly recommend not accepting unresolvable domains if you want
to
dnl # protect yourself from spam. However, the laptop and users on computers
dnl # that do not have 24x7 DNS do need this.
dnl #
dnl #
dnl #
dnl # Also accept email sent to "localhost.localdomain" as local email.
dnl #
LOCAL_DOMAIN(`localhost.localdomain')dnl
dnl #
dnl # The following example makes mail from this host and any additional
dnl # specified domains appear to be sent from mydomain.com
dnl #
dnl MASQUERADE_AS(`mydomain.com')dnl
dnl #
dnl # masquerade not just the headers, but the envelope as well
dnl #
dnl FEATURE(masquerade_envelope)dnl
dnl #
dnl # masquerade not just mydomainalias.com, but *.mydomainalias.com as
well
dnl #
dnl FEATURE(masquerade_entire_domain)dnl
dnl #
dnl MASQUERADE_DOMAIN(localhost)dnl
dnl MASQUERADE_DOMAIN(localhost.localdomain)dnl
dnl MASQUERADE_DOMAIN(mydomainalias.com)dnl
dnl MASQUERADE_DOMAIN(mydomain.lan)dnl
MAILER(smtp)dnl
MAILER(procmail)dnl

attached mail follows:


On Saturday 31 July 2004 16:34, Ben Chivers wrote:

> I am trying to send e-mail from using the mail function is PHP. My coding
> definitely works because I have tried it on other servers.
>
> I think it is to do with configuration of sendmail.
>
> The e-mail isn't sent using sendmail. Does anyone know how to get around
> this?
>
> I've got root access to my linux server which will allow me to edit the
> required files for sendmail.

What does the mail logs say?

--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Efforts in improving a programs "user-friendliness" invariably leads to
improving the user's "computer literacy"
                -- Thoreau's Theories of Adaption n3
*/

attached mail follows:


Here are the last few lines of my error log:

Jul 31 10:14:03 server196 sendmail[7274]: i6V9E2Yl007263: to=root,
delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32877, dsn=2.0.0,
stat=Sent
Jul 31 10:14:03 server196 sendmail[7263]: i6V9E2Yp007263: from=<>,
size=3644, class=0, nrcpts=1,
msgid=<200407310914.i6V9E2pO007262server196.poundhost.com>, proto=ESMTP,
daemon=MTA, relay=server196.poundhost.com [127.0.0.1]
Jul 31 10:14:03 server196 sm-msp-queue[7262]: i6V9E2pO007262: to=nobody,
delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=32869, relay=[127.0.0.1]
[127.0.0.1], dsn=2.0.0, stat=Sent (i6V9E2Yp007263 Message accepted for
delivery)
Jul 31 10:14:03 server196 sendmail[7263]: i6V9E2Yr007263:
<enquiriessuperhomepagespro.com>... User unknown
Jul 31 10:14:03 server196 sm-msp-queue[7262]: i6V5DJ2O005991:
to=enquiriessuperhomepagespro.com, ctladdr=nobody (99/99), delay=04:00:44,
xdelay=00:00:00, mailer=relay, pri=570103, relay=[127.0.0.1] [127.0.0.1],
dsn=5.1.1, stat=User unknown
Jul 31 10:14:03 server196 sendmail[7263]: i6V9E2Yr007263:
from=<nobodyserver196.poundhost.com>, size=813, class=0, nrcpts=0,
proto=ESMTP, daemon=MTA, relay=server196.poundhost.com [127.0.0.1]
Jul 31 10:14:03 server196 sm-msp-queue[7262]: i6V5DJ2O005991:
i6V9E2pP007262: DSN: User unknown
Jul 31 10:14:03 server196 sendmail[7276]: i6V9E2Yp007263: to=root,
delay=00:00:00, xdelay=00:00:00, mailer=local, pri=33872, dsn=2.0.0,
stat=Sent
Jul 31 10:14:04 server196 sendmail[7263]: i6V9E2Yt007263: from=<>,
size=2612, class=0, nrcpts=1,
msgid=<200407310914.i6V9E2pP007262server196.poundhost.com>, proto=ESMTP,
daemon=MTA, relay=server196.poundhost.com [127.0.0.1]
Jul 31 10:14:04 server196 sm-msp-queue[7262]: i6V9E2pP007262: to=nobody,
delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=31837, relay=[127.0.0.1]
[127.0.0.1], dsn=2.0.0, stat=Sent (i6V9E2Yt007263 Message accepted for
delivery)
Jul 31 10:14:04 server196 sendmail[7263]: i6V9E2Yv007263:
<enquiriessuperhomepagespro.com>... User unknown
Jul 31 10:14:04 server196 sm-msp-queue[7262]: i6V57K6p005977:
to=enquiriessuperhomepagespro.com, ctladdr=nobody (99/99), delay=04:06:44,
xdelay=00:00:00, mailer=relay, pri=570123, relay=[127.0.0.1] [127.0.0.1],
dsn=5.1.1, stat=User unknown
Jul 31 10:14:04 server196 sendmail[7263]: i6V9E2Yv007263:
from=<nobodyserver196.poundhost.com>, size=851, class=0, nrcpts=0,
proto=ESMTP, daemon=MTA, relay=server196.poundhost.com [127.0.0.1]
Jul 31 10:14:04 server196 sm-msp-queue[7262]: i6V57K6p005977:
i6V9E2pQ007262: DSN: User unknown
Jul 31 10:14:04 server196 sendmail[7278]: i6V9E2Yt007263: to=root,
delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32840, dsn=2.0.0,
stat=Sent
Jul 31 10:14:04 server196 sendmail[7263]: i6V9E2Yx007263: from=<>,
size=2650, class=0, nrcpts=1,
msgid=<200407310914.i6V9E2pQ007262server196.poundhost.com>, proto=ESMTP,
daemon=MTA, relay=server196.poundhost.com [127.0.0.1]
Jul 31 10:14:04 server196 sm-msp-queue[7262]: i6V9E2pQ007262: to=nobody,
delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31875, relay=[127.0.0.1]
[127.0.0.1], dsn=2.0.0, stat=Sent (i6V9E2Yx007263 Message accepted for
delivery)
Jul 31 10:14:04 server196 sendmail[7280]: i6V9E2Yx007263: to=root,
delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32878, dsn=2.0.0,
stat=Sent
Jul 31 10:14:33 server196 sendmail[7283]: i6V9EW36007283: from=nobody,
size=382, class=0, nrcpts=1,
msgid=<200407310914.i6V9EW36007283server196.poundhost.com>,
relay=nobodylocalhost
Jul 31 10:14:33 server196 sendmail[7285]: i6V9EXYP007285:
from=<nobodyserver196.poundhost.com>, size=623, class=0, nrcpts=1,
msgid=<200407310914.i6V9EW36007283server196.poundhost.com>, proto=ESMTP,
daemon=MTA, relay=server196.poundhost.com [127.0.0.1]
Jul 31 10:14:33 server196 sendmail[7283]: i6V9EW36007283: to=Ben Chivers
<ben.chivers53ntlworld.com>, ctladdr=nobody (99/99), delay=00:00:01,
xdelay=00:00:00, mailer=relay, pri=30170, relay=[127.0.0.1] [127.0.0.1],
dsn=2.0.0, stat=Sent (i6V9EXYP007285 Message accepted for delivery)
Jul 31 10:14:33 server196 sendmail[7288]: i6V9EXgM007288: from=nobody,
size=227, class=0, nrcpts=1,
msgid=<200407310914.i6V9EXgM007288server196.poundhost.com>,
relay=nobodylocalhost
Jul 31 10:14:33 server196 sendmail[7290]: i6V9EXYP007290:
<enquiriessuperhomepagespro.com>... User unknown
Jul 31 10:14:33 server196 sendmail[7288]: i6V9EXgM007288:
to=enquiriessuperhomepagespro.com, ctladdr=nobody (99/99), delay=00:00:00,
xdelay=00:00:00, mailer=relay, pri=30132, relay=[127.0.0.1] [127.0.0.1],
dsn=5.1.1, stat=User unknown
Jul 31 10:14:33 server196 sendmail[7290]: i6V9EXYP007290:
from=<nobodyserver196.poundhost.com>, size=227, class=0, nrcpts=0,
proto=ESMTP, daemon=MTA, relay=server196.poundhost.com [127.0.0.1]
Jul 31 10:14:33 server196 sendmail[7288]: i6V9EXgM007288: i6V9EXgN007288:
DSN: User unknown
Jul 31 10:14:33 server196 sendmail[7290]: i6V9EXYR007290: from=<>,
size=2298, class=0, nrcpts=1,
msgid=<200407310914.i6V9EXgN007288server196.poundhost.com>, proto=ESMTP,
daemon=MTA, relay=server196.poundhost.com [127.0.0.1]
Jul 31 10:14:33 server196 sendmail[7288]: i6V9EXgN007288: to=nobody,
delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31251, relay=[127.0.0.1]
[127.0.0.1], dsn=2.0.0, stat=Sent (i6V9EXYR007290 Message accepted for
delivery)
Jul 31 10:14:33 server196 sendmail[7291]: i6V9EXYR007290: to=root,
delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32526, dsn=2.0.0,
stat=Sent
Jul 31 10:14:36 server196 sendmail[7287]: i6V9EXYP007285:
to=<ben.chivers53ntlworld.com>, ctladdr=<nobodyserver196.poundhost.com>
(99/99), delay=00:00:03, xdelay=00:00:03, mailer=esmtp, pri=30411,
relay=smtpin.ntlworld.com. [62.253.162.40], dsn=2.0.0, stat=Sent (Message
received:
20040731091242.XNOP3857.mta07-svc.ntlworld.comserver196.poundhost.com)
Jul 31 10:16:28 server196 ipop3d[7296]: pop3 service init from 217.137.18.11
Jul 31 10:16:28 server196 ipop3d[7296]: Login
user=enquiries.superhomepagespro host=host217-137-18-11.no-dns-yet.ntli.net
[217.137.18.11] nmsgs=0/0
Jul 31 10:16:28 server196 ipop3d[7296]: Logout
user=enquiries.superhomepagespro host=host217-137-18-11.no-dns-yet.ntli.net
[217.137.18.11] nmsgs=0 ndele=0
Jul 31 10:16:29 server196 ipop3d[7297]: pop3 service init from 217.137.18.11
Jul 31 10:16:29 server196 ipop3d[7297]: Login user=enquiries.supersitespro
host=host217-137-18-11.no-dns-yet.ntli.net [217.137.18.11] nmsgs=0/0
Jul 31 10:16:29 server196 ipop3d[7297]: Logout user=enquiries.supersitespro
host=host217-137-18-11.no-dns-yet.ntli.net [217.137.18.11] nmsgs=0 ndele=0
Jul 31 10:16:30 server196 ipop3d[7298]: pop3 service init from 217.137.18.11
Jul 31 10:16:30 server196 ipop3d[7298]: Login user=billing.supersitespro
host=host217-137-18-11.no-dns-yet.ntli.net [217.137.18.11] nmsgs=0/0
Jul 31 10:16:30 server196 ipop3d[7298]: Logout user=billing.supersitespro
host=host217-137-18-11.no-dns-yet.ntli.net [217.137.18.11] nmsgs=0 ndele=0
Jul 31 10:16:31 server196 ipop3d[7299]: pop3 service init from 217.137.18.11
Jul 31 10:16:34 server196 ipop3d[7299]: Command stream end of file while
reading line user=support.hostingfusion
host=host217-137-18-11.no-dns-yet.ntli.net [217.137.18.11]
Jul 31 10:16:35 server196 ipop3d[7300]: pop3 service init from 217.137.18.11
Jul 31 10:16:39 server196 ipop3d[7300]: Command stream end of file while
reading line user=billing.hostingfusion
host=host217-137-18-11.no-dns-yet.ntli.net [217.137.18.11]
Jul 31 10:16:45 server196 ipop3d[7301]: pop3 service init from 217.137.18.11
Jul 31 10:16:49 server196 ipop3d[7301]: Command stream end of file while
reading line user=enquiries.hostingfusion
host=host217-137-18-11.no-dns-yet.ntli.net [217.137.18.11]
Jul 31 10:17:42 server196 ipop3d[7302]: pop3 service init from 217.137.18.11
Jul 31 10:17:42 server196 ipop3d[7302]: Login
user=enquiries.superhomepagespro host=host217-137-18-11.no-dns-yet.ntli.net
[217.137.18.11] nmsgs=0/0
Jul 31 10:17:42 server196 ipop3d[7302]: Logout
user=enquiries.superhomepagespro host=host217-137-18-11.no-dns-yet.ntli.net
[217.137.18.11] nmsgs=0 ndele=0
Jul 31 10:18:52 server196 sendmail[7305]: i6V9Iqe1007305: from=nobody,
size=1549, class=0, nrcpts=1,
msgid=<200407310918.i6V9Iqe1007305server196.poundhost.com>,
relay=nobodylocalhost
Jul 31 10:18:52 server196 sendmail[7307]: i6V9IqYP007307:
from=<nobodyserver196.poundhost.com>, size=1790, class=0, nrcpts=1,
msgid=<200407310918.i6V9Iqe1007305server196.poundhost.com>, proto=ESMTP,
daemon=MTA, relay=server196.poundhost.com [127.0.0.1]
Jul 31 10:18:52 server196 sendmail[7305]: i6V9Iqe1007305:
to=benacplus.co.uk, ctladdr=nobody (99/99), delay=00:00:00,
xdelay=00:00:00, mailer=relay, pri=30119, relay=[127.0.0.1] [127.0.0.1],
dsn=2.0.0, stat=Sent (i6V9IqYP007307 Message accepted for delivery)
Jul 31 10:18:52 server196 sendmail[7310]: i6V9Iqrp007310: from=nobody,
size=554, class=0, nrcpts=1,
msgid=<200407310918.i6V9Iqrp007310server196.poundhost.com>,
relay=nobodylocalhost
Jul 31 10:18:52 server196 sendmail[7312]: i6V9IqYP007312:
<enquiriessuperhomepagespro.com>... User unknown
Jul 31 10:18:52 server196 sendmail[7310]: i6V9Iqrp007310:
to=enquiriessuperhomepagespro.com, ctladdr=nobody (99/99), delay=00:00:00,
xdelay=00:00:00, mailer=relay, pri=30108, relay=[127.0.0.1] [127.0.0.1],
dsn=5.1.1, stat=User unknown
Jul 31 10:18:52 server196 sendmail[7312]: i6V9IqYP007312:
from=<nobodyserver196.poundhost.com>, size=554, class=0, nrcpts=0,
proto=ESMTP, daemon=MTA, relay=server196.poundhost.com [127.0.0.1]
Jul 31 10:18:52 server196 sendmail[7310]: i6V9Iqrp007310: i6V9Iqrq007310:
DSN: User unknown
Jul 31 10:18:52 server196 sendmail[7312]: i6V9IqYR007312: from=<>,
size=2625, class=0, nrcpts=1,
msgid=<200407310918.i6V9Iqrq007310server196.poundhost.com>, proto=ESMTP,
daemon=MTA, relay=server196.poundhost.com [127.0.0.1]
Jul 31 10:18:52 server196 sendmail[7310]: i6V9Iqrq007310: to=nobody,
delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31578, relay=[127.0.0.1]
[127.0.0.1], dsn=2.0.0, stat=Sent (i6V9IqYR007312 Message accepted for
delivery)
Jul 31 10:18:52 server196 sendmail[7313]: i6V9IqYR007312: to=root,
delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32853, dsn=2.0.0,
stat=Sent
Jul 31 10:18:54 server196 sendmail[7309]: i6V9IqYP007307:
to=<benacplus.co.uk>, ctladdr=<nobodyserver196.poundhost.com> (99/99),
delay=00:00:02, xdelay=00:00:02, mailer=esmtp, pri=30360,
relay=mailserver.acplus.co.uk. [213.171.216.117], dsn=5.1.1, stat=User
unknown
Jul 31 10:18:55 server196 sendmail[7309]: i6V9IqYP007307: i6V9ItYP007309:
DSN: User unknown
Jul 31 10:18:55 server196 sendmail[7309]: i6V9ItYP007309: to=root,
delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32814, dsn=2.0.0,
stat=Sent
Jul 31 10:19:41 server196 sendmail[7317]: i6V9JfsZ007317: from=nobody,
size=1569, class=0, nrcpts=1,
msgid=<200407310919.i6V9JfsZ007317server196.poundhost.com>,
relay=nobodylocalhost
Jul 31 10:19:41 server196 sendmail[7319]: i6V9JfYP007319:
from=<nobodyserver196.poundhost.com>, size=1810, class=0, nrcpts=1,
msgid=<200407310919.i6V9JfsZ007317server196.poundhost.com>, proto=ESMTP,
daemon=MTA, relay=server196.poundhost.com [127.0.0.1]
Jul 31 10:19:41 server196 sendmail[7317]: i6V9JfsZ007317:
to=ben.chivers53ntlworld.com, ctladdr=nobody (99/99), delay=00:00:00,
xdelay=00:00:00, mailer=relay, pri=30129, relay=[127.0.0.1] [127.0.0.1],
dsn=2.0.0, stat=Sent (i6V9JfYP007319 Message accepted for delivery)
Jul 31 10:19:41 server196 sendmail[7322]: i6V9JfXw007322: from=nobody,
size=574, class=0, nrcpts=1,
msgid=<200407310919.i6V9JfXw007322server196.poundhost.com>,
relay=nobodylocalhost
Jul 31 10:19:41 server196 sendmail[7324]: i6V9JfYP007324:
<enquiriessuperhomepagespro.com>... User unknown
Jul 31 10:19:41 server196 sendmail[7322]: i6V9JfXw007322:
to=enquiriessuperhomepagespro.com, ctladdr=nobody (99/99), delay=00:00:00,
xdelay=00:00:00, mailer=relay, pri=30118, relay=[127.0.0.1] [127.0.0.1],
dsn=5.1.1, stat=User unknown
Jul 31 10:19:41 server196 sendmail[7324]: i6V9JfYP007324:
from=<nobodyserver196.poundhost.com>, size=574, class=0, nrcpts=0,
proto=ESMTP, daemon=MTA, relay=server196.poundhost.com [127.0.0.1]
Jul 31 10:19:41 server196 sendmail[7322]: i6V9JfXw007322: i6V9JfXx007322:
DSN: User unknown
Jul 31 10:19:41 server196 sendmail[7324]: i6V9JfYR007324: from=<>,
size=2645, class=0, nrcpts=1,
msgid=<200407310919.i6V9JfXx007322server196.poundhost.com>, proto=ESMTP,
daemon=MTA, relay=server196.poundhost.com [127.0.0.1]
Jul 31 10:19:41 server196 sendmail[7322]: i6V9JfXx007322: to=nobody,
delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31598, relay=[127.0.0.1]
[127.0.0.1], dsn=2.0.0, stat=Sent (i6V9JfYR007324 Message accepted for
delivery)
Jul 31 10:19:41 server196 sendmail[7325]: i6V9JfYR007324: to=root,
delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32873, dsn=2.0.0,
stat=Sent
Jul 31 10:19:41 server196 sendmail[7321]: i6V9JfYP007319:
to=<ben.chivers53ntlworld.com>, ctladdr=<nobodyserver196.poundhost.com>
(99/99), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=30370,
relay=smtpin.ntlworld.com. [62.253.162.40], dsn=2.0.0, stat=Sent (Message
received:
20040731091613.XJBB14765.mta04-svc.ntlworld.comserver196.poundhost.com)
Jul 31 10:20:15 server196 sendmail[7328]: i6V9KEiI007328: from=nobody,
size=370, class=0, nrcpts=1,
msgid=<200407310920.i6V9KEiI007328server196.poundhost.com>,
relay=nobodylocalhost
Jul 31 10:20:15 server196 sendmail[7330]: i6V9KFYP007330:
from=<nobodyserver196.poundhost.com>, size=611, class=0, nrcpts=1,
msgid=<200407310920.i6V9KEiI007328server196.poundhost.com>, proto=ESMTP,
daemon=MTA, relay=server196.poundhost.com [127.0.0.1]
Jul 31 10:20:15 server196 sendmail[7328]: i6V9KEiI007328:
to=ben.chivers53ntlworld.com, ctladdr=nobody (99/99), delay=00:00:01,
xdelay=00:00:00, mailer=relay, pri=30129, relay=[127.0.0.1] [127.0.0.1],
dsn=2.0.0, stat=Sent (i6V9KFYP007330 Message accepted for delivery)
Jul 31 10:20:15 server196 sendmail[7332]: i6V9KFYP007330:
to=<ben.chivers53ntlworld.com>, ctladdr=<nobodyserver196.poundhost.com>
(99/99), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=30370,
relay=smtpin.ntlworld.com. [62.253.162.40], dsn=2.0.0, stat=Sent (Message
received:
20040731091645.WZIX28081.mta03-svc.ntlworld.comserver196.poundhost.com)

"Ben Chivers" <ben.chivers53ntlworld.com> wrote in message
news:20040731083512.34168.qmailpb1.pair.com...
> Hi,
>
> I am trying to send e-mail from using the mail function is PHP. My coding
> definitely works because I have tried it on other servers.
>
> I think it is to do with configuration of sendmail.
>
> The e-mail isn't sent using sendmail. Does anyone know how to get around
> this?
>
> I've got root access to my linux server which will allow me to edit the
> required files for sendmail.
>
> Any help would be most appreciated.
>
>
> Many Regards,
> Ben Chivers
>
>
> This is what me sendmail files looks like:
>
> divert(-1)dnl
> dnl #
> dnl # This is the sendmail macro config file for m4. If you make changes
to
> dnl # /etc/mail/sendmail.mc, you will need to regenerate the
> dnl # /etc/mail/sendmail.cf file by confirming that the sendmail-cf
package
> is
> dnl # installed and then performing a
> dnl #
> dnl # make -C /etc/mail
> dnl #
> include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
> VERSIONID(`setup for Red Hat Linux')dnl
> OSTYPE(`linux')dnl
> dnl #
> dnl # Uncomment and edit the following line if your outgoing mail needs to
> dnl # be sent out through an external mail server:
> dnl #
> dnl define(`SMART_HOST',`smtp.your.provider')
> dnl #
> define(`confDEF_USER_ID',``8:12'')dnl
> define(`confTRUSTED_USER', `smmsp')dnl
> dnl define(`confAUTO_REBUILD')dnl
> define(`confTO_CONNECT', `1m')dnl
> define(`confTRY_NULL_MX_LIST',true)dnl
> define(`confDONT_PROBE_INTERFACES',true)dnl
> define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
> define(`ALIAS_FILE', `/etc/aliases')dnl
> dnl define(`STATUS_FILE', `/etc/mail/statistics')dnl
> define(`UUCP_MAILER_MAX', `2000000')dnl
> define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
> define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
> define(`confAUTH_OPTIONS', `A')dnl
> dnl #
> dnl # The following allows relaying if the user authenticates, and
disallows
> dnl # plaintext authentication (PLAIN/LOGIN) on non-TLS links
> dnl #
> dnl #
> dnl # PLAIN is the preferred plaintext authentication method and used by
> dnl # Mozilla Mail and Evolution, though Outlook Express and other MUAs do
> dnl # use LOGIN. Other mechanisms should be used if the connection is not
> dnl # guaranteed secure.
> dnl #
> TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
> define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN
> PLAIN')dnl
> dnl #
> dnl # Rudimentary information on creating certificates for sendmail TLS:
> dnl # make -C /usr/share/ssl/certs usage
> dnl #
> dnl define(`confCACERT_PATH',`/usr/share/ssl/certs')
> dnl define(`confCACERT',`/usr/share/ssl/certs/ca-bundle.crt')
> dnl define(`confSERVER_CERT',`/usr/share/ssl/certs/sendmail.pem')
> dnl define(`confSERVER_KEY',`/usr/share/ssl/certs/sendmail.pem')
> dnl #
> dnl # This allows sendmail to use a keyfile that is shared with OpenLDAP's
> dnl # slapd, which requires the file to be readble by group ldap
> dnl #
> dnl define(`confDONT_BLAME_SENDMAIL',`groupreadablekeyfile')dnl
> dnl #
> dnl define(`confTO_QUEUEWARN', `4h')dnl
> dnl define(`confTO_QUEUERETURN', `5d')dnl
> dnl define(`confQUEUE_LA', `12')dnl
> dnl define(`confREFUSE_LA', `18')dnl
> define(`confTO_IDENT', `0')dnl
> dnl FEATURE(delay_checks)dnl
> FEATURE(`no_default_msa',`dnl')dnl
> FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
> FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
> FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
> FEATURE(redirect)dnl
> FEATURE(always_add_domain)dnl
> FEATURE(use_cw_file)dnl
> FEATURE(use_ct_file)dnl
> FEATURE(`relay_entire_domain')dnl
> dnl #
> dnl # The -t option will retry delivery if e.g. the user runs over his
> quota.
> dnl #
> FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl
> FEATURE(`access_db',`hash -T<TMPF> -o /etc/mail/access.db')dnl
> FEATURE(`blacklist_recipients')dnl
> EXPOSED_USER(`root')dnl
> dnl #
> dnl # The following causes sendmail to only listen on the IPv4 loopback
> address
> dnl # 127.0.0.1 and not on any other network devices. Remove the loopback
> dnl # address restriction to accept email from the internet or intranet.
> dnl #
> DAEMON_OPTIONS(`Port=smtp,Name=MTA')dnl
> dnl #
> dnl # The following causes sendmail to additionally listen to port 587 for
> dnl # mail from MUAs that authenticate. Roaming users who can't reach
their
> dnl # preferred sendmail daemon due to port 25 being blocked or redirected
> find
> dnl # this useful.
> dnl #
> dnl DAEMON_OPTIONS(`Port=submission, Name=MSA, M=Ea')dnl
> dnl #
> dnl # The following causes sendmail to additionally listen to port 465,
but
> dnl # starting immediately in TLS mode upon connecting. Port 25 or 587
> followed
> dnl # by STARTTLS is preferred, but roaming clients using Outlook Express
> can't
> dnl # do STARTTLS on ports other than 25. Mozilla Mail can ONLY use
STARTTLS
> dnl # and doesn't support the deprecated smtps; Evolution <1.1.1 uses
smtps
> dnl # when SSL is enabled-- STARTTLS support is available in version
1.1.1.
> dnl #
> dnl # For this to work your OpenSSL certificates must be configured.
> dnl #
> dnl DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA, M=s')dnl
> dnl #
> dnl # The following causes sendmail to additionally listen on the IPv6
> loopback
> dnl # device. Remove the loopback address restriction listen to the
network.
> dnl #
> dnl # NOTE: binding both IPv4 and IPv6 daemon to the same port requires
> dnl # a kernel patch
> dnl #
> dnl DAEMON_OPTIONS(`port=smtp,Addr=::1, Name=MTA-v6, Family=inet6')dnl
> dnl #
> dnl # We strongly recommend not accepting unresolvable domains if you want
> to
> dnl # protect yourself from spam. However, the laptop and users on
computers
> dnl # that do not have 24x7 DNS do need this.
> dnl #
> dnl #
> dnl #
> dnl # Also accept email sent to "localhost.localdomain" as local email.
> dnl #
> LOCAL_DOMAIN(`localhost.localdomain')dnl
> dnl #
> dnl # The following example makes mail from this host and any additional
> dnl # specified domains appear to be sent from mydomain.com
> dnl #
> dnl MASQUERADE_AS(`mydomain.com')dnl
> dnl #
> dnl # masquerade not just the headers, but the envelope as well
> dnl #
> dnl FEATURE(masquerade_envelope)dnl
> dnl #
> dnl # masquerade not just mydomainalias.com, but *.mydomainalias.com as
> well
> dnl #
> dnl FEATURE(masquerade_entire_domain)dnl
> dnl #
> dnl MASQUERADE_DOMAIN(localhost)dnl
> dnl MASQUERADE_DOMAIN(localhost.localdomain)dnl
> dnl MASQUERADE_DOMAIN(mydomainalias.com)dnl
> dnl MASQUERADE_DOMAIN(mydomain.lan)dnl
> MAILER(smtp)dnl
> MAILER(procmail)dnl

attached mail follows:


On Saturday 31 July 2004 17:19, Ben Chivers wrote:

Please trim your posts!! Posting your sendmail.cf TWICE does not help
anyone (least of all you, because you'll be annoying the hell out of a lot
people).

> Here are the last few lines of my error log:

What I mean is: have you looked at your mail logs to see whether your mail was
submitted into the queue. If it was put into the queue, then it becomes a
sendmail issue and thus OT for this list. If you don't know how to interpret
the mail logs then refer to some appropriate sendmail site/docs.

--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
"Cogito ergo I'm right and you're wrong."
-- Blair Houghton
*/

attached mail follows:


My IHP, Netset, currently went into what I think is Chapter 7.
I was stuck without a host for my messageboard..
Someone steps in and offers me a host.. cool.. I have a SQL dump..

I install phpBB, I import the data, I go to log in...
I get a zero sized response from apache!
Check the error logs.. nothing..
Check the hit logs.. nothing..

Now the person who runs this host tells me that he runs several other
sites with phpBB and has no problems, which would make me think it's the
data in my SQL dump. The problem with this idea is I can run the same
dump on local test systems and it works just fine.

Regardless, if there were some error, then I assume PHP/Apache should
log something in the standard error log, and the hit should still
register in access logs..

Would seem to me, if hit is not being logged, that apache php module is
crashing?

Does this sound familiar to anyone?
Is it a known bug?
Do I need to get host to update some stuff?

httpd -V output:

Server version: Apache/1.3.31 (Unix)
Server built: Jul 8 2004 11:56:38
Server's Module Magic Number: 19990320:16
Server compiled with....
 -D EAPI
 -D HAVE_MMAP
 -D HAVE_SHMGET
 -D USE_SHMGET_SCOREBOARD
 -D USE_MMAP_FILES
 -D HAVE_FCNTL_SERIALIZED_ACCEPT
 -D HAVE_SYSVSEM_SERIALIZED_ACCEPT
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D DYNAMIC_MODULE_LIMIT=64
 -D HARD_SERVER_LIMIT=2048
 -D HTTPD_ROOT="/usr/local/apache"
 -D SUEXEC_BIN="/usr/local/apache/bin/suexec"
 -D DEFAULT_PIDLOG="logs/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/httpd.scoreboard"
 -D DEFAULT_LOCKFILE="logs/httpd.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"
 -D ACCESS_CONFIG_FILE="conf/access.conf"
 -D RESOURCE_CONFIG_FILE="conf/srm.conf"

phpInfo() output (less a few identifying items):

PHP Version 4.3.7
Configure Command './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-xml' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--enable-magic-quotes' '--with-mysql=/usr' '--enable-discard-path' '--with-pear' '--enable-sockets' '--enable-track-vars' '--enable-versioning' '--with-zlib'
Server API Apache
Virtual Directory Support disabled
Configuration File (php.ini) Path /usr/local/Zend/etc/php.ini
PHP API 20020918
PHP Extension 20020429
Zend Extension 20021010
Debug Build no
Thread Safety disabled
Registered PHP Streams php, http, ftp, compress.zlib
Directive Local Value Master Value
allow_call_time_pass_reference On On
allow_url_fopen On On
always_populate_raw_post_data Off Off
arg_separator.input & &
arg_separator.output & &
asp_tags Off Off
auto_append_file no value no value
auto_prepend_file no value no value
browscap no value no value
default_charset no value no value
default_mimetype text/html text/html
define_syslog_variables Off Off
disable_classes no value no value
disable_functions no value no value
display_errors On On
display_startup_errors Off Off
doc_root no value no value
docref_ext no value no value
docref_root no value no value
enable_dl On On
error_append_string no value no value
error_log error_log error_log
error_prepend_string no value no value
error_reporting 2039 2039
expose_php On On
extension_dir ./ ./
file_uploads On On
gpc_order GPC GPC
highlight.bg #FFFFFF #FFFFFF
highlight.comment #FF8000 #FF8000
highlight.default #0000BB #0000BB
highlight.html #000000 #000000
highlight.keyword #007700 #007700
highlight.string #DD0000 #DD0000
html_errors On On
ignore_repeated_errors Off Off
ignore_repeated_source Off Off
ignore_user_abort Off Off
implicit_flush Off Off
include_path .:/usr/lib/php:/usr/local/lib/php .:/usr/lib/php:/usr/local/lib/php
log_errors On On
log_errors_max_len 1024 1024
magic_quotes_gpc On On
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
max_execution_time 30 30
max_input_time -1 -1
open_basedir no value no value
output_buffering no value no value
output_handler no value no value
post_max_size 55M 55M
precision 14 14
register_argc_argv On On
register_globals On On
report_memleaks On On
safe_mode Off Off
safe_mode_exec_dir no value no value
safe_mode_gid Off Off
safe_mode_include_dir no value no value
sendmail_from no value no value
sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
serialize_precision 100 100
short_open_tag On On
SMTP localhost localhost
smtp_port 25 25
sql.safe_mode Off Off
track_errors Off Off
unserialize_callback_func no value no value
upload_max_filesize 2M 2M
upload_tmp_dir no value no value
user_dir no value no value
variables_order EGPCS EGPCS
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
y2k_compliance Off Off

Zend Optimizer
Optimization Pass 1 enabled
Optimization Pass 2 enabled
Optimization Pass 3 enabled
Optimization Pass 4 enabled
Optimization Pass 5 disabled
Optimization Pass 9 disabled
Optimization Pass 10 disabled
Zend Loader enabled
License Path no value

apache
APACHE_INCLUDE no value
APACHE_TARGET no value
Apache Version Apache/1.3.31 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.7 FrontPage/5.0.2.2634a mod_ssl/2.8.18 OpenSSL/0.9.7a
Apache Release 10331100
Apache API Version 19990320
User/Group nobody(99)/99
Max Requests Per Child: 0 - Keep Alive: on - Max Per Connection: 100
Timeouts Connection: 300 - Keep-Alive: 15
Server Root /usr/local/apache
Loaded Modules mod_auth_passthrough, mod_log_bytes, mod_bwlimited, mod_php4, mod_frontpage, mod_ssl, mod_setenvif, mod_so, mod_auth, mod_access, mod_rewrite, mod_alias, mod_userdir, mod_actions, mod_imap, mod_asis, mod_cgi, mod_dir, mod_autoindex, mod_include, mod_status, mod_negotiation, mod_mime, mod_log_config, mod_env, http_core

Directive Local Value Master Value
child_terminate 0 0
engine 1 1
last_modified 0 0
xbithack 0 0

Apache Environment
Variable Value
HTTP_ACCEPT text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
HTTP_ACCEPT_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENCODING gzip, deflate, compress;q=0.9
HTTP_ACCEPT_LANGUAGE en-GB,en;q=0.7,fr;q=0.3
HTTP_CONNECTION keep-alive
HTTP_KEEP_ALIVE 300
HTTP_USER_AGENT Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.1) Gecko/20040715 Galeon/1.3.16 (Debian package 1.3.16-1)
PATH /bin:/usr/bin:/usr/ucb:/usr/bsd:/usr/local/bin
REMOTE_PORT 34308
SERVER_PORT 80
SERVER_SOFTWARE Apache/1.3.31 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.7 FrontPage/5.0.2.2634a mod_ssl/2.8.18 OpenSSL/0.9.7a
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING no value
REQUEST_URI /test.php
SCRIPT_NAME /test.php

HTTP Headers Information
HTTP Request Headers
HTTP Request GET /test.php HTTP/1.1
Accept text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept-Encoding gzip, deflate, compress;q=0.9
Accept-Language en-GB,en;q=0.7,fr;q=0.3
Connection keep-alive
Keep-Alive 300
User-Agent Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.1) Gecko/20040715 Galeon/1.3.16 (Debian package 1.3.16-1)
HTTP Response Headers
X-Powered-By PHP/4.3.7
Keep-Alive timeout=15, max=100
Connection Keep-Alive
Transfer-Encoding chunked
Content-Type text/html

bcmath
BCMath support enabled

calendar
Calendar support enabled

ctype
ctype functions enabled

ftp
FTP support enabled

gd
GD Support enabled
GD Version bundled (2.0.23 compatible)
GIF Read Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled

mysql
MySQL Support enabled
Active Persistent Links 0
Active Links 0
Client API version 4.0.20
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient

Directive Local Value Master Value
mysql.allow_persistent On On
mysql.connect_timeout 60 60
mysql.default_host no value no value
mysql.default_password no value no value
mysql.default_port no value no value
mysql.default_socket no value no value
mysql.default_user no value no value
mysql.max_links Unlimited Unlimited
mysql.max_persistent Unlimited Unlimited
mysql.trace_mode Off Off

overload
User-Space Object Overloading Support enabled

pcre
PCRE (Perl Compatible Regular Expressions) Support enabled
PCRE Library Version 4.5 01-December-2003

posix
Revision $Revision: 1.51.2.2 $

session
Session Support enabled
Registered save handlers files user

Directive Local Value Master Value
session.auto_start Off Off
session.bug_compat_42 On On
session.bug_compat_warn On On
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_divisor 100 100
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /tmp /tmp
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid On On

sockets
Sockets Support enabled

standard
Regex Library Bundled library enabled
Dynamic Library Support enabled
Path to sendmail /usr/sbin/sendmail -t -i

Directive Local Value Master Value
assert.active 1 1
assert.bail 0 0
assert.callback no value no value
assert.quiet_eval 0 0
assert.warning 1 1
auto_detect_line_endings 0 0
default_socket_timeout 60 60
safe_mode_allowed_env_vars PHP_ PHP_
safe_mode_protected_env_vars LD_LIBRARY_PATH LD_LIBRARY_PATH
url_rewriter.tags a=href,area=href,frame=src,form=,fieldset= a=href,area=href,frame=src,form=,fieldset=
user_agent no value no value

tokenizer
Tokenizer Support enabled

xml
XML Support active
XML Namespace Support active
EXPAT Version 1.95.6

zlib
ZLib Support enabled
Compiled Version 1.1.4
Linked Version 1.1.4

Directive Local Value Master Value
zlib.output_compression Off Off
zlib.output_compression_level -1 -1
zlib.output_handler no value no value

Additional Modules
Module Name

Environment
Variable Value
PWD /
SHLVL 2
_ /usr/local/apache/bin/httpd

PHP Variables
Variable Value
PHP_SELF /test.php
_SERVER["HTTP_ACCEPT"] text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
_SERVER["HTTP_ACCEPT_CHARSET"] ISO-8859-1,utf-8;q=0.7,*;q=0.7
_SERVER["HTTP_ACCEPT_ENCODING"] gzip, deflate, compress;q=0.9
_SERVER["HTTP_ACCEPT_LANGUAGE"] en-GB,en;q=0.7,fr;q=0.3
_SERVER["HTTP_CONNECTION"] keep-alive
_SERVER["HTTP_KEEP_ALIVE"] 300
_SERVER["HTTP_USER_AGENT"] Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.1) Gecko/20040715 Galeon/1.3.16 (Debian package 1.3.16-1)
_SERVER["PATH"] /bin:/usr/bin:/usr/ucb:/usr/bsd:/usr/local/bin
_SERVER["REMOTE_PORT"] 34308
_SERVER["GATEWAY_INTERFACE"] CGI/1.1
_SERVER["SERVER_PROTOCOL"] HTTP/1.1
_SERVER["REQUEST_METHOD"] GET
_SERVER["QUERY_STRING"] no value
_SERVER["REQUEST_URI"] /test.php
_SERVER["SCRIPT_NAME"] /test.php
_SERVER["argv"]

Array
(
)

_SERVER["argc"] 0
_ENV["PWD"] /
_ENV["SHLVL"] 2
_ENV["_"] /usr/local/apache/bin/httpd