ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

NTLM authentication for SMTP?

Added by Kirpal Sukumar at 2012-04-03 03:09 pm

Good morning,

I'm trying to enable email integration in ChiliProject, and have run across this hurdle.

Unfortunately, my organization's exchange server will only accept NTLM authentication for SMTP traffic (vs. plain or login, which are built in to Chili). I've tried several different methods of enabling it, but have finally run out of ideas.

I'm currently using Chiliproject 2.5.0, but will be moving to 3.x fairly soon.

Any guidance would be much appreciated.


Replies (4)

RE: NTLM authentication for SMTP? - Added by Holger Just at 2012-04-03 03:18 pm

Disclaimer: I have not tried it myself and don't know for sure if it works...

There is a gem which might do that for you. Please add the following line to your Gemfile.local (create it if it does not exist yet). Then run bundle install to install the gem.

gem 'ruby-ntlm', :require => 'ntlm/smtp'

Now you can use

authentication: :ntlm
in your configuration.yml.

RE: NTLM authentication for SMTP? - Added by Kirpal Sukumar at 2012-04-09 03:57 pm

Thanks for the help, Holger.

I'm still unable to get mail delivery working, however. After enabling e-mail logging, this is what i get in my production log:

Processing AdminController#test_email (for XXX.XXX.XXX.XXX at 2012-04-09 11:23:48) [GET]
  Parameters: {"controller"=>"admin", "action"=>"test_email"}
Sending email notification to: 
Redirected to http://server:3000/settings/edit?tab=notifications
Completed in 9ms (DB: 0) | 302 Found [http://server/admin/test_email]

I'm including the configuration block I'm using below:

production:
  email_delivery:
    delivery_method: :smtp
    smtp_settings:
      address: "XXX.XXX.gov" 
      port: 25
      domain: 'XXX.gov'
      authentication: :ntlm
      user_name: "XXX\\XXXXXXXX" 
      password: "XXXXXX" 

Anything come to mind? As far as I can tell from the Settings page, Chili seems to believe that everything is configured properly, and yet I get none of the mailings.

Thanks,

Kirpal

RE: NTLM authentication for SMTP? - Added by Kris Lou at 2012-04-09 04:38 pm

This is probably a duplicate of #824 and #762: Make sure that your email settings (for the destination address/account) is unchecked for "I don't want to be notified of changes that I make myself."

RE: NTLM authentication for SMTP? - Added by Kirpal Sukumar at 2012-04-09 07:58 pm

...and that solved it. Thanks!

(1-4/4)