Redmine во время отправки письма произошла ошибка hostname does not match the server certificate


0

1

Доброе…

Стоит CentOS 7 x64, redmine 3.0.4, zimbra 8.0.5.

нужно настроить уведомления, чтобы они шли в zimbra. нашел много ссылок, они все говорят об одном:

default:
email_delivery:
delivery_method: :smtp
smtp_settings:
address: your_zimbra_host
port: 25
domain: your_mail_domain

Использовал такой подход — получаю — (hostname «localhost» does not match the server certificate)

добавляю — enable_starttls_auto: false — результат тот же.

На сервере стоит mutt, который отправляет из консоли сообщения. с ним все нормально, работает.

Пробовал через sendmail:

  delivery_method: :sendmail
  smtp_settings:
  location: /opt/zimbra/postfix/sbin/sendmail
  arguments: -oem -oi

ошибки нет, но и письма не идут.

В логах следующее:

Jul  9 12:32:31 zim postfix/smtpd[26430]: connect from localhost[127.0.0.1]
Jul  9 12:32:31 zim postfix/smtpd[26430]: Anonymous TLS connection established from localhost[127.0.0.1]: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)
Jul  9 12:32:31 zim postfix/smtpd[26430]: lost connection after STARTTLS from localhost[127.0.0.1]
Jul  9 12:32:31 zim postfix/smtpd[26430]: disconnect from localhost[127.0.0.1]

В зимбре отключено tls.

так же пробовал по логину и паролю. та же ошибка.

Что может быть? письма нормально между пользователями ходят.

Спасибо.

При использовании plain авторизации, для отправления почтовых сообщений Redmine, может возникнуть ошибка почтового сервера «Hostname does not match the server certificate» в процессе отправки почты. Ошибку можно решить редактированием конфигурации файла Redmine — configuration.yml, указав опции отключения TLS и SSL. Пример рабочей конфигурации:

production:
email_delivery:
delivery_method: :smtp
smtp_settings:
address: "smtp.server.com"
port: 25
tls: false
authentication: :plain
openssl_verify_mode: 'none'
enable_starttls_auto: false
domain: 'server.com'
user_name: 'redmine@server.com'
password: 'examplepassword'

Forums » Help »

Hi all,

In the Administration -> Settings page, when I try send send a test email. I’ve the following error message :
hostname was not match with the server certificate

This my config/configuration.yml

production:
  email_delivery:
    delivery_method: :smtp
    smtp_settings:
      address: "localhost" 
      port: 25
      enable_starttls_auto: false
      openssl_verify_mode: 'none'

I’ve also tried the following parameters but doesn’t solve my issue.

tls: false
domain: "localhost.localdomain" 
authentication: :none

When I do any modification on the redmine config files, I restart redmine by typing:
service apache2 restart
(redmine is running by apache2 and mod_passenger on a Debian Squeeze up to date)

The mail server is run by postfix on the same machine, but it doesn’t receive anything (when reading the mail logs)

Environment:
  Redmine version                          2.1.5.stable
  Ruby version                             1.8.7 (x86_64-linux)
  Rails version                            3.2.8
  Environment                              production
  Database adapter                         MySQL
Redmine plugins:
  no plugin installed

Thanks a lot for your help

if you are having the following error in Bitnami Redmine or just Redmine

Email delivery error: hostname “your domain” does not match the server certificate then you can fix it by adding the following to the config.

This is sometime ok if you are using smtp relay and don’t need to have the certification.

To fix this problem edit the following file

vim /opt/bitnami/apps/redmine/htdocs/config/configuration.yml

default:
delivery_method: :smtp
smtp_settings:
address: your_server_sending_emails
port: 25
domain: your_domain
authentication: :none
user_name:
password:
    openssl_verify_mode: ‘none’

Make sure that is under smtp settings (use spaces insted of tabs in this config file) then you can reload the bitnami

./ctlscript.sh restart apache

I am using Pony mail to send email messages (because I could never get ActionMailer to work on my local Windows box).

The code in my user_mailer.rb file include this call to the Pony.mail method:

Pony.mail({
  :to => email_address, 
  :from => 'MyChairSales <support@mychairsales.com>', 
  :subject => subject, 
  :body => email_body, 
  :html_body => html_body,
  :via => :smtp,
  :via_options => {
    :address              => 'mail.mychairsales.com',
    :port                 => '25',
    :enable_starttls_auto => true,
    :user_name            => 'mychairs',
    :password             => 'thepassword',
    :domain               => "mychairsales.com" # the HELO domain provided by the client to the server
  } 
 })

This was working (I have received email using this method) but is now failing with the error «hostname does not match the server certificate».

Here is the top of the stack trace:

["/usr/lib64/ruby/1.9.3/openssl/ssl-internal.rb:121:in `post_connection_check'",
"/usr/lib64/ruby/1.9.3/net/smtp.rb:585:in `tlsconnect'", "/usr/lib64/ruby/1.9.3
/net/smtp.rb:560:in `do_start'", "/usr/lib64/ruby/1.9.3/net/smtp.rb:519:in `start'", 
"/home4/mychairs/ruby/gems/gems/mail-2.4.4/lib/mail/network/delivery_methods
/smtp.rb:144:in `deliver!'", "/home4/mychairs/ruby/gems/gems/mail-2.4.4/lib
/mail/message.rb:245:in `deliver!'", "/home4/mychairs/ruby/gems/gems/pony-1.4/lib
/pony.rb:166:in `deliver'", "/home4/mychairs/ruby/gems/gems/pony-1.4/lib
/pony.rb:138:in `mail'", "/home4/mychairs/rails_apps/chairsales/app/mailers
/user_mailer.rb:32:in `send_mail'", "/home4/mychairs/rails_apps/chairsales/app/mailers
/user_mailer.rb:23:in `send_password_reset_email'",...

Any guidance would be greatly appreciated!

  • Redmi note 7 pixel experience ошибка 7
  • Redmi 7a ошибка при обновлении
  • Redistchecker exe ошибка 0xc000007b city car driving
  • Redirect appmetrica yandex com ошибка на десктопах
  • Redefinition of void setup ошибка