We help IT Professionals succeed at work.
Get Started

sendmail not working

tonelm54 asked
Last Modified: 2012-05-11
Good afternoon,
I have been trying to setup sendmail to work with PHP, but cannot seem to get it working correctly.

What Im trying to do is configure sendmail to relay all emails through another SMTP server on my network, I have downloaded and installed sendmail correctly (I belive), and configured it to send mail through my SMTP server, however when I try and do the command at the terminal "sendmail test@mydomain.com" I get no error, but in my mailbox (on the server) I get:-

The original message was received at Tue, 17 May 2011 15:33:37 +0100
from localhost []

   ----- The following addresses had permanent fatal errors -----
    (reason: 550 Host unknown)

   ----- Transcript of session follows -----
550 5.1.2 <email@tonycross.me.uk>... Host unknown (Name server: host
not found)

Open in new window

If I try and telnet to on port 25 from the server, everything responds correctly.

What Im trying to do is get sendmail working at the command line at first, then fugure out why my php.ini doesnt work.

Im not really sure what I can upload to get any help with this, obviously its my onfiguration thats the issue, but not sure where the configuration file is to email you.

Any help would be appriciated.

Thank you
Watch Question
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE