Page 1 of 1

Impossibilité envoi emails workflow

PostPosted:Tue Jul 09, 2019 4:59 pm
by kouadio
J'ai mis en place un workflow eclipse/jbpm qui fonctionne bien sauf la notification email.
Voici la configuration de la session email de mon fichier server.xml:
Code: Select all
<Resource name="mail/OpenKM" type="javax.mail.Session"
mail.transport.protocol="smtp"
mail.smtp.auth="true"
mail.smtp.host="smtp.domain.com"
mail.smtp.user="mail@domain.com"
password="xxxxxxxxxxx"
mail.port="465"
mail.debug="true"/>
Par contre les mails envoyés par la crontab arrivent à destination.
Le message d'erreur et le journal de log sont en fichier joint

Re: Impossibilité envoi emails workflow

PostPosted:Sat Jul 13, 2019 9:09 am
by jllort
It is trying to connect with localhost port 25 for sending emails. After changing server.xml data did you restarted OpenKM ?
Code: Select all
Caused by: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: localhost, 25; timeout -1
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2053) ~[mail-1.5.2.jar:1.5.2]
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:697) ~[mail-1.5.2.jar:1.5.2]

Re: Impossibilité envoi emails workflow

PostPosted:Mon Jul 15, 2019 3:13 pm
by kouadio
Oui, j'ai redémarré OpenKM et même le serveur complet et toujours rien. Les mails de crontab fonctionnent très bien par contre ceux des notifications workflow échouent en affichant un message d'erreur (voir fichier joint).

Re: Impossibilité envoi emails workflow

PostPosted:Fri Jul 19, 2019 6:30 pm
by jllort
Share the catalina.log file again to identify the cause of the error detailed.

Re: Impossibilité envoi emails workflow

PostPosted:Mon Jul 22, 2019 12:26 pm
by kouadio
Merci de trouver mon fichier catalina.log en fichier joint comme souhaité.

Re: Impossibilité envoi emails workflow

PostPosted:Fri Jul 26, 2019 8:41 am
by pavila
Which OpenKM version are you using?

Re: Impossibilité envoi emails workflow

PostPosted:Fri Jul 26, 2019 11:46 am
by kouadio
J'ulise la version 6.3.6
Version OKM.PNG
Version OKM.PNG (28.78 KiB) Viewed 20722 times

Re: Impossibilité envoi emails workflow

PostPosted:Tue Aug 20, 2019 8:38 am
by kouadio
Bonjour,

J'ai pu trouver satisfaction à ma préoccupation en installation un relai de messagerie dans mon réseau local et en modifiant les fichiers $TOMCAT_HOME/webapps/OpenKM.war/WEB-INF/classes/jbpm.cfg.xml et $TOMCAT_HOME/conf/server.xml. J'ai ensuite modifié le fichier $TOMCAT_HOME/webapps/OpenKM.war/WEB-INF/classes/jbpm.mail.templates.xml afin de personnaliser les mails envoyés.
Je ne sais pas si c'est la bonne méthode mais en tout cas ça marche.

Merci pour tout.