Forum OpenACS Q&A: mail question

Collapse
Posted by jeff reed on
When the system tries to send mail the following error occures.
Before this error I was recieving an error due to no local host
specified. So I ran the command Hostname localhost. The other error
went away but now this:

registered_proc blew up --- backtrace follows:
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
"ns_sendmail  "$email" "[ad_parameter NewRegistrationEmailAddress]"
"Your password for [ad_system_name] has been changed" "Your password
for [ad_system..."
    (file
"/var/opt/www/ashland/www/admin/users/email-changed-password.tcl" line
19)
    invoked from within
"source $ad_conn(file)"
    (procedure "ad_handle_abstract_url" line 67)
    invoked from within
"ad_handle_abstract_url conn {}"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
"ns_sendmail  "$email" "[ad_parameter NewRegistrationEmailAddress]"
"Your password for [ad_system_name] has been changed" "Your password
for [ad_system..."
    (file
"/var/opt/www/ashland/www/admin/users/email-changed-password.tcl" line
19)
    invoked from within
"source $ad_conn(file)"
    (procedure "ad_handle_abstract_url" line 67)
    invoked from within
"ad_handle_abstract_url conn {}"

Collapse
2: Response to mail question (response to 1)
Posted by Don Baccus on
I've got an easy trick for sending e-mail from my OpenACS-driven site:
I use my ISP's SMTP server.

That way I don't have to worry about setting up sendmail correctly,
etc.  All I do is set the appropriate parameter in ad.tcl to
"smtp.my.isp.com" and off it goes.

If you're connected through an ISP that provides SMTP services, I
think it is a lot easier to let them deal with the headaches involved
with running a mail server than doing it yourself.  Or learning how to
do it yourself.  I've avoided learning how so far.