Project

General

Profile

Email notifications - Error

Added by Josef S. almost 14 years ago

Hello,

I have trouble to configure the email notification in Redmine v. 1.1.1.
At first I configured the email.yml file:

production:
  delivery_method: :smtp
  smtp_settings:
    address: 192.168.1.54
    port: 25
    domain: domain.de
    authentication: :login
    user_name: "max" 
    password: "max" 

And than I tried to send a testmail in Redmine and got the following error:

An error occurred while sending mail (getaddrinfo: Die Speichersteuerbl�cke wurden zerst�rt. )

The SMTP server is located in our company, but the SMTP server is not running on the same server as redmine.

Log file:

Processing AdminController#test_email (for 192.168.1.177 at 2011-03-04 11:31:36) [GET]
  Parameters: {"action"=>"test_email", "controller"=>"admin"}
Sending email notification to: test@meinedomain.de
Redirected to http://server:3000/settings/edit?tab=notifications
Completed in 11ms (DB: 2) | 302 Found [http://server/admin/test_email]

Here are a few additional information:

c:\Program Files (x86)\Redmine>gem list

*** LOCAL GEMS ***

actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
cgi_multipart_eof_fix (2.5.0)
edavis10-object_daddy (0.4.3)
gem_plugin (0.2.3)
i18n (0.4.2)
mocha (0.9.12)
mongrel (1.1.5 x86-mingw32)
mongrel_service (0.3.4 i386-mswin32)
mysql (2.8.1 x86-mingw32)
rack (1.0.1)
rails (2.3.5)
rake (0.8.7)
rubygems-update (1.4.2)
shoulda (2.10.3)
sqlite3 (1.3.3 x86-mingw32)
sqlite3-ruby (1.3.3)
win32-service (0.5.2 mswin32)

c:\Program Files (x86)\Redmine>ruby -v
ruby 1.8.7 (2011-02-18 patchlevel 334) [i386-mingw32]
c:\Program Files (x86)\Redmine>gem -v
1.4.2

I really don't know where the problem is. Can anyone help me?

Best regards, Beppo


Replies (5)

RE: Email notifications - Error - Added by Etienne Massip almost 14 years ago

Use a dns name instead of IP ?

RE: Email notifications - Error - Added by Josef S. almost 14 years ago

Now I tried to solve to problem with the dns name, but it doesn't work.

production:
  delivery_method: :smtp
  smtp_settings:
    address: smtpserver
    port: 25
    domain: domain.de
    authentication: :login
    user_name: "max" 
    password: "max" 

RE: Email notifications - Error - Added by Ivan Cenov almost 14 years ago

Is Redmine machine seeing SMTP machine?
Are you able to ping or traceroute the SMTP machine from Redmine machine? May be you have network problem not Ruby/Redmine problem...

or...

Make a try without

    authentication: :login
    user_name: "max" 
    password: "max" 
(if your SMTP server does not require authentication)

RE: Email notifications - Error - Added by Josef S. almost 14 years ago

Thank you for your help.

The solution of my problem was to restart the server.

RE: Email notifications - Error - Added by O.J. Sousa Rodrigues almost 14 years ago

i did everything.

restarted the machine and or apache2 after each config tryout in email.yml

the only thing get is:

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

running it on debian with apache2 and passenger. there must be a way to restart redmine!
how can this information not be in the wiki.
wiki always tells me to restart it, but please! tell me how...

i did search everywhere for this answer... now i am posting it here... please help.

redmine is great.

    (1-5/5)