Forum .LRN Q&A: How to configure ns_senmail

Hi.

I changed my email service, your previous work with SMTP port 25, the new smtp with ssl and port 465, the problem is how to configure the ns_sendmail to make it work.

Collapse
Posted by Emmanuelle Raffenne on
Hi Fernando,

What version of dotLRN are you using?

In any case, until dotLRN 2.4, emails are sent out using the smtp library and in very few cases ns_sendmail. As of upcoming version 2.5.0, ns_sendmail won't be used anymore.

smtp is configures in the parameters of the acs-mail-lite package. Go to the site-wide admin pages (http://yourserver/acs-admin), click on "parameters" next to "ACS Mail Lite" and edit the parameters under the "SMTP" section of the form.

ns_sendmail is configured in the config.tcl file. I'm not sure on how to configure the mail server port there though.

In any case, I would recomend that you replace calls to ns_sendmail with ones to acs_mail_lite::send

Hi Emmanuelle

i check the config parameter for ACS Mail Lite but the version is 0.6a very old and dont have SMTP section. And i nedd connect to my smtp with SSL.

Collapse
Posted by Emmanuelle Raffenne on
Fernando,

I found the following at the AOLserver doc (http://aolserver.com/docs/devel/tcl/api/general.html#ns_sendmail):

<q>ns_sendmail uses the SMTP server specified by the MailHost parameter in the configuration file. If MailHost is not specified in the configuration file, localhost is used. You can also specify an SMTP smarterhost in the SmtpPort parameter in the configuration file. </q>

Since "mailhost" parameter is in the ns/parameters section, I guess you need to add the "SmtpPort" in the same one.

Hope that will work.