SMTP settings for outgoing messages


I am trying to send messages from a Rails app. Here’s my configuration:

config.action_mailer.smtp_settings = {
:address => ‘’,
:domain => ‘’,
:authentication => :login,
:user_name => ‘’,
:password => ‘mypassword’

I get:

Net::SMTPAuthenticationError: 535 Error: authentication failed

My mailbox seems to be configured properly. I also tried to use info instead of, but the error is still there :frowning:

What’s wrong with my configuration?

Hey apparently you missed the memo!?!?

Here it is -

Try this and let us know if it works!

config.action_mailer.smtp_settings = { :address => '', :domain => '', :port => 587, :authentication => :login, :user_name => '', :password => 'mypassword' }If not there’s always the :sendmail delivery method.

Customer since 2000 :cool:

I configured again the mailbox from DH Panel, and it worked! In fact when I configured webmail the first time I got a strange error in control panel…

Now it works on port 25, should I switch to port 587 ?

That’s up to you! DreamHost says you can send on port 25 to their own mail servers (ie not Gmail etc) because they are whitelisted. But then again you did see that DreamHost prefers you use the sendmail method instead and everyone knows that port 587 is the way to send off (submit) a new e-mail message instead of just passing one on (transfering) :cool:

Customer since 2000 :cool: