[PHP] Mail() Problems in a heterogenous network

2001-02-26 Thread Parker, John (Snorkel)

Ok.  Here's the situation:

I'm running PHP on a Unix (SGI) box with Apache as a module running an
Intranet web server (call it inside.mydomain.com).  Sendmail is running on
the machine.  I'm on a network with a windows Mail server (MS. Exchange 5.5)
with (I'm told) appropriate SMTP services running (call it
mail.mydomain.com).  

I'm using a mail class I downloaded from somewhere, which basically calls
PHP's mail funciton.

The behaviour is this:  When I send mail from the webserver (running as
[EMAIL PROTECTED]) to an inside address (same domain, i.e.
[EMAIL PROTECTED]) I get everything just fine.  I can even use the from
feature in the mail class to make the mail appear to come from a real (or
not so real, I've tried [EMAIL PROTECTED] and it takes it just fine) address.
However, when I send mail to an outside address, i.e. [EMAIL PROTECTED], it
gets dropped somewhere.  Unfortunately those running the mailserver are
unable/unwilling to help me track this down, so I've got to come to you guys
with limited information and hope you have an answer.  If it helps, here's
the header of a message sent from inside.mydomain.com to an inside address.
Thanks in advance.

Received: from sneasv02.omniquip.textron.com
(insidesnorkel.omniquip.textron.com [10.220.15.149]) by
oqamapw1ab.omniquip.textron.com with SMTP (Microsoft Exchange Internet Mail
Service Version 5.5.2650.21)
id 14MPSVVH; Sat, 24 Feb 2001 11:18:24 -0600
Received: (from nobody@localhost) by sneasv02.omniquip.textron.com
(980427.SGI.8.8.8/970903.SGI.AUTOCF) id LAA42386; Sat, 24 Feb 2001 11:13:51
-0600 (CST)
Date: Sat, 24 Feb 2001 11:13:51 -0600 (CST)
Message-Id: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: You\'ve been very good
From: [EMAIL PROTECTED]
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary = b0c7d5a8cfe35ac094237730d7b4e46d6
...
...
..

John Parker


---
John Parker, Senior Design Engineer
Ph: 816/676-6419
Fax: 785/989-3556


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Mail() Problems in a heterogenous network

2001-02-26 Thread Kelly Corkill


Sounds like they have relay disabled on their SMTP server and the IP that
your PHP is running on is not on an included network address. As them to
verify that your ip address is ok.

The mail server will accept locally destined mail but anything else is seen
as a relay attempt (Spam) and blocked. In most cases ISPs and admins reject
with complaint (which would help considerably in your case), in others they
reject transparently by routing to /dev/null.


On Mon, 26 Feb 2001, Parker, John (Snorkel) wrote:

 Date: Mon, 26 Feb 2001 16:02:32 -0600
 From: "Parker, John (Snorkel)" [EMAIL PROTECTED]
 To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED]
 Subject: [PHP] Mail()  Problems in a heterogenous network
 
 Ok.  Here's the situation:
 
 I'm running PHP on a Unix (SGI) box with Apache as a module running an
 Intranet web server (call it inside.mydomain.com).  Sendmail is running on
 the machine.  I'm on a network with a windows Mail server (MS. Exchange 5.5)
 with (I'm told) appropriate SMTP services running (call it
 mail.mydomain.com).  
 
 I'm using a mail class I downloaded from somewhere, which basically calls
 PHP's mail funciton.
 
 The behaviour is this:  When I send mail from the webserver (running as
 [EMAIL PROTECTED]) to an inside address (same domain, i.e.
 [EMAIL PROTECTED]) I get everything just fine.  I can even use the from
 feature in the mail class to make the mail appear to come from a real (or
 not so real, I've tried [EMAIL PROTECTED] and it takes it just fine) address.
 However, when I send mail to an outside address, i.e. [EMAIL PROTECTED], it
 gets dropped somewhere.  Unfortunately those running the mailserver are
 unable/unwilling to help me track this down, so I've got to come to you guys
 with limited information and hope you have an answer.  If it helps, here's
 the header of a message sent from inside.mydomain.com to an inside address.
 Thanks in advance.
 
 Received: from sneasv02.omniquip.textron.com
 (insidesnorkel.omniquip.textron.com [10.220.15.149]) by
 oqamapw1ab.omniquip.textron.com with SMTP (Microsoft Exchange Internet Mail
 Service Version 5.5.2650.21)
   id 14MPSVVH; Sat, 24 Feb 2001 11:18:24 -0600
 Received: (from nobody@localhost) by sneasv02.omniquip.textron.com
 (980427.SGI.8.8.8/970903.SGI.AUTOCF) id LAA42386; Sat, 24 Feb 2001 11:13:51
 -0600 (CST)
 Date: Sat, 24 Feb 2001 11:13:51 -0600 (CST)
 Message-Id: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: You\'ve been very good
 From: [EMAIL PROTECTED]
 MIME-Version: 1.0
 Content-Type: multipart/mixed; boundary = b0c7d5a8cfe35ac094237730d7b4e46d6
 ...
 ...
 ..
 
 John Parker
 
 
 ---
 John Parker, Senior Design Engineer
 Ph: 816/676-6419
 Fax: 785/989-3556
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 

Kelly

303-444-1671
Boulder, Colorado



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Mail() Problems in a heterogenous network

2001-02-26 Thread php3

Addressed to: "Parker, John (Snorkel)" [EMAIL PROTECTED]
  "'[EMAIL PROTECTED]'" [EMAIL PROTECTED]

** Reply to note from "Parker, John (Snorkel)" [EMAIL PROTECTED] Mon, 26 
Feb 2001 16:02:32 -0600

 The behaviour is this:  When I send mail from the webserver (running as
 [EMAIL PROTECTED]) to an inside address (same domain, i.e.
 [EMAIL PROTECTED]) I get everything just fine.  I can even use the from
 feature in the mail class to make the mail appear to come from a real (or
 not so real, I've tried [EMAIL PROTECTED] and it takes it just fine) address.
 However, when I send mail to an outside address, i.e. [EMAIL PROTECTED], it
 gets dropped somewhere.

What gets dropped?

  The entire message - See the message from Kelly Corkill

  Just the From info - read on.

 Unfortunately those running the mailserver are
 unable/unwilling to help me track this down,

Probably unable.  Windows is Easy, that means you don't have to know
anything to admin it.  At least till something unusual happens.


 Received: from sneasv02.omniquip.textron.com
 (insidesnorkel.omniquip.textron.com [10.220.15.149]) by
 oqamapw1ab.omniquip.textron.com with SMTP (Microsoft Exchange Internet Mail
 Service Version 5.5.2650.21)
   id 14MPSVVH; Sat, 24 Feb 2001 11:18:24 -0600
 Received: (from nobody@localhost) by sneasv02.omniquip.textron.com
 (980427.SGI.8.8.8/970903.SGI.AUTOCF) id LAA42386; Sat, 24 Feb 2001 11:13:51
 -0600 (CST)

Take a look at the headers on an internal message.  I bet you find some
additional headers like: From: and Reply To: that are being stripped by
the mail server.

Can you load sendmail or qmail on your UNIX box and bypass them.  You
don't have to handle incoming email, and you don't want the machine
listening on port 25, but you may be able to have your own machine
handle mail connections and bypass them entirely.




Rick Widmer
Internet Marketing Specialists
http://www.developersdesk.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]