Project

General

Profile

Problems with mail configuration

Added by Jorge Cabrera almost 13 years ago

Hi,

It seems that my problem is quite common but I haven't had a solution yet in this forums or searching google.

I'm running Redmine on a Debian server but I didn't installed it by package, I did it by hand. My redmine version is 1.1.2 and I'm using Apache and Passenger's module. I'm trying to configure email notifications on Redmine. When I clicked on "Settings => Email notifications" I get the following error:

Email delivery is not configured, and notifications are disabled.
Configure your SMTP server in config/email.yml and restart the application to enable them.

So I copied email.yml.example to email.yml and put the following lines:

production:
  delivery_method: :smtp
  smtp_settings:
    address: "my.mail.server" 
    port: 25
    domain: my.domain

Restarted Apache (even restarted the whole server out of desperation) and I see the same message:

Email delivery is not configured, and notifications are disabled.
Configure your SMTP server in config/email.yml and restart the application to enable them.

Files permissions are ok and the owner is redmine user. Can anyone please give me any pointers or maybe tell me where can I debug this to find why is Redmine not finding this file.

Best regards


Replies (5)

RE: Problems with mail configuration - Added by Felix Schäfer almost 13 years ago

Jorge Cabrera wrote:

I'm running Redmine on a Debian server but I didn't installed it by package, I did it by hand. My redmine version is 1.1.2 and I'm using Apache and Passenger's module. I'm trying to configure email notifications on Redmine. When I clicked on "Settings => Email notifications" I get the following error:

Passenger doesn't always run apps as the user one thinks it does. Clues to find out which user Redmine is run as is to look at the user creating the logs in the log directory and/or have a look at the process list on the server.

RE: Problems with mail configuration - Added by Jorge Cabrera almost 13 years ago

Hi Felix, thanks for your reply. I checked and permissions are ok. Passenger is executed by root and my redmine user and they both have permissions to read and write on that file.

Any other ideas?

RE: Problems with mail configuration - Added by Felix Schäfer almost 13 years ago

Well, configuration has been moved to config/configuration.yml in recent versions, but I'm not sure which and it should still support the old email.yml, so, other than that, no idea.

RE: Problems with mail configuration - Added by Jorge Cabrera almost 13 years ago

So I should configure everything mail related on configuration.yml? I'm on version 1.1.2. I see that 1.1.3 is out... should I upgrade? It doesn't even read the email.yml file.

RE: Problems with mail configuration - Added by Ivan Cenov almost 13 years ago

I am running 1.1.3 on production site at our company and the configuration is in email.yml and it works.
email.yml works in 1.2.0.stable (trunk) and also, configuration.yml works too in 1.2.0.stable. I tested right now 1.1.1 - it does not work with configuration.yml.

    (1-5/5)