Ruby on rails 从Rails进行身份验证交换时无法识别的身份验证类型

Ruby on rails 从Rails进行身份验证交换时无法识别的身份验证类型,ruby-on-rails,exchange-server,Ruby On Rails,Exchange Server,我在尝试从Ruby on Rails向Exchange Server进行身份验证时遇到以下错误: 504 5.7.4无法识别的身份验证 类型 我尝试了各种配置设置组合,包括将设置更改为使用“普通”身份验证、添加域、将enable_starttls_auto设置为true、false、完全删除它、删除端口。什么都没起作用 有什么想法吗?以下是链接: 1) 将ruby-ntlmgem添加到您的gem文件中,然后运行bundle-install 2) 将NTLM SMTP库添加到config/env

我在尝试从Ruby on Rails向Exchange Server进行身份验证时遇到以下错误:

504 5.7.4无法识别的身份验证 类型

我尝试了各种配置设置组合,包括将设置更改为使用“普通”身份验证、添加域、将enable_starttls_auto设置为true、false、完全删除它、删除端口。什么都没起作用


有什么想法吗?

以下是链接:

1) 将ruby-ntlmgem添加到您的gem文件中,然后运行bundle-install

2) 将NTLM SMTP库添加到config/environment.rb文件中

# Load the rails application
  require File.expand_path('../application', __FILE__)
  require 'ntlm/smtp'
# Initialize the rails application
  RailsApp::Application.initialize! 
3) 设置环境文件以使用NTLM进行身份验证

config.active_support.deprecation = :notify
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
 :address => '<your-email-server>',
 :domain => '<your-domain>',
 :user_name => '<your-username>',
 :password => '<your-unencrypted-password>',
 :port => 25,
 :authentication => :ntlm
config.active\u support.deprecation=:notify
config.action\u mailer.delivery\u method=:smtp
config.action\u mailer.smtp\u设置={
:地址=>'',
:域=>'',
:user_name=>“”,
:密码=>'',
:端口=>25,
:身份验证=>:ntlm

****用您自己的值替换值***

欢迎使用Stack Overflow!虽然这可能从理论上回答问题,但请在此处包含答案的基本部分,并提供链接以供参考。请修复链接。这是致命的。请查看[无法让ActionMailer通过SMTP与MS Exchange一起工作][1].它帮助我解决了我的问题。[1]:
config.active_support.deprecation = :notify
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
 :address => '<your-email-server>',
 :domain => '<your-domain>',
 :user_name => '<your-username>',
 :password => '<your-unencrypted-password>',
 :port => 25,
 :authentication => :ntlm