Forum OpenACS Development: Re: AcsMailLite - Lost on debugging

Collapse
Posted by Iuri Sampaio on
It seems smtpout all of sudden stopped to authenticate.

I thought at first it was a parameter issue to amend within acs-mail-lite parameter's section. As Claudio well mentioned. but all seems fine there.

I'm able to send mails from prompt line, within mail command, but not from OACS. Would a DNS setting such as CNAME or PFS record be an issue?

How would I make sure OACS layer is not the guilty.

Best wishes,
Iuri

Collapse
Posted by Benjamin Brink on
Hi Iuri,

The STMP parameters double as a switch.

If SMTP* parameters are not empty, then package only tries via SMTP.

If SMTP* parameters are empty, then package will use ns_sendmail, which should work similar to your test (at prompt line).

cheers,
Ben

Collapse
Posted by Gustaf Neumann on
The exception is raised by the command smtp::sendmessage [1] from tcllib. To sort out the OpenACS dependencies, write a small tcl smt client script (as shown in [1]) to see the results.

The man page [1] mentions as well that smtp servers have recently deactivated SSLv3 because of the POODLE attack. If the simple smtp client essentially doing the same as acs-mail-lite fails, please activate tls1 manually from the smtp client script as indicated on the man page. if this helps, we will find a way to do this automatically from acs-mail.lite

-g

[1] https://core.tcl.tk/tcllib/doc/trunk/embedded/www/tcllib/files/modules/mime/smtp.html

Collapse
Posted by Iuri Sampaio on
Thanks Ben & Gustaf,

I solved the problem by cleaning up SMTP* parameters.

@Gustaf,

a smtp client script would increase my odds. I'd be glad if you guide me trough it.

On another front, acs-mail-lite doesn't have the same essentials than simple SMTP. Otherwise, it would work when ACS-MAIL-LITE->SMTP-* parameters are filled in. Perhaps I didn't understand your statement.

Best wishes,
Iuri

Collapse
Posted by Gustaf Neumann on
In case you did not get the intention of the script:

a) acs-mail-lite uses finally tcllib's smtp package

b) you asked, how to debug smtp without OpenACS interference (your formulation "How would I make sure OACS layer is not the guilty". The answer is to call tcllibs smpt package functions via a small script without OpenACS (as indicated in the man page). You can call this script from the shell with any option (look at the options of .::smtp::sendmessage in the manpage). If find a options combination that works from the script, you can check afterwards, how to pass these options via acs-mail-lite. If you find NO combination of options that work, then acs-mail-lite can't do anything, and you have to debug tcllibs smtp.

But since have have fixed out already you misconfiguration, there is no need for going this way.

Collapse
Posted by Iuri Sampaio on
Thanks Gustaf!