Open link in a new tab

Content

Expand project menu

Disable SMTP SSL

Hi,

I have recently installed OpenProject on Ubuntu using the RPM installation.

However I am unable to get SMTP with SSL working, receiving the error message "hostname does not match the server certificate"

This error is faulty to begin with, as the server does have a valid wildcard certificate for the domain, and I have no issue using this server with SSL in other services such as GitLab or Airflow. Only OpenProject seems to have this problem.

But, at this point I can't be bothered trying to resolve it, so I would just like to disable SSL verification. However that does not work at all.

I have tried setting the environment variable in /etc/openproject/conf.d/smtp:

export SMTP_OPENSSL_VERIFY_MODE="none"

Followed by restarting the service. This has no effect. If I run openproject configure, the variable is removed from conf.d/smtp.

I have also tried setting the variable via openproject config:set. Again this has no effect. I have tried both SMTP_OPENSSL_VERIFY_MODE and OPENPROJECT__SMTP__OPENSSL__VERIFY__MODE.

/etc/openproject/installer.dat does not show that this variable has been taken into account (it is entirely missing).

How do I disable SMTP SSL verification on an RPM installation in Linux?