Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile add SMTP env variables #4539

fluopotter opened this Issue Feb 25, 2019 · 0 comments


None yet
2 participants
Copy link

fluopotter commented Feb 25, 2019

Is your feature request related to a problem? Please describe.
Add environment's variables for mail/smtp options when running rundeck in a container.
OR add mail's configuration in web interface.

Describe the solution you'd like
The main idea is to add smtp's parameters when we start a container like :

In our side, we have customise dockerfile like this :

  • add in these lines :
[[ ! -z ${RUNDECK_SMTP_HOST} ]] && echo "${RUNDECK_SMTP_HOST}" >> ${REMCO_TMP_DIR}/rundeck-config/

[[ ! -z ${RUNDECK_SMTP_PORT} ]] && echo "grails.mail.port=${RUNDECK_SMTP_PORT}" >> ${REMCO_TMP_DIR}/rundeck-config/

[[ ! -z ${RUNDECK_SMTP_HOST} ]] && echo "grails.mail.default.from=${RUNDECK_SMTP_MAIL_FROM}" >> ${REMCO_TMP_DIR}/rundeck-config/

==> It works !

Describe alternatives you've considered
Maybe another idea is to add parameters in the rundeck's web interface.

We had an error with smtp's server due to hostname in mail's header.

  • For mail's notification plugin : you need to set grails.mail.default.from .
  • For EmailNotificationPlugin.groovy, you need to force container's hostname (--hostname option when you start container)

@ProTip ProTip added the enhancement label Mar 1, 2019

@ProTip ProTip added this to the 3.0.17 milestone Mar 1, 2019

@ProTip ProTip self-assigned this Mar 1, 2019

@ProTip ProTip closed this in #4565 Mar 11, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.