Docker / Podman
Section titled “Docker / Podman”The script can be invoked as follows to provide assistance in what options are available for configuration:
docker exec -it <neogage-container-name> config-smtp.sh --help
Valid configuration options:
--smtp-host - Configure SMTP host --smtp-port - Configure SMTP port --smtp-scheme - Configure SMTP + TLS or SMTP + SSL - Valid values: smtp | smtps --smtp-sender - Configure Sender Email Address (FROM) --smtp-user - Configure SMTP username --smtp-pass - Configure SMTP password --smtp-ignore-cert - Ignore certificate verification Valid values: true | falsepodman exec -it <neogage-container-name> config-smtp.sh --help
Valid configuration options:
--smtp-host - Configure SMTP host --smtp-port - Configure SMTP port --smtp-scheme - Configure SMTP + TLS or SMTP + SSL - Valid values: smtp | smtps --smtp-sender - Configure Sender Email Address (FROM) --smtp-user - Configure SMTP username --smtp-pass - Configure SMTP password --smtp-ignore-cert - Ignore certificate verification Valid values: true | falseFor example, to configure the SMTP Host, would be done as follows:
docker exec -it <neogage-container-name> config-smtp.sh --smtp-host mail.example.compodman exec -it <neogage-container-name> config-smtp.sh --smtp-host mail.example.comthe remaining options are configured in a similar method. If the script is ran without a parameter or by providing an incorrect parameter it will display the help screen as above.
OpenShift
Section titled “OpenShift”If using OpenShift, the script can be invoked as follows:
oc exec <container> -- config-smtp.sh --helpthe command above will provide assistance in what options are available for configuration, as shown below:
oc exec <container> -- config-smtp.sh --help
Valid configuration options:
--smtp-host - Configure SMTP host --smtp-port - Configure SMTP port --smtp-scheme - Configure SMTP + TLS or SMTP + SSL - Valid values: smtp | smtps --smtp-sender - Configure Sender Email Address (FROM) --smtp-user - Configure SMTP username --smtp-pass - Configure SMTP password --smtp-ignore-cert - Ignore certificate verification Valid values: true | falseFor example, to configure the SMTP Host, would be done as follows:
oc exec <container> -- config-smtp.sh --smtp-host mail.example.comthe remaining options are configured in a similar method. If the script is ran without a parameter or by providing an incorrect parameter it will display the help screen as above.
Alternatively, the OpenShift web interface can be used to use the web terminal for the NEOGAGE application pod, or by using oc rsh as shown below:
oc rsh <container>config-smtp.sh --smtp-host mail.example.com