Forum OpenACS Q&A: Re: Error sending email from user-new-2.tcl Expected a 250 status line; got: 501 5.0.0 Invalid domain name

I had the same problem after installing OpenACS over a RedHat 8.0.

It seems that recent versions of sendmail require the exact domain name after the HELO command, but in the sendmail.tcl script (I found this in "/usr/local/aolserver/modules/tcl) there is an extraneous description, i.e. "Aolserver" preceeding the domain name.

What I did was to change the line

" _ns_smtp_send $wfp "HELO AOLserver [ns_info hostname]" $timeout"
with
" _ns_smtp_send $wfp "HELO [ns_info hostname]" $timeout"
and it works.