« Zune coming to Canada June 13th... | Main | Lonely? Hold a meeting! »
Monday
May052008

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.

Reader Comments (3)

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

Saved me a lot of work with this desc.

THANKS.

November 2, 2009 | Unregistered CommenterMichael

Worked perfect
Thanks a lot

March 5, 2011 | Unregistered CommenterShubhanand

Good stuff!

March 8, 2011 | Unregistered CommenterDavid Schultz

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>