Sendmail says: stat=Deferred: Connection reset

I have been struggling with this problem for the last 2 days and finally figured out the solution. Your mileage may vary depending on your network configuration but first some background on mine. I have a Lighttpd web server that i am running some PHP mail scripts on. We are trying to use our company’s MTA to relay messages so i had this line in the sendmail.cf file, with 10.0.0.116 being the IP address of our MTA.

define(`SMART_HOST', `10.0.0.116')dnl

Still, things didn’t seem to want to work. My network administrator wasn’t evening seeing the mail attempts on our mail server so the problem was definitely on the webserver.
Turns out (as these things often are) that it was a dumb syntax problem. The following change fixed everything:

define(`SMART_HOST', `[10.0.0.116]')dnl

Hope this helps if you are having a similar problem.

Related Posts:

  1. How to setup a static route in OSX Leopard
  2. How to setup a linux cronjob in 3 steps
  3. Phpmyadmin error: “Cannot start session without errors”

One comment

  1. The dumb syntax was an issue for me as well…

    Saved me a lot of work with this desc.

    THANKS.

Leave a comment