Action Mailer problem


#1

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-setup-with-postfix-dovecot-sasl-squirrel-mail.html

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:insend
/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:indo_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:instart’
/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:insend
/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:inmethod_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:inrescue_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:inperform_action’

Any ideas?

Thanks,

Tam