Forum: Ruby on Rails Action Mailer problem

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Tam K. (Guest)
on 2009-03-21 22:46
Hello,

I'm trying to make my rails app send mail.

I'm using Postfix + Dovecot + SASL on Linux Debian VPS:
http://www.debianadmin.com/debian-mail-server-setu...

I'm using the following configuration in environment.rb:

config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
  :address => "localhost",
  :port => 25,
  :domain => "domain.com",
  :user_name => "user",
  :password => "password",
  :authentication => :plain
}

I see the following error:
/!\ FAILSAFE /!\  Sat Mar 21 13:40:53 -0700 2009
  Status: 500 Internal Server Error
  535 5.7.0 Error: authentication failed: authentication failure

    /opt/ruby-enterprise-1.8.6-20090201/lib/ruby/1.8/net/smtp.rb:585:in
`auth_login'
    /opt/ruby-enterprise-1.8.6-20090201/lib/ruby/1.8/net/smtp.rb:570:in
`__send__'
    /opt/ruby-enterprise-1.8.6-20090201/lib/ruby/1.8/net/smtp.rb:570:in
`authenticate'
    /opt/ruby-enterprise-1.8.6-20090201/lib/ruby/1.8/net/smtp.rb:410:in
`do_start'
    /opt/ruby-enterprise-1.8.6-20090201/lib/ruby/1.8/net/smtp.rb:377:in
`start'
    /opt/ruby-enterprise-1.8.6-20090201/lib/ruby/1.8/net/smtp.rb:315:in
`start'
    /var/www/releases/20090318014324/vendor/rails/actionmailer/lib/action_mailer/base.rb:627:in
`perform_delivery_smtp'
    /var/www/releases/20090318014324/vendor/rails/actionmailer/lib/action_mailer/base.rb:508:in
`__send__'
    /var/www/releases/20090318014324/vendor/rails/actionmailer/lib/action_mailer/base.rb:508:in
`deliver!'
    /var/www/releases/20090318014324/vendor/rails/actionmailer/lib/action_mailer/base.rb:383:in
`method_missing'
    /var/www/releases/20090318014324/app/controllers/application.rb:74:in
`log_error'
    /var/www/releases/20090318014324/vendor/rails/actionpack/lib/action_controller/rescue.rb:115:in
`rescue_action'
    /var/www/releases/20090318014324/vendor/rails/actionpack/lib/action_controller/rescue.rb:203:in
`perform_action_without_caching'
    /var/www/releases/20090318014324/vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:13:in
`perform_action'

..........

Any ideas?

Thanks,

Tam
This topic is locked and can not be replied to.