Hi all,
I have successfully installed a CAS 5.3.9 with ldap and pm-ldap 
dependencies but the password management email notification is not working. 

No notification is send when the recover function is used and the log 
message catched at this moment is :
*WARN [org.apereo.cas.util.io.CommunicationsManager] - <Could not send 
email to [***********@***] because either no address/subject/text is found 
or email settings are not configured.>*

I tried to activate the debug mode but it's not telling me something more 
to help me to resolv the problem. By the way, the debug log tell me the URL 
to recover the password, and this URL is working well when I copy and past 
from log to browser.

The problem seem to be related to the email that is not sent.

Here is the spring mail configuration part of the cas.properties :

cas.authn.pm.enabled=true
...
spring.mail.host=*******.***.***
spring.mail.port=587
spring.mail.username=*******
spring.mail.password=*******
spring.mail.testConnection=true
spring.mail.properties.mail.smtp.auth=true
spring.mail.properties.mail.smtp.starttls.enable=true

${configurationKey}.mail.from=cas@***
${configurationKey}.mail.text=castexte
${configurationKey}.mail.subject=caspwd

One other thing I notified : if i throw a tcpdump command through the 
interface, I can see some conversation between the CAS server and the mail 
server when tomcat service starts (probably because of the line 
"spring.mail.testConnection=true") and the log of the mail server confirm 
this conversation :

SMTPSubmit SMTPAcceptAnySender SMTPAcceptAuthoritativeDomainSender 
AcceptRoutingHeaders,Set Session Permissions
220 *******.*** Microsoft ESMTP MAIL Service ready at Mon, 15 Apr 2019 
11:40:36 +0200",
EHLO apereo.*****,
250-********** Hello [***********],
250-SIZE 10485760,
250-PIPELINING,
250-DSN,
250-ENHANCEDSTATUSCODES,
250-STARTTLS,
250-AUTH,
250-8BITMIME,
250-BINARYMIME,
250 CHUNKING,
STARTTLS,
220 2.0.0 SMTP server ready,
Sending certificate
CN=*******,Certificate subject
"********",Certificate issuer name
**********,Certificate serial number
**********,Certificate thumbprint
**********,Certificate alternate names
EHLO apereo.****,
250-********* Hello [*********],
250-SIZE 10485760,
250-PIPELINING,
250-DSN,
250-ENHANCEDSTATUSCODES,
250-AUTH,
250-8BITMIME,
250-BINARYMIME,
250 CHUNKING,
QUIT,
221 2.0.0 Service closing transmission channel,

but when I try to recover a password entering the ID, nothing is exchanged 
between CAS server and mail server and noting in the mail server log. Only 
the WARN message in the log of the CAS server :
*WARN [org.apereo.cas.util.io.CommunicationsManager] - <Could not send 
email to [***********@***] because either no address/subject/text is found 
or email settings are not configured.>*

The email address is OK so the LDAP connection is catching the right 
information. The spring email settings seems OK to me like it is showed in 
the log during the starting process.

I spend many times to review the configuration parameters without success.

Any idea ?

Olibouli

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cas-user+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/3fe24033-d2e8-4d2f-af3c-11d9f222bd4f%40apereo.org.

Reply via email to