ActiveMailer on Dreamhost

Has anyone gotten this working? I have the following in my
development.rb:

config.action_mailer.raise_delivery_errors = true
config.action_mailer.server_settings = {
:address => “mail.”,
:port => 25,
:domain => “”

:user_name => “info”,

:password => “”,

:authentication => :login

}

Note that the username and password are commented out… I’ve been trying
them with various settings but I’m not sure what to use… or if to use
them
at all. The wiki is not very clear. Thanks!

Here’s what works for me at Dreamhost:

:address => ‘mail.’,
:port => 587, # super sneaky
:user_name => ‘’,
:password => ‘’,
:domain => ‘mail.’,
:authentication => :login

Note that you need an actual mail account with username
set up through the panel interface.

Geez, I’m completely sorry. I just realized you were asking about
Dreamhost and not Bluehost :slight_smile: Please ignore my previous post!

Hi Gene,

I experimented with this a good bit last night and finally got it
working using localhost for the server address. More info here:

http://www.db75.com/new_blog/?p=277
http://www.db75.com/new_blog/?p=277

I hope this helps!

Regards,

Dennis


From: [email protected]
[mailto:[email protected]] On Behalf Of Gene H.
Sent: Tuesday, August 22, 2006 1:36 PM
To: [email protected]
Subject: [Rails] ActiveMailer on Dreamhost

Has anyone gotten this working? I have the following in my
development.rb:

config.action_mailer.raise_delivery_errors = true
config.action_mailer.server_settings = {
:address => “mail.”,
:port => 25,
:domain => “”

:user_name => “info”,

:password => “”,

:authentication => :login

}

Note that the username and password are commented out… I’ve been trying
them with various settings but I’m not sure what to use… or if to use
them at all. The wiki is not very clear. Thanks!

Gene H. wrote:

Has anyone gotten this working? I have the following in my
development.rb:

config.action_mailer.raise_delivery_errors = true
config.action_mailer.server_settings = {
:address => “mail.”,
:port => 25,
:domain => “”

:user_name => “info”,

:password => “”,

:authentication => :login

}

Note that the username and password are commented out… I’ve been trying
them with various settings but I’m not sure what to use… or if to use
them

Make a new mailbox and PW at your domain via the DH control panel.

Then use something like this:

ActionMailer::Base.server_settings = {
:address => “mail.”,
:port => 25,
:domain => “”,
:authentication => :plain,
:user_name => ‘m0000000’,
:password => ‘’
}

I found that the m mailbox number worked more reliably than
the user name. I also found that :plain worked more reliably than
:login, though I was never able to find a reason why this would be the
case. :login would work fine about 50% of the time, :plain worked 100%.

Disclaimer: it’s been a couple of months, so things may have changed.
However, the above setup still works reliably (when the load on my
server isn’t &$# 56.06, which it is right now).

–Al Evans