SMTP settings for outgoing messages


#1

Hi!

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

config.action_mailer.smtp_settings = {
:address => ‘mail.foto-fiori.com’,
:domain => ‘www.foto-fiori.com’,
:authentication => :login,
:user_name => ‘info@foto-fiori.com’,
: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 info@foto-fiori.com, but the error is still there :frowning:

What’s wrong with my configuration?


#2

Hey apparently you missed the memo!?!?

Here it is - http://www.dreamhoststatus.com/2009/05/12/upcoming-shared-http-server-outbound-mail-policy-change/

Try this and let us know if it works!

config.action_mailer.smtp_settings = { :address => 'mail.foto-fiori.com', :domain => 'www.foto-fiori.com', :port => 587, :authentication => :login, :user_name => 'info@foto-fiori.com', :password => 'mypassword' }If not there’s always the :sendmail delivery method.

Customer since 2000 :cool: openvein.org


#3

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 ?


#4

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: openvein.org