Project

General

Profile

How to set up SMTP with MS Exchange server ?

Added by JONG WAN LEE over 7 years ago

I got steps as below

1. installed 'ruby-ntlm'

$ gem list
ruby-ntlm (0.0.4)
ruby-openid (2.3.0)
rubyntlm (0.6.2)

2. set 'configuration.yml'

  production:
    email_delivery:
      delevery_method: *:smtp*
      stmp_settings:
        address: "smtp.companyname.com" 
        port: 25
        authentication: *:ntlm*        
        domain: "smtp.companyname.com" 
        user_name: 'user@companyname.com'
        password: 'password'

3. set 'environment.rb'

require File.expand_path('../application', __FILE__)
require 'ntml/smtp'

but, error msg on 'Email notification' redmine web boared is as below.

An error occurred while sending mail (wrong authentication type ntlm)

also, this is ruby framework error msg.
'require': cannot load such file -- ntml/smtp (LoadError)

Redmine version                3.3.1.stable
Ruby version 2.3.3-p222 (2016-11-21) [x86_64-linux]
Rails version 4.2.7.1