Fix Redmine (Expected kind of OpenSSL::SSL::SSLContext)) error
Nach dem Einrichten des automatischen Mailings in Redmine bei Ticketänderungen o.ä., kann es beim Versuch eine Test E-Mail zu senden zu einem SSL Fehler kommen: “(Expected kind of OpenSSL::SSL::SSLContext))”. Dieser kommt zustande, wenn man kein SSL SMTP verwendet, sondern normal für Port 25 arbeitet.
Durch hinzufügen zweier Parameter in der configuration.yml wird dieses Problem gelöst:
openssl_verify_mode: OpenSSL::SSL::VERIFY_NONE enable_starttls_auto: false
Der gesamte Konfigurationsblock für das Mailing sieht dann so aus:
# default configuration options for all environments default: # Outgoing emails configuration (see examples above) email_delivery: delivery_method: :smtp smtp_settings: address: smtp.test.com port: 25 domain: test.com authentication: :login user_name: "donotreply@test.com" password: "ko!4r9uij78/(" openssl_verify_mode: OpenSSL::SSL::VERIFY_NONE enable_starttls_auto: false
Nach einem Neustart ist das Problem behoben.
Ein Neustart wird durch das Anlegen einer restart.txt im /tmp Verzeichnis verursacht.
touch htdocs/redmine/tmp/restart.txt
Sorry, the comment form is closed at this time.