Solved

How do I resolve the 553 sender is spoofed error when sending email from PHP to exchange?

Posted on 2009-05-03
3
1,253 Views
Last Modified: 2013-12-13
Hello!  We currently have a linux web server running cpanel with php at a remote location.  We recently installed an ms exchange 2007 server in our internal network which is protected by websense proxy.  On cpanel, I changed the A record for the MX entry to point to the exchange server's IP address and added the domain to the remotedomains file and removed from localdomains on the webserver and unchecked the box for always accept mail locally.  Lastly, we created a PTR (reverse DNS) record for exchange and the webserver IP addresses.

We have approximately 6 domains that will use exchange for mail.

Everything works fine except when I use PHP's mail() function from a web page to send email to and email address on exchange.  Each time I get a mail delivery failed message indicating 553: sender is spoofed.  I have googled for hours and came up with nothing.  Can anyone advise?  It is critical that the webpages be able to send email to an address on exchange as the webpages have contact forms on them.

I have tried the phpmailer script from sourceforge, tried Matt's formmail script, and even added the webserver IP to the exchange whitelist.  All to no avail.
0
Comment
Question by:bigeven2002
  • 2
3 Comments
 
LVL 17

Accepted Solution

by:
Suraj earned 500 total points
ID: 24299488
On the Domain disable "Anti-Spoofing".

Server Configuration console --> E-mail Connection Management--> Protected
Domains--> Advanced--> "Deny messages with spoofed From addresses". Unselect this
option.

This might help you...

also enable the protocol logging to VERBOS  on the send and receive connector.
restart the transport service
let me know the results
0
 
LVL 17

Author Comment

by:bigeven2002
ID: 24306381
Ok I'm on Exchange Management Console: I see Server Configuration but I don't see E-mail Connection Management under it.  Could you clarify?
0
 
LVL 17

Author Comment

by:bigeven2002
ID: 24318340
Sorry I didn't realize you were talking about Websense in the steps you mentioned.  I did verify that the box for deny messages with spoofed addresses was unchecked, but it had no effect.

I did manage to get it to work to an extent though, what I had to do was create a new SMTP receive connector in Exchange management console that pointed to the webserver's public IP address.  Then the mail finally went through.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
Read this checklist to learn more about the 15 things you should never include in an email signature.
In this video we show how to create an email address policy in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Mail Flow…
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

822 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question