Need help configuring smtp connection

Added by mizi pzor over 13 years ago

I want redmine to be able to send notification emails. I renamed the example file to email.yml and poked around a bit.
But I cant seem to get the "send test email" to work. I get:
"An error occurred while sending mail (No connection could be made because the target machine actively refused it. - connect(2))"

The first search turned up this:
But doesnt that config look wierd? Isnt most of the settings commented out?

I also found this bug:
Could I be affected?

Strange thing is, my searches just turns up people asking for help, no actual documentation about the config files. Or are they hidden somewhere and not included in the searches?

Also found this:
I tried to run the command, but my redmine is hosted on a windows box. RAILS_ENV I guess is an enviorment variable, but I couldnt set it with that command. But running "ruby script\about" at least gave output. Although it seems to default to development env. But the version numbers are still there.

About your application's environment
Ruby version              1.8.6 (i386-mswin32)
RubyGems version          1.3.1
Rails version             2.0.2
Active Record version     2.0.2
Action Pack version       2.0.2
Active Resource version   2.0.2
Action Mailer version     2.0.2
Active Support version    2.0.2
Application root          C:/redmine/redmine-0.7
Environment               development
Database adapter          mysql

Finally, heres my email.yml:

# Outgoing email settings

  delivery_method: :sendmail
    address: xx.xx.xx.xx
    port: 25
    authentication: :none

  delivery_method: :smtp
    port: 25
    authentication: :login
    password: redmine