Redmine Email 504 5.7.4 Unrecognized authentication type
When sending test email or sending email notification in Redmine, you see the follow error,
An error occurred while sending mail (504 5.7.4 Unrecognized authentication type )
This is caused by the target SMTP service may not require any authentication while sending the email from your application. In order to make Redmine email work properly,
Firstly, open the ruby file environment.rb
Drive:\redmine-version\config\environment.rb
Find the line
# SMTP server configuration config.action_mailer.smtp_settings = { :address => "127.0.0.1", :port => 25, :domain => "domain.foo", :authentication => :login, # delete this line ! :user_name => "username", # delete this line ! :password => "password", # delete this line ! }
Remove the following lines and save the file,
- :authentication => :login
- :user_name => “username”
- :password => “password”
It should look similar to this below,
# SMTP server configuration config.action_mailer.smtp_settings = { :address => "127.0.0.1", :port => 25, :domain => "domain.foo", }
The last step is to restart the service. for example hosted by the Mongrel
Remine is simple and practical project management tool which has issue tracking, time logging, news, user permission and other goodies. It was developed in Ruby On Rails. It can be hosted in IIS or Apache. The easiest and fastest way is to host it under Mongrel as windows service.
4 Responses to “Redmine Email 504 5.7.4 Unrecognized authentication type”
Comment from Mr.Dourado
Time September 30, 2011 at 7:51 am
A old post with great information! This help me in first web search result! Thanks.
Comment from Darshan Kumar
Time February 20, 2012 at 11:56 pm
Great Info!!
And thank you.
Comment from http://leonidv.myopenid.com/
Time January 13, 2009 at 10:28 am
Good tips, save couple hours for me.
Only one correction – in Redmine 0.8 smtp setting had been moved to config/email.yml.