Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Net::SMTPFatalError (554 Transaction failed: Missing final '@domain' #132

Closed
allaire opened this issue Mar 8, 2013 · 3 comments
Closed

Comments

@allaire
Copy link

allaire commented Mar 8, 2013

Using Amazon SES, I keep getting this error when exception_notification tries to send an email. My other emails are sent normally, I don't know what's wrong.

  config.action_mailer.smtp_settings = {
    :address              => 'email-smtp.us-east-1.amazonaws.com',
    :user_name            => 'USERNAME',
    :password             => 'PASS HERE,
    :authentication       => :login,
    :enable_starttls_auto => true
  }
  # Send email on exceptions
  config.middleware.use ::ExceptionNotifier,
    :email_prefix         => "[Web Exception] ",
    :sender_address       => %w{"Info" <info@lodgem.com>},
    :exception_recipients => %w{dev@lodgem.com}

Trace:

Completed 500 Internal Server Error in 1044ms
  Rendered /home/deployer/apps/web/shared/bundle/ruby/1.9.1/gems/exception_notification-3.0.1/lib/exception_notifier/views/exception_notifier/_request.text.erb (1.3ms)
  Rendered /home/deployer/apps/web/shared/bundle/ruby/1.9.1/gems/exception_notification-3.0.1/lib/exception_notifier/views/exception_notifier/_title.text.erb (0.6ms)
  Rendered /home/deployer/apps/web/shared/bundle/ruby/1.9.1/gems/exception_notification-3.0.1/lib/exception_notifier/views/exception_notifier/_session.text.erb (1.4ms)
  Rendered /home/deployer/apps/web/shared/bundle/ruby/1.9.1/gems/exception_notification-3.0.1/lib/exception_notifier/views/exception_notifier/_title.text.erb (0.1ms)
  Rendered /home/deployer/apps/web/shared/bundle/ruby/1.9.1/gems/exception_notification-3.0.1/lib/exception_notifier/views/exception_notifier/_environment.text.erb (6.6ms)
  Rendered /home/deployer/apps/web/shared/bundle/ruby/1.9.1/gems/exception_notification-3.0.1/lib/exception_notifier/views/exception_notifier/_title.text.erb (0.1ms)
  Rendered /home/deployer/apps/web/shared/bundle/ruby/1.9.1/gems/exception_notification-3.0.1/lib/exception_notifier/views/exception_notifier/_backtrace.text.erb (0.9ms)
  Rendered /home/deployer/apps/web/shared/bundle/ruby/1.9.1/gems/exception_notification-3.0.1/lib/exception_notifier/views/exception_notifier/_title.text.erb (0.1ms)
  Rendered /home/deployer/apps/web/shared/bundle/ruby/1.9.1/gems/exception_notification-3.0.1/lib/exception_notifier/views/exception_notifier/exception_notification.text.erb (33.1ms)

Sent mail to "Developers", dev@lodgem.com (466ms)

Net::SMTPFatalError (554 Transaction failed: Missing final '@domain'
):
  /usr/local/lib/ruby/1.9.1/net/smtp.rb:948:in `check_response'
  /usr/local/lib/ruby/1.9.1/net/smtp.rb:902:in `data'
  /usr/local/lib/ruby/1.9.1/net/smtp.rb:660:in `block in send_message'
  /usr/local/lib/ruby/1.9.1/net/smtp.rb:849:in `rcptto_list'
  /usr/local/lib/ruby/1.9.1/net/smtp.rb:660:in `send_message'
  mail (2.4.4) lib/mail/network/delivery_methods/smtp.rb:145:in `block in deliver!'
  /usr/local/lib/ruby/1.9.1/net/smtp.rb:520:in `start'
  mail (2.4.4) lib/mail/network/delivery_methods/smtp.rb:144:in `deliver!'
  mail (2.4.4) lib/mail/message.rb:2034:in `do_delivery'
  mail (2.4.4) lib/mail/message.rb:229:in `block in deliver'
  actionmailer (3.2.12) lib/action_mailer/base.rb:415:in `block in deliver_mail'
  activesupport (3.2.12) lib/active_support/notifications.rb:123:in `block in instrument'
  activesupport (3.2.12) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
  activesupport (3.2.12) lib/active_support/notifications.rb:123:in `instrument'
  actionmailer (3.2.12) lib/action_mailer/base.rb:413:in `deliver_mail'
  mail (2.4.4) lib/mail/message.rb:229:in `deliver'
  exception_notification (3.0.1) lib/exception_notifier.rb:49:in `rescue in call'
  exception_notification (3.0.1) lib/exception_notifier.rb:41:in `call'

Anyone has a clue?

@san650
Copy link

san650 commented Dec 9, 2015

@allaire Were you able to fix this error?

@allaire
Copy link
Author

allaire commented Dec 9, 2015

@san650 That's almost 3 years old but AFAIR this was caused by a bad smtp hostname.

@san650
Copy link

san650 commented Dec 14, 2015

@smartinez87 this issue can be closed

@san650 san650 closed this as completed Dec 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants