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
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
Yuri, While you''re right about that, when I do that, I notice a slight variation from the trac output that seems to be preventing delivery with this technique. Although CruiseControl no longer balks about a plugin error, if I look at the postfix log file I see this for a message from CruiseControl: May 18 16:01:09 106732-dev1 postfix/pickup[25255]: 168793E4634: uid=0 from=<root> For trac, I get May 18 15:00:30 106732-dev1 postfix/smtpd[22360]: connect from localhost[127.0.0.1] May 18 15:00:30 106732-dev1 postfix/smtpd[22360]: 8F14C3E45E6: client=localhost[127.0.0.1] May 18 This also affects the from id, causing it to ignore the user I had set in the site config file & instead use the user that was running cruisecontrol. Although postfix claimed it sent successfully, the messages weren''t received by the addressees. Niels On May 18, 2007, at 4:21 PM, Yuri Gadow wrote:> Niels, > > I also only have postfix as well and it works fine with > the :sendmail option. For the most part, Postfix is a drop-in > replacement for Sendmail. > > Yuri > > On 5/18/07, Niels Meersschaert <nmeersschaert at mac.com> wrote: > 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/ > > > > > -- > Yuri Gadow > http://yuri.gadow.name/-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070518/0bdaf838/attachment-0001.html
Niels, I''m not sure how to fix your problem, but at the company I currently work at, we just created a new gmail account and send the mail from there. Would that work for you? There are instructions on how to do that in the site_config.rb_example. Jeremy On 5/18/07, Niels Meersschaert <nmeersschaert at mac.com> wrote:> > Yuri, > While you''re right about that, when I do that, I notice a slight variation > from the trac output that seems to be preventing delivery with this > technique. Although CruiseControl no longer balks about a plugin error, if > I look at the postfix log file I see this for a message from CruiseControl: > > May 18 16:01:09 106732-dev1 postfix/pickup[25255]: 168793E4634: uid=0 > from=<root> > > For trac, I get > > May 18 15:00:30 106732-dev1 postfix/smtpd[22360]<http://dev1.gucci.com/trac/cms/changeset/22360>: > connect from localhost[127.0.0.1] > May 18 15:00:30 106732-dev1 postfix/smtpd[22360]<http://dev1.gucci.com/trac/cms/changeset/22360>: > 8F14C3E45E6: client=localhost[127.0.0.1] May 18 > > This also affects the from id, causing it to ignore the user I had set in > the site config file & instead use the user that was running cruisecontrol. > Although postfix claimed it sent successfully, the messages weren''t received > by the addressees. > > Niels > > On May 18, 2007, at 4:21 PM, Yuri Gadow wrote: > > Niels, > > I also only have postfix as well and it works fine with the :sendmail > option. For the most part, Postfix is a drop-in replacement for Sendmail. > > Yuri > > On 5/18/07, Niels Meersschaert <nmeersschaert at mac.com> wrote: > > > > 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/ > > > > > > > > > -- > Yuri Gadow > http://yuri.gadow.name/ > > > > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070521/fad8b70c/attachment.html