[Cruisecontrolrb-users] Email notifications
Niels Meersschaert
nmeersschaert at mac.com
Fri May 18 15:41:52 EDT 2007
Yuri,
Thanks for the suggestion, but unfortunately, I only have Postfix
running on this server, so using :sendmail doesn't work. I'll keep
trying some other variations, hopefully something will work, or
someone else might have a suggestion on how to get this working.
Thanks again,
Niels
On May 18, 2007, at 3:21 PM, Yuri Gadow wrote:
> Niels,
>
> I had the same trouble and resolved it by using :sendmail instead
> of :smtp (postfix is running on the same machine.) That's not a
> good solution for most, but since you're settings are for
> localhost, it may work for you too.
>
> So,
>
> ActionMailer::Base.delivery_method = :sendmail
>
> and no other settings.
>
>
> Yuri
>
> On 5/18/07, Niels Meersschaert < nmeersschaert at mac.com> wrote:
> I'm running into problems getting email notifications to work with
> Cruisecontrol.
>
> I get these errors in project_builder.log
>
> [error] [2007-05-18 13:48:23] Error sending e-mail - current server
> settings are :
> :password = nil
> :domain = "localhost.localdomain "
> :port = 25
> :user_name = nil
> :address = "localhost"
> :authentication = nil
> [error] 502 Error: command not implemented
>
> [error] /usr/lib/ruby/1.8/net/smtp.rb:680:in `check_response'
> [error] /usr/lib/ruby/1.8/net/smtp.rb:653:in `getok'
> [error] /usr/local/cruisecontrolrb-1.1.0/vendor/plugins/
> action_mailer_tls/smtp_tls.rb:56:in `starttls'
> [error] /usr/local/cruisecontrolrb-1.1.0 /vendor/plugins/
> action_mailer_tls/smtp_tls.rb:19:in `do_start'
> [error] /usr/lib/ruby/1.8/net/smtp.rb:378:in `start'
> [error] /usr/lib/ruby/1.8/net/smtp.rb:316:in `start'
> [error] /usr/local/cruisecontrolrb- 1.1.0/config/../script/../
> config/../vendor/rails/actionmailer/lib/action_mailer/base.rb:565:in
> `perform_delivery_smtp'
> [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../
> config/../vendor/rails/actionmailer/lib/action_mailer/base.rb:451:in
> `deliver!'
> [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../
> config/../vendor/rails/actionmailer/lib/action_mailer/base.rb:333:in
> `method_missing'
> [error] /usr/local/cruisecontrolrb- 1.1.0/config/../script/../
> config/../builder_plugins/installed/email_notifier.rb:52:in `email'
> [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../
> config/../builder_plugins/installed/email_notifier.rb:41:in
> `build_finished'
> [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../
> config/../app/models/project.rb:293:in `notify'
> [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../
> config/../app/models/project.rb:291:in `notify'
> [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../
> config/../app/models/project.rb:276:in `build'
> [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../
> config/../app/models/project.rb:205:in `build_if_necessary'
> [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../
> config/../app/models/polling_scheduler.rb:13:in `run'
> [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/builder:82
> [error] /usr/local/cruisecontrolrb- 1.1.0/config/../script/
> builder:81
> [error] /usr/local/cruisecontrolrb-1.1.0/config/../cruise:14:in
> `builder'
> [error] /usr/local/cruisecontrolrb-1.1.0/config/../cruise:66
> [error] Error in plugin EmailNotifier: 502 Error: command not
> implemented
>
> [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../
> config/../app/models/project.rb:318:in `notify'
> [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../
> config/../app/models/project.rb:276:in `build'
> [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../
> config/../app/models/project.rb:205:in `build_if_necessary'
> [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../
> config/../app/models/polling_scheduler.rb:13:in `run'
> [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/builder:82
> [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/builder:81
> [error] /usr/local/cruisecontrolrb-1.1.0/config/../cruise:14:in
> `builder'
> [error] /usr/local/cruisecontrolrb-1.1.0/config/../cruise:66
>
> I have trac on the same machine using localhost as the smtp server
> with no authentication & that works fine. Any suggestions on how to
> tweak the config? I've tried editing site_config.rb to the
> following, with no change:
>
> ActionMailer::Base.smtp_settings = {
> :address => "localhost"
> }
>
> Thanks,
>
> Niels
> _______________________________________________
> Cruisecontrolrb-users mailing list
> Cruisecontrolrb-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users
>
>
>
> --
> Yuri Gadow
> http://yuri.gadow.name/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070518/8ca0ad93/attachment.html
More information about the Cruisecontrolrb-users
mailing list