Project

General

Profile

Actions

Bug #2749

closed

net/smtp.rb arbitrary Net::SMTPUnknownError: could not get 3xx (250) and Net::SMTPUnknownError: 354 End data with <CR><LF>.<CR><LF>

Added by trevor (trevor 6) almost 15 years ago. Updated over 13 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.2dev (2010-02-03 trunk 26544) [x86_64-darwin10.2.0]
Backport:
[ruby-core:28183]

Description

=begin
% postconf -d | grep mail_version\ =
mail_version = 2.6.5
% ruby -v
ruby 1.9.2dev (2010-02-03 trunk 26544) [x86_64-darwin10.2.0]

When trying to send mail through my mail server via net/smtp.rb I'm getting the following error. Authentication is made, but mail is not delivered.

Net::SMTPUnknownError: could not get 3xx (250)
from /usr/local/lib/ruby/1.9.1/net/smtp.rb:936:in check_continue' from /usr/local/lib/ruby/1.9.1/net/smtp.rb:876:in block in data'
from /usr/local/lib/ruby/1.9.1/net/smtp.rb:921:in critical' from /usr/local/lib/ruby/1.9.1/net/smtp.rb:875:in data'
from /usr/local/lib/ruby/1.9.1/net/smtp.rb:655:in send_message' from /usr/local/lib/ruby/gems/1.9.1/gems/mail-2.1.2/lib/mail/network/delivery_methods/smtp.rb:102:in block in deliver!'
from /usr/local/lib/ruby/1.9.1/net/smtp.rb:526:in start' from /usr/local/lib/ruby/gems/1.9.1/gems/mail-2.1.2/lib/mail/network/delivery_methods/smtp.rb:101:in deliver!'
from /usr/local/lib/ruby/gems/1.9.1/gems/mail-2.1.2/lib/mail/message.rb:1772:in do_delivery' from /usr/local/lib/ruby/gems/1.9.1/gems/mail-2.1.2/lib/mail/message.rb:216:in block in deliver'
from /usr/local/lib/ruby/gems/1.9.1/gems/actionmailer-3.0.0.beta/lib/action_mailer/base.rb:318:in block in deliver_mail' from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0.beta/lib/active_support/notifications/instrumenter.rb:18:in instrument'
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0.beta/lib/active_support/notifications.rb:49:in instrument' from /usr/local/lib/ruby/gems/1.9.1/gems/actionmailer-3.0.0.beta/lib/action_mailer/base.rb:316:in deliver_mail'
from /usr/local/lib/ruby/gems/1.9.1/gems/mail-2.1.2/lib/mail/message.rb:216:in deliver' from (irb):2 from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.0.beta/lib/rails/commands/console.rb:47:in start'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.0.beta/lib/rails/commands/console.rb:8:in start' from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.0.beta/lib/rails/commands.rb:34:in <top (required)>'

When I comment out line 936 of net/smtp.rb (raise SMTPUnknownError, "could not get 3xx (#{res.status})"), I receive the following error but in spite of it mail is successfully sent.

Net::SMTPUnknownError: 354 End data with .

from /usr/local/lib/ruby/1.9.1/net/smtp.rb:930:in check_response' from /usr/local/lib/ruby/1.9.1/net/smtp.rb:884:in data'
from /usr/local/lib/ruby/1.9.1/net/smtp.rb:655:in send_message' from /usr/local/lib/ruby/gems/1.9.1/gems/mail-2.1.2/lib/mail/network/delivery_methods/smtp.rb:102:in block in deliver!'
from /usr/local/lib/ruby/1.9.1/net/smtp.rb:526:in start' from /usr/local/lib/ruby/gems/1.9.1/gems/mail-2.1.2/lib/mail/network/delivery_methods/smtp.rb:101:in deliver!'
from /usr/local/lib/ruby/gems/1.9.1/gems/mail-2.1.2/lib/mail/message.rb:1772:in do_delivery' from /usr/local/lib/ruby/gems/1.9.1/gems/mail-2.1.2/lib/mail/message.rb:216:in block in deliver'
from /usr/local/lib/ruby/gems/1.9.1/gems/actionmailer-3.0.0.beta/lib/action_mailer/base.rb:318:in block in deliver_mail' from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0.beta/lib/active_support/notifications/instrumenter.rb:18:in instrument'
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0.beta/lib/active_support/notifications.rb:49:in instrument' from /usr/local/lib/ruby/gems/1.9.1/gems/actionmailer-3.0.0.beta/lib/action_mailer/base.rb:316:in deliver_mail'
from /usr/local/lib/ruby/gems/1.9.1/gems/mail-2.1.2/lib/mail/message.rb:216:in deliver' from (irb):1 from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.0.beta/lib/rails/commands/console.rb:47:in start'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.0.beta/lib/rails/commands/console.rb:8:in start' from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.0.beta/lib/rails/commands.rb:34:in <top (required)>'
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0