Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have two servers as to which one is hosting my company's email. The other one hosts a website where i have php scripts that sends mail to my mail server. When ever i send an email i get

550-Verification failed for <[email protected]>
550-The mail server could not deliver mail to [email protected]  
The account or domain may not exist, they may be blacklisted, or missing the proper dns entries.
550 Sender verify failed
2013-05-31 10:12:41 1UiKS0-0006Vv-OQ Completed

The problem is i know that email account exists on our mail server and the weird thing is, if i send mail to my personal email account then it goes through without an issue. What could be the problem

Please note. [email protected] is an alias for the server im sending from

I ran exim -bt [email protected] and it returns

[email protected]
  router = lookuphost, transport = remote_smtp
  host mailServer.com [x.x.x.x] MX=0

Please help

To the people that will understand this is the php headers that i use in the mail. Its still not working even then

    $header .= "From: Uninstall <[email protected]>\r\n";
    $header .= "Reply-To: [email protected]\r\n";
    $header .= "Return-Path: [email protected]\r\n";
    $header .= "Organization: Valid Company\r\n";
    $header .= "Content-Type: text/html\r\n"; 

Its still sending it as [email protected]

share|improve this question
    
I fixed this issue by adding -f <emailaddress> parameter in my sendmail_path parameter in php.ini file –  Ryan May 31 '13 at 13:26
add comment

1 Answer

up vote 1 down vote accepted

The destination server is trying to verify that the sender's address ([email protected]) is a deliverable address before it accepts your message. To do this, it connects to one of the server.com MX servers (or server.com itself if there are now MXs) and pretends to send an email to that address. If [email protected] is undeliverable, your message will be discarded because it's been sent from an apparently invalid address.

If you know that [email protected] really is valid, it might be worth looking at the logs on the servers that handle server.com mail and see what happened when delivery was attempted.

share|improve this answer
    
this is what the recipient server says in the log files. 2013-05-31 10:12:40 H=ns1.dns.com (server.com) [x.x.x.x]:38714 F=<[email protected]> rejected RCPT <[email protected]>: Sender verify failed –  Ryan May 31 '13 at 8:59
    
dns.com being my sending servers dns server.com being the server im sending from [email protected] being the failed email address –  Ryan May 31 '13 at 9:01
    
So is [email protected] a real, deliverable address? –  Flup May 31 '13 at 9:11
    
No its not but how do i change that? Because that was my first suspicion –  Ryan May 31 '13 at 9:41
1  
You'll have to change your php scripts such that the email appears to come from a valid user. Your mailserver is rejecting mail that doesn't come from an address that can receive mail. –  Flup May 31 '13 at 9:42
show 4 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.