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,352 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to update GAL in O365? 4 33
office 365 5 41
Antivirus software for Exchange Mail servers 13 81
Office 365 adding a domain 3 36
This article explains how to install and use the NTBackup utility that comes with Windows Server.
After hours on line I found a solution which pointed to the inherited Active Directory permissions . You have to give/allow permissions to the "Exchange trusted subsystem" for the user in the Active Directory...
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

739 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