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.
Leave a Reply