On 03/10/2009 16:34, Jan Wagner wrote:
Package: redmine Version: 0.9.0~svn2902-1 Severity: importantHi Jérémy, just a second bug as reminder. :) When trying to send a testmail (e.g. notifications) I get the following: An error occurred while sending mail (hostname was not match with the server certificate) Modifying /usr/share/rails/actionmailer/lib/action_mailer/base.rb like described in [1] is working, but the file is part of the rails package: --- /usr/share/rails/actionmailer/lib/action_mailer/base.rb.orig 2009-10-03 16:30:31.000000000 +0200 +++ /usr/share/rails/actionmailer/lib/action_mailer/base.rb 2009-10-03 16:30:22.000000000 +0200 @@ -678,7 +678,7 @@ sender = mail['return-path'] || mail.from smtp = Net::SMTP.new(smtp_settings[:address], smtp_settings[:port]) - smtp.enable_starttls_auto if smtp.respond_to?(:enable_starttls_auto) + smtp.enable_starttls_auto if smtp_settings[:enable_starttls_auto]&& smtp.respond_to?(:enable_starttls_auto) smtp.start(smtp_settings[:domain], smtp_settings[:user_name], smtp_settings[:password], smtp_settings[:authentication]) do |smtp| smtp.sendmail(mail.encoded, sender, destinations) # grep -v ^# /etc/redmine/default/email.yml |grep -v ^$ production: delivery_method: :smtp smtp_settings: enable_starttls_auto: false address: localhost port: 25 domain: cyconet.org authentication: :none So I don't want to touch the action_mailer/base.rb, since it would be overwritten with the next package update of rails. Anyways ... the rails package is 2.2.3-1~bpo50+1. With kind regards, Jan. [1] http://www.redmine.org/boards/2/topics/6446
I just tested it, with your email.yml, and it worked for me. Maybe your localhost mail server has some config problem ? Please try to give me more info on this. -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

