troubleshooting Question

PHP Mail getting blocked from our Exchange Server

Avatar of Clayton Pruett
Clayton PruettFlag for United States of America asked on
PHPExchangeEmail Servers
6 Comments1 Solution1518 ViewsLast Modified:
Hopefully this will be a easy one someone can help me with.

MS Windows Server 2003 R2
Enterprise x64 Edition SP2
Exchange 2007 Standard Edition.

Awhile back, the company I work for, hired a third party vendor to complely redesign our website.  They set up a contact page, and on this contact page is a form to fill out to ask whatever questions the customer may want to submit.  When the customer hits submit, it sends all the information to  I set up a distribution address on our Exchange server called and added a few users who would be answering those emails.

For testing purposes I added my name to the distribution list ( The problem is, when I send a message using the contact form on the website, the information never makes it to  I've searched through the message tracking logs on exchange and I do not see anywhere in there that it made it to the exchange server. I also checked our GFI Mail Security Suite and there is no trace of it ever getting caught up there either.  I know that works because I can send a email from a personal gmail account and everyone on the distribution list receives it.  I also know that the contact form works as well.  I had the website developer add my personal gmail account, and yahoo account and I received it at both accounts.  So the problem lies on my side of the network.  

I emailed the website guys to ask them how the webserver was sending the mail and this is the response I received back.

We're using PHP Mail() function

$response = mail(implode(',',$to_address), $email_subject, $email_message, $headers);

Since it seems to work at any account outside of our exchange accounts, here is what I get to my gmail account when I go to "show original" inside the message.

Received: by with SMTP id g10csp161106vce;
        Thu, 15 Mar 2012 05:11:32 -0700 (PDT)
Received: by with SMTP id vh5mr16567807igb.4.1331813492137;
        Thu, 15 Mar 2012 05:11:32 -0700 (PDT)
Return-Path: <>
Received: from ( [])
        by with ESMTPS id d20si1730483igv.73.2012.
        (version=TLSv1/SSLv3 cipher=OTHER);
        Thu, 15 Mar 2012 05:11:32 -0700 (PDT)
Received-SPF: pass ( best guess record for domain of designates as permitted sender) client-ip=;
Authentication-Results:; spf=pass ( best guess record for domain of designates as permitted sender)
Received: (qmail 30110 invoked by uid 48); 15 Mar 2012 08:21:41 -0400
Date: 15 Mar 2012 08:21:41 -0400
Message-ID: <>
Subject: Contact Us Submission
From: Company Website <>
Content-Type: text/html;charset="iso-8859-1"

name: blah<br>
telephone: 5555555555<br>
comment: testing the form<br>

Anyone have any ideas on things I can look at to see why this is never hitting our exchange server?


Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 6 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros