Help setting up emailing in Redmine
Added by Justin Da Silva over 12 years ago
I have installed Redmine on my server using the BitNami Stack. I now want to enable emailing which was previously disabled. The steps I took were the following:
Renamed config/configuration.yml.EXAMPLE to config/configuration.yml
I added this piece of code for my SMTP settings:
default:
email_delivery:
delivery_method: :smtp
smtp_settings:
address: localhost
port: 25
authentication: :none
#domain:
#authentication: :login
#user_name:
#password:
I then restarted all services.
Went back to the email configuration page where I was glad to see that the settings on the page were now visible. But, I tried sending a test email when I get the following error:
"An error occurred while sending mail (No connection could be made because the target machine actively refused it. - connect(2))"
A few other details I can provide:
- When installed Redmine using BitNami, it told me to set the port to something other than 80 since it was already taken. I installed to port 81.
- I have a WAMP installation on port 80 with a PHP application which has no problems at all sending emails. I never had to configure the SMTP settings. Emailing just seemed to work off the bat. I checked the php.ini file and the STMP server is "localhost" and is on port 25.
Any help is greatly appreciated.
Replies (2)
RE: Help setting up emailing in Redmine - Added by Ivan Cenov over 12 years ago
Compare with my configuration (that works):
# default configuration options for all environments default: # Outgoing emails configuration (see examples above) email_delivery: delivery_method: :smtp smtp_settings: address: "mail.myispprovider.com" port: 25 domain: "mycompany.com" # authentication: :login # user_name: "redmine@example.net" # password: "redmine"
RE: Help setting up emailing in Redmine - Added by Justin Da Silva over 12 years ago
Thanks for your response. Not sure how it all of a sudden started working, but this is what I used:
- default configuration options for all environments
default: # Outgoing emails configuration (see examples above)
email_delivery:
delivery_method: :smtp
smtp_settings:
address: 10.1.20.1
port: 25
domain: "mail.domain.com"
#authentication: :login
#user_name:
#password:
I know that I used the 10.1.20.1 before without success, but maybe it was the fact that I hadn't included the "domain" option.
Anyway, your response lead me to the answer, so thanks!