Forum OpenACS Q&A: cannot connect to localhost:25 while trying to send emails

I posted a threat couple days ago about my server stalling from time
to time...

Now it wouldn't send emails anymore.

Here is the serverlog:

Error: nsd.tcl: could not connect to "localhost:25"
could not connect to "localhost:25"
    while executing
"ns_sockopen $smtp $smtpport"
    invoked from within
"set sock [ns_sockopen $smtp $smtpport]..."
    (procedure "_ns_sendmail" line 31)
    invoked from within
"_ns_sendmail $smtp $smtpport $timeout $tolist $bcclist  $from
$subject $body $extraheaders"
    (procedure "ns_sendmail" line 58)
    invoked from within
"ns_sendmail $person $system_owner "Errors on [ad_system_name]"
$errors"
    ("foreach" body line 3)
    invoked from within
"foreach person [wd_people_to_notify] {
            ns_log Notice "Sending email to $person..."
            ns_sendmail $person $system_owner "Errors o ..."
    invoked from within

and so on.

Anyone familiar with this?

It gets stranger and stranger...

After I killed the aolserver I cannot start it via bin/nsd -ic test.ini anymore.

The prompt reappears and my browser tells me that my server is busy or may not be accepting connections?!?!

I would need to know just a bit more to be able to help you, could you tell if your smtp server is running?

$ netstat -a | grep smtp

HTH
--guido

Hello Guido,

as I am not a pro in aolserver and I had 3.0 installed, I just compiled and installed a new version (3.3.1). Now it works again...

But if the same thing happens over again, how do I restart the smtp server???

Thanks a lot...