<commit_before>---
layout: post
title: Security advisory for smtp settings
date: 2015-03-16
author: <NAME>
---

In GitLab 7.8, smtp settings example file contained the line `openssl_verify_mode: 'none'`.

Confusion came from assumption that `none` is the default value when TLS is enabled. In contact with Rails team we've learned omiting `openssl_verify_mode` defaults to `peer`.

If you have installation from source, smtp enabled, TLS enabled and the above setting we advise you to change the setting to `openssl_verify_mode: 'peer'`.

Installations using omnibus packages are not affected.<commit_msg>Add more details about what the setting is.<commit_after>---
layout: post
title: Security advisory for smtp settings
date: 2015-03-16
author: <NAME>
---

In GitLab 7.8.x, smtp settings example file contained the line `openssl_verify_mode: 'none'`. This meant that mail server TLS certificate wasn't verified by GitLab.

Confusion came from assumption that `none` is the default value when TLS is enabled and that it behaved the same as when the setting is omited. In contact with Rails team member we've learned omiting `openssl_verify_mode` defaults to `peer`.

If you have installation from source, smtp enabled, TLS enabled and the above setting we advise you to change the setting to `openssl_verify_mode: 'peer'`.

Installations using omnibus packages are not affected.
{'fraction_non_alphanumeric': 0.06526468455402465, 'fraction_numerical': 0.014503263234227702, 'mean_word_length': 4.872340425531915, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5650079', 'n_tokens_mistral': 395, 'n_tokens_neox': 352, 'n_words': 194}