Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Pass ssl_verification flag to docker mail service

Oliver Günthera861f61fbe64
diff --git a/docker/prod/cron b/docker/prod/cron
index dbb9ceba3a8..2ae51fdaad1 100755
--- a/docker/prod/cron
+++ b/docker/prod/cron
@@ -3,6 +3,7 @@
set -e
IMAP_SSL=${IMAP_SSL:="true"}
+IMAP_SSL_VERIFICATION=${IMAP_SSL_VERIFICATION:="true"}
IMAP_PORT=${IMAP_PORT:="993"}
IMAP_ENABLED="${IMAP_ENABLED:="true"}"
IMAP_CHECK_INTERVAL="${IMAP_CHECK_INTERVAL:=600}"
@@ -15,6 +16,7 @@ while true; do
username="${IMAP_USERNAME}" \
password="${IMAP_PASSWORD}" \
ssl=${IMAP_SSL} \
+ ssl_verification=${IMAP_SSL_VERIFICATION} \
port=${IMAP_PORT} \
unknown_user="${IMAP_UNKNOWN_USER}" \
no_permission_check="${IMAP_NO_PERMISSION_CHECK}" \
diff --git a/docs/installation-and-operations/configuration/incoming-emails/README.md b/docs/installation-and-operations/configuration/incoming-emails/README.md
index 85c1ebac048..29b051db385 100644
--- a/docs/installation-and-operations/configuration/incoming-emails/README.md
+++ b/docs/installation-and-operations/configuration/incoming-emails/README.md
@@ -22,7 +22,7 @@ The rake task `redmine:email:receive_imap` fetches emails via IMAP and parses th
IMAP:
```bash
-openproject run bundle exec rake redmine:email:receive_imap host='imap.gmail.com' username='test_user' password='password' port=993 ssl=true allow_override=type,project project=test_project
+openproject run bundle exec rake redmine:email:receive_imap host='imap.gmail.com' username='test_user' password='password' port=993 ssl=true ssl_verification=true allow_override=type,project project=test_project
```
Gmail:
@@ -35,7 +35,8 @@ openproject run bundle exec rake redmine:email:receive_gmail credentials='/path/
The docker installation has a ["cron-like" daemon](https://github.com/opf/openproject/blob/dev/docker/prod/cron) that will imitate the above cron job. You need to specify the following ENV variables (e.g., to your env list file)
-- `IMAP_SSL` set to true or false depending on whether the ActionMailer IMAP connection requires implicit TLS/SSL
+- `IMAP_SSL` set to true or false depending on whether the ActionMailer IMAP connection requires implicit TLS/SSL (defaults to true)
+- `IMAP_SSL_VERIFICATION` set to true or false depending on whether the SSL certificate should be verified (defaults to true)
- `IMAP_PORT` `IMAP_HOST` set to the IMAP host and port of your connection
- `IMAP_USERNAME` and `IMAP_PASSWORD`