How do I configure SMTP? #1539

Closed
diaspora-redmine-github-migration opened this Issue Jul 8, 2011 · 1 comment

1 participant

@diaspora-redmine-github-migration

Issue 282 from bugs.joindiaspora.com
Created by: ilya
On Sun Oct 10 05:40:43 2010

Priority: Normal
Status: Fixed

I'm using a standard Ubuntu 10.04 server build. Never had trouble with this sending email out the box for other apps before. However, when I go to request a new password I get what looks like an SMTP authentication failure. Where are the SMTP parameters set?

Net::SMTPAuthenticationError in Devise/passwordsController#create

535-5.7.1 Username and Password not accepted. Learn more at                   



/usr/lib/ruby/1.8/net/smtp.rb:942:in `check_auth_response'
/usr/lib/ruby/1.8/net/smtp.rb:733:in `auth_plain'
/usr/lib/ruby/1.8/net/smtp.rb:725:in `send'
/usr/lib/ruby/1.8/net/smtp.rb:725:in `authenticate'
/usr/lib/ruby/1.8/net/smtp.rb:566:in `do_start'
/usr/lib/ruby/1.8/net/smtp.rb:525:in `start'
mail (2.2.6.1) lib/mail/network/delivery_methods/smtp.rb:101:in `deliver!'
mail (2.2.6.1) lib/mail/message.rb:1892:in `do_delivery'
mail (2.2.6.1) lib/mail/message.rb:226:in `deliver'
actionmailer (3.0.0) lib/action_mailer/base.rb:401:in `deliver_mail'
activesupport (3.0.0) lib/active_support/notifications.rb:52:in `instrument'
activesupport (3.0.0) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
activesupport (3.0.0) lib/active_support/notifications.rb:52:in `instrument'
actionmailer (3.0.0) lib/action_mailer/base.rb:399:in `deliver_mail'
mail (2.2.6.1) lib/mail/message.rb:226:in `deliver'
/home/matt/.bundler/ruby/1.8/devise-88ab2fe14e88/lib/devise/models/recoverable.rb:31:in `send_reset_password_instructions'
/home/matt/.bundler/ruby/1.8/devise-88ab2fe14e88/lib/devise/models/recoverable.rb:59:in `send_reset_password_instructions'
/home/matt/.bundler/ruby/1.8/devise-88ab2fe14e88/app/controllers/devise/passwords_controller.rb:13:in `create'
actionpack (3.0.0) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (3.0.0) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (3.0.0) lib/abstract_controller/base.rb:150:in `process_action'
actionpack (3.0.0) lib/action_controller/metal/rendering.rb:11:in `process_action'
actionpack (3.0.0) lib/abstract_controller/callbacks.rb:18:in `process_action'
activesupport (3.0.0) lib/active_support/callbacks.rb:450:in `_run__905181335__process_action__524098549__callbacks'
activesupport (3.0.0) lib/active_support/callbacks.rb:409:in `send'
activesupport (3.0.0) lib/active_support/callbacks.rb:409:in `_run_process_action_callbacks'
activesupport (3.0.0) lib/active_support/callbacks.rb:93:in `send'
activesupport (3.0.0) lib/active_support/callbacks.rb:93:in `run_callbacks'
actionpack (3.0.0) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (3.0.0) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
activesupport (3.0.0) lib/active_support/notifications.rb:52:in `instrument'
activesupport (3.0.0) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
activesupport (3.0.0) lib/active_support/notifications.rb:52:in `instrument'
actionpack (3.0.0) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
actionpack (3.0.0) lib/action_controller/metal/rescue.rb:17:in `process_action'
actionpack (3.0.0) lib/abstract_controller/base.rb:119:in `process'
actionpack (3.0.0) lib/abstract_controller/rendering.rb:40:in `process'
actionpack (3.0.0) lib/action_controller/metal.rb:133:in `dispatch'
actionpack (3.0.0) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
actionpack (3.0.0) lib/action_controller/metal.rb:173
actionpack (3.0.0) lib/action_dispatch/routing/route_set.rb:62:in `call'
actionpack (3.0.0) lib/action_dispatch/routing/route_set.rb:62:in `dispatch'
actionpack (3.0.0) lib/action_dispatch/routing/route_set.rb:27:in `call'
rack-mount (0.6.13) lib/rack/mount/route_set.rb:148:in `call'
rack-mount (0.6.13) lib/rack/mount/code_generation.rb:93:in `recognize'
rack-mount (0.6.13) lib/rack/mount/code_generation.rb:117:in `optimized_each'
rack-mount (0.6.13) lib/rack/mount/code_generation.rb:92:in `recognize'
rack-mount (0.6.13) lib/rack/mount/route_set.rb:139:in `call'
actionpack (3.0.0) lib/action_dispatch/routing/route_set.rb:492:in `call'
haml (3.0.18) lib/sass/plugin/rack.rb:41:in `call'
/lib/mongo_mapper/clear_dev_memory.rb:22:in `call'
warden (0.10.7) lib/warden/manager.rb:35:in `call'
warden (0.10.7) lib/warden/manager.rb:34:in `catch'
warden (0.10.7) lib/warden/manager.rb:34:in `call'
actionpack (3.0.0) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
actionpack (3.0.0) lib/action_dispatch/middleware/head.rb:14:in `call'
rack (1.2.1) lib/rack/methodoverride.rb:24:in `call'
actionpack (3.0.0) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
actionpack (3.0.0) lib/action_dispatch/middleware/flash.rb:182:in `call'
actionpack (3.0.0) lib/action_dispatch/middleware/session/abstract_store.rb:149:in `call'
actionpack (3.0.0) lib/action_dispatch/middleware/cookies.rb:287:in `call'
actionpack (3.0.0) lib/action_dispatch/middleware/callbacks.rb:46:in `call'
activesupport (3.0.0) lib/active_support/callbacks.rb:415:in `_run_call_callbacks'
actionpack (3.0.0) lib/action_dispatch/middleware/callbacks.rb:44:in `call'
rack (1.2.1) lib/rack/sendfile.rb:107:in `call'
actionpack (3.0.0) lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
actionpack (3.0.0) lib/action_dispatch/middleware/show_exceptions.rb:46:in `call'
railties (3.0.0) lib/rails/rack/logger.rb:13:in `call'
rack (1.2.1) lib/rack/runtime.rb:17:in `call'
rack (1.2.1) lib/rack/lock.rb:11:in `call'
rack (1.2.1) lib/rack/lock.rb:11:in `synchronize'
rack (1.2.1) lib/rack/lock.rb:11:in `call'
actionpack (3.0.0) lib/action_dispatch/middleware/static.rb:30:in `call'
railties (3.0.0) lib/rails/application.rb:168:in `call'
railties (3.0.0) lib/rails/application.rb:77:in `send'
railties (3.0.0) lib/rails/application.rb:77:in `method_missing'
thin (1.2.7) lib/thin/connection.rb:76:in `pre_process'
thin (1.2.7) lib/thin/connection.rb:74:in `catch'
thin (1.2.7) lib/thin/connection.rb:74:in `pre_process'
thin (1.2.7) lib/thin/connection.rb:57:in `process'
thin (1.2.7) lib/thin/connection.rb:42:in `receive_data'
eventmachine (0.12.10) lib/eventmachine.rb:256:in `run_machine'
eventmachine (0.12.10) lib/eventmachine.rb:256:in `run'
thin (1.2.7) lib/thin/backends/base.rb:57:in `start'
thin (1.2.7) lib/thin/server.rb:156:in `start'
thin (1.2.7) lib/thin/controllers/controller.rb:80:in `start'
thin (1.2.7) lib/thin/runner.rb:177:in `send'
thin (1.2.7) lib/thin/runner.rb:177:in `run_command'
thin (1.2.7) lib/thin/runner.rb:143:in `run!'
thin (1.2.7) bin/thin:6
/var/lib/gems/1.8/bin/thin:19:in `load'
/var/lib/gems/1.8/bin/thin:19

Posted on Github by OpenIT4u on 2010/09/18 23:45:58 -0700

Posted on Github by OpenIT4u on 2010/09/18 23:45:58 -0700 :

Ok, I've found out where the config is to remove this error - I followed these instructions here: http://www.manu-j.com/blog/wordpress-exim4-ubuntu-gmail-smtp/75/ and then updated the file /diaspora/config/environments/development.rb
restarted diaspora and now I'm not getting the error message. Unfortunately I'm not getting the email either....

@diaspora-redmine-github-migration

Comment by: Hexagon
On Sun Oct 10 12:00:00 2010

Close this, it's a question (not bug) about something that is fixed by now. SMTP settings i set in app_config.yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment