Redmine Email 504 5.7.4 Unrecognized authentication type

By admin - Last updated: Sunday, October 12, 2008 - Save & Share - 5 Comments

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


Find the line

# SMTP server configuration
        config.action_mailer.smtp_settings = {
                :address => "",
                :port => 25,
                :domain => "",
                :authentication => :login,   # delete this line !
                :user_name => "username", # delete this line !
                :password => "password",   # delete this line !

Remove the following lines and save the file,

It should look similar to this below,

# SMTP server configuration
        config.action_mailer.smtp_settings = {
                :address => "",
                :port => 25,
                :domain => "",

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.

Posted in NotWorking • Tags: , , , Top Of Page

5 Responses to “Redmine Email 504 5.7.4 Unrecognized authentication type”

Comment from
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.

Comment from cejota
Time May 5, 2009 at 9:25 am

Thanks! this info is really hard to find.

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 Soley
Time August 1, 2013 at 7:34 pm

tq for the solutions. it’s help me.

Write a comment

Captcha: 8 + = thirteen