Skip to content

SMTP Settings

The script can be invoked as follows to provide assistance in what options are available for configuration:

Terminal window
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 | false

For example, to configure the SMTP Host, would be done as follows:

Terminal window
docker exec -it <neogage-container-name> config-smtp.sh --smtp-host mail.example.com

the 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.

If using OpenShift, the script can be invoked as follows:

Terminal window
oc exec <container> -- config-smtp.sh --help

the command above will provide assistance in what options are available for configuration, as shown below:

Terminal window
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 | false

For example, to configure the SMTP Host, would be done as follows:

Terminal window
oc exec <container> -- config-smtp.sh --smtp-host mail.example.com

the 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:

Terminal window
oc rsh <container>
config-smtp.sh --smtp-host mail.example.com
config-smtp.sh --smtp-sender [email protected]