Add support for NTLM authentication mode for mail sending via Exchange Server
The mail notification system doesn't work with Exchange Server 2007 in NTLM authentication mode
The only authentication mode allowed by our exchange server is NTLM and redmine sends an error while connecting.
See javamail 1.4.4 feature (ntlm support)for example : http://www.oracle.com/technetwork/java/javaee/index-138643.html
"- NTLM authentication support is now integrated, no longer need jcifs.jar."
#4 Updated by Gert van Dijk over 6 years ago
A workaround for this could be to install a local MTA on the machine running Redmine and let it relay to the Exchange server.
Here's a how to I found for Postfix as MTA and NTLM-authenticated client for relaying mail (not for Redmine, but for Trixbox): Getting trixbox 18.104.22.168 Postfix to relay through Exchange Server 2007
#6 Updated by Florent Fievez almost 6 years ago
#7 Updated by Florian S. almost 6 years ago
I also would need this feature...
Sending mails via smtp using an exchange server (auth-method ntlm) is not possible at the moment. Many companies (as ours) use exchanges based email services and if redmine supported ntlm this would help us (and many others) very much.
Maybe redmine will support ntlm auth method in one of the next releases?
#8 Updated by Florent Fievez almost 6 years ago
The solution that worked for me :
1. Create a Gemfile.local containing "ruby-ntlm" :
# echo 'gem "ruby-ntlm"' > /path/to/redmine/Gemfile.local
2. Install the Gem with :
# bundle install
3. Add the following line to /path/to/redmine/config/environment.rb
4. Configure your smtp connection in /path/to/redmine/config/configuration.yml
# default configuration options for all environments default: email_delivery: delivery_method: :smtp smtp_settings: address: exchange.domain.com port: 25 domain: domain.com authentication: :ntlm user_name: 'user' password: 'pass'