Chapter 1. Шаг 1.

Открываем файл, если у вас Bitnami Redmine: /opt/bitnami/apps/redmine/htdocs/config/configuration.yml
Или
ищем в своей папке файл: /config/configuration.yml

Chapter 2. Шаг 2.

Находим:

# specific configuration options for production environment
# that overrides the default ones
production:

В самом конце добавляем, за место production

production:
  delivery_method: :async_smtp
  smtp_settings:
    address: адрес_почтового_сервера (обычно mail.site.ru)
    port: 465
    ssl: true
    enable_starttls_auto: true
    domain: ваш_домен_почты
    authentication: :login
    user_name: "ваша_почта"
    password: "ваш_пароль"

Пример:

production:
  delivery_method: :async_smtp
  smtp_settings:
    address: mail.community.galaxydata.ru
    port: 465
    ssl: true
    enable_starttls_auto: true
    domain: community.galaxydata.ru
    authentication: :login
    user_name: "noc@community.galaxydata.ru"
    password: "password"
Шаг 3.

Обязательно перезагрузите процесс redmine
Если у вас redmine установлен через bitnami

/opt/bitnami/ctlscript.sh restart

или
Для Debian, Ubuntu

/etc/init.d/apache2 restart

Для Centos, Fedora, RedHat

/etc/init.d/httpd restart
0.1. Частые ошибки возникающие при настройке:

An error occurred while sending mail (SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: unknown protocol)

An error occurred while sending mail (hostname was not match with the server certificate)

Connection refused — connect(2))

Один комментарий к “Redmine Email SSL – настройки отправления почты с redmine”

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *

Этот сайт использует Akismet для борьбы со спамом. Узнайте, как обрабатываются ваши данные комментариев.