# Bug OP-10445 - starttls_auto forced to true since Ruby 3 upgrade

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-10445

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module |  |
| Target versions | 12.1.4 |
| Observed in versions |  |
| Sprint | 12.1.4 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### **Environment**:

Your OpenProject Version: 12.1.3

### **Steps to reproduce:**

1.  Set "Automatically use STARTTLS if available" to false in Administration -\> Emails and notification -\> Email notifications
2.  Try to send an email via server that supports starttls but adddress server via IP rather than host name in certificate

### **Actual Behavior**

Certificate error

### **Expected Behavior**

There should be no certificate error since starttls auto is false

## Notes

This bug has been introduced with the Ruby 3 upgrade.  
A change in ruby's SMTP class changed starttls\_auto's default to true when it was false before. The mail gem we use (in version 2.7) can only enable starttls\_auto, but not disable it.

Issue: [Setting enable_starttls_auto to false will not work with Ruby 3 · Issue <mention class="mention" data-id="1434" data-type="work_package" data-text="#1434">#1434</mention> · mikel/mail (github.com)](https://github.com/mikel/mail/issues/1434)

The issue is still present. There is a possible bug fix but it has not been released yet: [SMTP: allow disabling starttls_auto since it's now true by default in Ruby 3 by jeremy · Pull Request <mention class="mention" data-id="1435" data-type="work_package" data-text="#1435">#1435</mention> · mikel/mail (github.com)](https://github.com/mikel/mail/pull/1435)
