Forum OpenACS Q&A: Error in ns_sendmail
I am getting this error from the user registration (by selecting ns_param RegistrationRequiresEmailVerificationP 0):
[25/Jun/2000:17:00:44][12585.19463][-conn9-] Error: nsd.tcl: Expected a 250 status line; got: 554 buildaddr: no host Expected a 250 status line; got: 554 buildaddr: no host while executing "_ns_sendmail $smtp $smtpport $timeout $tolist $bcclist $from $subject $body $extraheaders" (procedure "ns_sendmail" line 58) invoked from within
I checked my /etc/hosts and it's there. I don't know if this is some silly Sendmail configuration (I didn't setup the box), but Watchdog sends me e-mail with the error logs just fine (but it's written in Perl, hence it doesn't use ns_sendmail).
Anybody knows what could be causing AOLserver's ns_sendmail to act like that ?
What may be a good first test would be to attempt to telnet to the remote host on port 25 and see if you get a connection successfully. It's sounding like ns_sendmail isn't working out the address of buildaddr correctly (either by DNS or from /etc/hosts).
If all else fails, you might want to replace the hostname you have in your nsd.tcl/nsd.ini set as your mailhost and instead use the IP Address.
Let us know how you go.
[robertm@hal Buyback]$ telnet localhost 25 Trying 127.0.0.1... Connected to localhost.localdomain. Escape character is '^]'. 220 bookstore.usu.edu ESMTP Sendmail 8.9.3/8.8.7; Sun, 25 Jun 2000 17:27:10 -0600 HELO AOLserver hal.bookstore.usu.edu 250 bookstore.usu.edu Hello localhost.localdomain [127.0.0.1], pleased to meet you MAIL FROM:firstname.lastname@example.org 250 email@example.com... Sender ok RCPT TO:firstname.lastname@example.org 551 we do not relayI did the "HELO AOLserver" and all myself. Since I hate the way configurations are done in Sendmail, I don't know how to tell Sendmail "Yes, it's ok to let .usu.edu domains relay".
You do have MailHost set up correctly in your nsd.tcl file. i.e. to 127.0.0.1? On my boxes I'm just using my ISP's smtp server rather than set up sendmail on my box, and have never had a problem getting it to work. If someone's listening on port 25 and expecting SMTP, as seems to be the case here, you should at least get a more specific error rather than the "there's no host" error.
Another possible answer is a small bug I found in ACS. This I explained and provided a fix for at http://www.arsdigita.com/bboard/q-and-a-fetch-msg?msg_id=00081X&topic_id=175&topic=ACS%20Development
Strange bug that only shows up with certain configurations.
The bug has been confirmed and fixed in the ACS