Forums Redmine

SMTP configuration

Subscribe to SMTP configuration 9 post(s), 3 voice(s)

 
Avatar mcguiret 1 post

What information (and the format) is needed in the SMTP Configuration step of installing the Redmine stack?

Also, what additional functionality will be supported by setting up the SMTP?
Thanks,
~Tim

 
Avatar beltran Administrator 371 post(s)

Hi Tim,

You can configure SMTP during the installation to let Redmine application to send emails. You should configure the following parameters:

address – The address of SMTP server.
port – The port of SMTP server.
domain – The domain name of SMTP server.
user_name – Your user name of SMTP server.
password – Your password of SMTP server.

You can find these parameters in your email account. The server connection is not secure by default, but you can follow the steps to connect to SMTP server using TLS. There is more information about this at http://blog.jasonbynum.com/redmine-google-apps-email-and-slicehost-in-10-steps

I hope it helps.

 
Avatar syed 7 post(s)

Dear Beltran,

I configured the SMTP after installation by editing the ..\redmine\config\environment.rb file.
After that I got the below error when I try to send a test mail.
Do you think this is a firewall problem?
There is no Windows firewall/ant-virus fire wall. Do you think I need to add an exception. If so, which files?
OR what else the problem can be.

“An error occurred while sending mail (getaddrinfo: no address associated with hostname.)”

Please guide me.

Thanks & Best Regards,
Syed

 
Avatar beltran Administrator 371 post(s)

Hi,

Could you post your SMTP configuration? It seems that is related to the hostname.

 
Avatar syed 7 post(s)

SMTP Server Configuration in the file environment.rb is

Config.action_mailer.smtp_settings =

address => “OurComapnySMTPServerName.OurCompanyName.com”
port => 25
domain => “OurCompanyName.com”
authentication => login
user_name => “MyUserName”
password => “MyPassword”

And,

config.action_mailer.perform_deliveries = true
config.action_mailer.delivery_method = smtp

Also please note that

I am admin for redmine and My Company user Name & My Company Password are used in this config.
My Mail ID is like MyUserName.OurCompanyName.com

Do you need any other inputs(s)?

Thanks & Best Regards,
Syed

 
Avatar beltran Administrator 371 post(s)

Could you try to ping to your companyHostName?

ping OurCompanysDomainName.com

 
Avatar syed 7 post(s)

Yes.
I did a ping and it is successful.
Also, I tried our Mail Server in a Python Script and it worked.

But in redmine, this error …

 
Avatar beltran Administrator 371 post(s)

Sorry but i don’t know what is happening. We are working with Redmine and the SMTP configuration works ok for us. Maybe in the Redmine forums you can find more help abut this. If you find the solution please post in this thread.

Thanks.

 
Avatar syed 7 post(s)

In the redmine forums, it says that it is a firewall problem.
That means I need to add an exception.
In that case, which files I need to put under exception?

Any idea(s)?

Thanks & Best Regards,
Syed

Forums Redmine