在Ruby on Rails中,如何处理从Rails到Exchange的认证过程中无法识别的认证类型问题?

更新于
2026-10-09 23:29:50
1阅读来源:SEO教程
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计308个文字,预计阅读时间需要2分钟。

在Ruby on Rails中,如何处理从Rails到Exchange的认证过程中无法识别的认证类型问题?

尝试使用 Ruby on Rails 中的 Exchange Server 进行身份验证时出现此错误:504 5.7.4 Unrecognized authentication type。确保已正确配置邮件发送设置:

rubyconfig.action_mailer.raise_delivery_errors=trueconfig.action_mailer.perform_deliveries=true

尝试使用 Ruby on Rails中的Exchange Server进行身份验证时出现此错误:

504 5.7.4 Unrecognized authentication
type

config.action_mailer.raise_delivery_errors = true config.action_mailer.perform_deliveries = true config.action_mailer.delivery_method = :smtp config.action_mailer.smtp_settings = { :address => "x.x.x.x", :port => 25, :user_name => "xxdomain\xxuser", :password => "xxxxxx", :authentication => :login, :enable_starttls_auto => true }

我已经尝试了各种配置设置组合,包括更改设置以使用“普通”身份验证,添加域,将enable_starttls_auto设置为true,false,并完全删除它,删除端口.没有任何效果.

有任何想法吗?

以下是来自链接:

Rails and Exchange Email Auth

1)将ruby-ntlm gem添加到Gemfile并运行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进行身份验证.

在Ruby on Rails中,如何处理从Rails到Exchange的认证过程中无法识别的认证类型问题?

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

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

本文共计308个文字,预计阅读时间需要2分钟。

在Ruby on Rails中,如何处理从Rails到Exchange的认证过程中无法识别的认证类型问题?

尝试使用 Ruby on Rails 中的 Exchange Server 进行身份验证时出现此错误:504 5.7.4 Unrecognized authentication type。确保已正确配置邮件发送设置:

rubyconfig.action_mailer.raise_delivery_errors=trueconfig.action_mailer.perform_deliveries=true

尝试使用 Ruby on Rails中的Exchange Server进行身份验证时出现此错误:

504 5.7.4 Unrecognized authentication
type

config.action_mailer.raise_delivery_errors = true config.action_mailer.perform_deliveries = true config.action_mailer.delivery_method = :smtp config.action_mailer.smtp_settings = { :address => "x.x.x.x", :port => 25, :user_name => "xxdomain\xxuser", :password => "xxxxxx", :authentication => :login, :enable_starttls_auto => true }

我已经尝试了各种配置设置组合,包括更改设置以使用“普通”身份验证,添加域,将enable_starttls_auto设置为true,false,并完全删除它,删除端口.没有任何效果.

有任何想法吗?

以下是来自链接:

Rails and Exchange Email Auth

1)将ruby-ntlm gem添加到Gemfile并运行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进行身份验证.

在Ruby on Rails中,如何处理从Rails到Exchange的认证过程中无法识别的认证类型问题?

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

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