Forum OpenACS Q&A: send mail error
Expected a 250 status line, got:
501 5.0.0 Invalid domain name
Can someone explain to me what is going on and how to fix it, please?
_ns_smtp_send $wfp "HELO AOLserver [ns_info hostname]" $timeoutto
_ns_smtp_send $wfp "HELO [ns_info hostname]"and see if that fixes it.
I did what you suggested but it didn;t work out.
WHen I ping to the hostname address of my system it pings to 127.0.0.1 and not to the ip address of the system. Is it supposed to be like that?
although I am not at all an expert, my installation is as follows (and it works now with sendmail:)
set the hostname in /etc/hosts, eg.:
set the hostname in nsdconfig.tcl:
# set hostname [ns_info hostname]
set hostname "mywebsite.dyndns.com" 
As fas as I remember, I didnt change the sendmail.tcl
And of course, you have to be sure the sendmail daemon is running...
( In my installation, the host is part of an intranet LAN, but is also accessed from the "outside" internet via a router by portforwarding and a dyndns provider. (This makes it quite cheap to have a public website using a dsl flatrate). In this case, the hostname in the nsdconfig.tcl is set to the public hostname given by the dyndns ("mywebsite.dyndns.com"), otherwise mails sent from the system would have the "internal" hostname as sender, which makes no sense to the public. Of course, all this stuff may not apply if you only use your openacs installation in either intranet or internet.)