Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

550-unrouteable mail domain "wrong_subdomain.foo.com"

Status
Not open for further replies.

cadbilbao

Programmer
Apr 9, 2001
233
ES
Hello.

I'm trying to send mails via PHP, but it does not work.
So I tried to send one mail by using shell:
---------------------------------------
# sendmail -oi -v me@email.com <<END
> subject: test
>
> test
> END
-----------------------------------------

and I get this error message:
------------------------------------------
>>> MAIL From:<root@wrong_subdomain.foo.com> SIZE=19
250 OK
>>> RCPT To:<me@email.com>
550-Verification failed for <root@wrong_subdomain.foo.com>
550-unrouteable mail domain &quot;wrong_subdomain.foo.com&quot;
550 Sender verify failed
---------------------------------------------

In fact, wrong_subdomain.foo.com does not exist, but I
created it artificially when installing my Linux box, so
sendmail got it.

Is there any way to configure sendmail with another domain?
I was checking '/usr/share/sendmail-cf/cf' directory but
I did not find anything.

Any experience? Thank you very much.
 
Without an address that will resolve to your machine, sendmail will not and cannot send mail. However, if your hostname (machine name) was for example, myserver, then sendmail would append your network name which in most cases is your isp's domain i.e &quot;myserver.myisp.net&quot;. This brings up a couple problems. First, your isp's webserver will not have that address defined as a subdomain hence will not be served. Second, there will be no MX record for that subdomain so it will be an invalid e-mail address. The e-mail address you@myserver.myisp.net would be acceptable by sendmail but would be rejected by most mail servers who accept mail based on &quot;MX&quot;. You have a couple options. Spend $8.00 and get your own domain from godaddy.com or have your php script use smtp instead of sendmail. The difference is that if it uses sendmail directly, it works as if it were using the command line. If it's using the smtp method, it sends the e-mail just as Outlook Express would and uses whatever e-mail account you provide.
 
Thank you very much for your question.

'wrong_subdomain.foo.com' does not exist. So I've got 2 options:

1) Make it be a valid address. I have no access to configure MX settings on my DNS server.
2) Change it into 'right_subdomain.foo.com' (this domain DOES exist). But I do not know how to configure sendmail. How can I modify it?.

The server's name is 'wrong_subdomain.foo.com' (so 'sendmail' is set with it) and 'right_subdomain.foo.com' exists.

Any idea? Thank you very much.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top