Changes to KOP configuration
After building the docker image you may need to change email-related configuration.
Below you can find the settings you can configure in Dockerfile (see Installation Guide # Step2. Configure Kiuwan Docker image)
KIUWAN_EMAIL_ADMIN_ACCOUNT | Email address of Kiuwan admin user
|
KIUWAN_EMAIL_USER_ACCOUNT | Sender email address for Kiuwan notifications
|
KIUWAN_SMTP_USER_ACCOUNT | SMTP account : username and password |
KIUWAN_SMTP_HOST= | SMTP host and port |
You can change these setting in Dockerfile and rebuild the image. But, if this approach is not possible, you can find at this article how to do it.
Email configuration is located within the container at $(KIUWAN_VOL)/deployconfig/wildlfy/standalone.xml
1. stop Wildfly
supervisorctl stop wildfly
2. Locate and change the configuration
To change KIUWAN_EMAIL_USER_ACCOUNT , KIUWAN_SMTP_USER_ACCOUNT and/or KIUWAN_SMTP_USER_PASSWORD
locate in standalone.xml <mail-session> element with property name="mailSession"
This element will be something like:
<mail-session name="mailSession" jndi-name="java:/mail/Session" from="dummy@dummy.domain.com"> <smtp-server username="DUMMY_SMTP_USER" password="DUMMY_PASSWORD_SMTP_USER" tls="true" outbound-socket-binding-ref="Kiuwan_Mail_Section"/> </mail-session>
Make changes according to:
- from : KIUWAN_EMAIL_USER_ACCOUNT
- username : KIUWAN_SMTP_USER_ACCOUNT
- password : KIUWAN_SMTP_USER_PASSWORD
To change KIUWAN_SMTP_HOST, KIUWAN_SMTP_PORT
locate in standalone.xml <outbound-socket-binding> element with property name="Kiuwan_Mail_Section"
This element will be something like:
<outbound-socket-binding name="Kiuwan_Mail_Section"> <remote-destination host="DUMMY_SMTP_HOST" port="25"/> </outbound-socket-binding>
Make changes according to:
- host : KIUWAN_SMTP_HOST
- port : KIUWAN_SMTP_PORT
voy al contenedor
parar el winflying
en /kiuwan_vol/deployconfig/wildlfy/standalone.xml
para cambiar
buscar
<mail-session name="mailSession" jndi-name="java:/mail/Session" from="dummy@dummy.domain.com">
<smtp-server username="DUMMY_SMTP_USER" password="DUMMY_PASSWORD_SMTP_USER" tls="true" outbound-socket-binding-ref="Kiuwan_Mail_Section"/>
</mail-session>
from es el KIUWAN_EMAIL_USER_ACCOUNT
username es KIUWAN_SMTP_USER_ACCOUNT
password es KIUWAN_SMTP_USER_PASSWORD
para cambiar el host y el port
buscar Kiuwan_Mail_Section
<outbound-socket-binding name="Kiuwan_Mail_Section">
<remote-destination host="DUMMY_SMTP_HOST" port="25"/>
</outbound-socket-binding>
host es KIUWAN_SMTP_HOST
port es KIUWAN_SMTP_PORT
salvar
Related articles