Linux rookie here. To send mail from my rails app, is all I need:
- sendmail
- user name/pw
For example, here is my config:
mail server config
config.action_mailer.delivery_method = :smtp
config.action_mailer.server_settings = {
:address => “buwatercooler.org”,
:port => 25,
:domain => “buwatercooler.org”,
:authentication => :login,
:user_name => “server”,
:password => “”
}
config.action_mailer.default_charset = “utf-8”
As long as I have a user “server” on the linux box should this work? My
emails aren’t going through. Is there some element of the configuration
I have missed?
Taylor S. wrote:
Linux rookie here. To send mail from my rails app, is all I need:
- sendmail
- user name/pw
For example, here is my config:
mail server config
config.action_mailer.delivery_method = :smtp
config.action_mailer.server_settings = {
:address => “buwatercooler.org”,
:port => 25,
:domain => “buwatercooler.org”,
:authentication => :login,
:user_name => “server”,
:password => “”
}
config.action_mailer.default_charset = “utf-8”
As long as I have a user “server” on the linux box should this work? My
emails aren’t going through. Is there some element of the configuration
I have missed?
Is sendmail actually working? That is, can you telnet to port 25 on this
machine from another machine and get something like:
Connected to westlake.tbtm.org.
Escape character is ‘^]’.
220 localhost.localdomain ESMTP Sendmail 8.13.8/8.13.8; Sun, 15 Apr 2007
14:17:05 -0500
If so, what you have should probably work. I’ve found that
:authentication => :plain
works better on some servers, even when they claim to support :login.
If not, you need to fix your sendmail configuration, which is a bit
beyond the scope of this forum:-)
–Al Evans
On Apr 15, 8:04 am, Taylor S. [email protected]
wrote:
Linux rookie here. To send mail from my rails app, is all I need:
- sendmail
- user name/pw
There are alternatives to sendmail, such as exim, qmail, and
postfix.
I recommend exim, which is dead-easy to set up if you are using Debian.