Project

General

Profile

Redmine doesn´t send test mail notification

Added by Alejandro Celery over 16 years ago

Hello All.
I´m trying to get Redmine to send mail-notifications. I´ve started with the "send test e-mail notification" test but no succcess. Redmine says "A mail has been sent to xxx" but it does not get sent.
I have two linux servers in my network: A mail server at fixed 192.168.0.6 (hostname neo) and the redmine server (hostname morfeo). I sniff port 25 at my mail server with tcpdump and I don´t even get connection attemps, i suspect i´m messing up my smtp server configuration.

This is the output you asked for:
ruby 1.8.6 (2007-06-07 patchlevel 36) [x86_64-linux]
Rails 2.0.2
Ubuntu 7.10 Server 64bit edition (real, not VM)
mysql Ver 14.12 Distrib 5.0.45, for pc-linux-gnu (x86_64) using readline 5.2
Apache with Mongrel cluster
Powered by Redmine 0.6.3.1354

And this is the configuration I tried to no avail: # SMTP server configuration
config.action_mailer.smtp_settings = {
:address => "192.168.0.6",
:port => 25,
:domain => "neo-pentatek.com",
:authentication => :login,
:user_name => "",
:password => "redmine",
}
config.action_mailer.perform_deliveries = true
#config.action_mailer.delivery_method = :test
config.action_mailer.delivery_method = :smtp

The output from RAILS_ENV=production script/about is:
alejandro@morfeo:/var/www/redmine$ RAILS_ENV=production script/about
/usr/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:263:in `load_missing_constant': uninitialized constant Rails::Info (NameError)
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:453:in `const_missing'
from /usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/about.rb:2
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
from script/about:3

One more (silly) thing: When you say "restart redmine", in my case it would be to restart apache? the mongrel cluster? Both in any particular order?
Thanks a lot for the time.

Regards,
Alex from Argentina.


Replies (3)

RE: Redmine doesn´t send test mail notification - Added by Thomas Lecavelier over 16 years ago

Hi,

You should try a SMTP discussion with your mail serveur through telnet (ask google, there's plenty examples) to check if your settings are goods. Some mail servers are configured to silently deny access from unauthorized users.

If it works, you should try to update your gems:

# gem update

When "restarting redmine", it just means to restart your mongrel_cluster.

RE: Redmine doesn´t send test mail notification - Added by Alejandro Celery over 16 years ago

Thomas, thanks for the reply.

I did a lot of SMTP debugging with my server when I set it up some time ago here. That is not being the problem. I checked this by sniffing the SMTP port on the mail server and verifying that I do not get TCP connections from the Redmine server.

I´m more suspicious of this configuration, does it strike you as OK?
  1. SMTP server configuration
    config.action_mailer.smtp_settings = {
    :address => "192.168.0.6",
    :port => 25,
    :domain => "neo-pentatek.com",
    :authentication => :login,
    :user_name => "",
    :password => "redmine",
    }
    config.action_mailer.perform_deliveries = true
    #config.action_mailer.delivery_method = :test
    config.action_mailer.delivery_method = :smtp

And then the output from RAILS_ENV=production script/about contains a few errors. I don´t know the meaning of this output, could you please clarify it for me, or even if it is important? It does not look like what someone else posted in the forum when he asked for it.
alejandro@morfeo:/var/www/redmine$ RAILS_ENV=production script/about
/usr/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:263:in `load_missing_constant': uninitialized constant Rails::Info (NameError)
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:453:in `const_missing'
from /usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/about.rb:2
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
from script/about:3

I will try the SMTP discussion JIC, but i´m quite sure it´s not the problem.
Thanks again.

Regards,
Alex

RE: Redmine doesn´t send test mail notification - Added by Alejandro Celery over 16 years ago

Hi all, just to say that i fixed the problem, it was due to my configuration. This is the config that worked for me:

  1. SMTP server configuration
    config.action_mailer.smtp_settings = {
    :address => "neo",
    :port => 25,
    :domain => "neo-pentatek.com",
    :authentication => :login,
    #:user_name => "redmine",
    #:password => "redmine",
    }

    config.action_mailer.perform_deliveries = true

    1. Tell ActionMailer not to deliver emails to the real world.
    2. The :test delivery method accumulates sent emails in the
    3. ActionMailer::Base.deliveries array.
      #config.action_mailer.delivery_method = :test
      config.action_mailer.delivery_method = :smtp

I´m not quite sure as to why it worked with auth => login but without user_name and passwordname, but it did. My Postifx server works with plaintext auth, is there a "plain" auth method with redmine? I know it should go with TLS but it´s not open to the public, just inter-office.
Anyhow, thanks for the help!

Regards,
Alex

    (1-3/3)