Sly Verano
2013-Nov-22 08:39 UTC
How to configure Microsoft Exchange Server using ActionMailer
Hi Guys,
I''m having some hard time to configure the Microsoft Exchange server,
however if I used the the GMAIL server the mail was successfully sent to
the target user. I also tried this one
http://www.breckenedge.com/2011/07/configuration-of-ruby-on-rails-actionmailer-for-microsoft-exchange-smtp/
but
still it doesn''t work.
BTW, This is my configured ActionMailer.
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
address: "mail.example.com",
port: 110,
domain: "my.domainame.com",
authentication: :login,
enable_starttls_auto: true,
user_name: "my_username",
password: "my_password"
}
I always got this error.
<https://lh4.googleusercontent.com/-eryYXzaBSvY/Uo8XxKsca4I/AAAAAAAAAxY/qR72y74j9bs/s1600/error.png>
Thanks.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/9d8c1179-6b24-48f0-a8bc-44e829e23f2a%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Colin Law
2013-Nov-22 09:21 UTC
Re: How to configure Microsoft Exchange Server using ActionMailer
On 22 November 2013 08:39, Sly Verano <slyverano-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi Guys, > > I''m having some hard time to configure the Microsoft Exchange server, > however if I used the the GMAIL server the mail was successfully sent to > the target user. I also tried this one > http://www.breckenedge.com/2011/07/configuration-of-ruby-on-rails-actionmailer-for-microsoft-exchange-smtp/ but > still it doesn''t work. > > BTW, This is my configured ActionMailer. > > config.action_mailer.delivery_method = :smtp > config.action_mailer.smtp_settings = { > address: "mail.example.com", > port: 110, > domain: "my.domainame.com", > authentication: :login, > enable_starttls_auto: true, > user_name: "my_username", > password: "my_password" > } > > I always got this error. >What error? Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLvh6wkLfMu_%2BszcOnAC_4PFHYw7Vb1mgB2cjrEq44%2BHWw%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
Carlos Figueiredo
2013-Nov-22 09:33 UTC
Re: How to configure Microsoft Exchange Server using ActionMailer
For Exchange server, you need to follow the steps found in that mentioned
blog.
By default, Exchange server uses his own authentication protocol kerberos,
not plain text... so you need to use :ntlm, not :login on authentication.
You still can change this, but need to change the entire Exchange Server
configuration, check with your Exchange Server administrator...
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
address: "mail.example.com",
port: 110, #I''m not sure if the port need to be 25 or 110... it
depends of which port your Exchange listens, usually 25, but there are
strong recommendations to use 110, letting port 25 free for smtp
communication between smtp servers only.
domain: "my.domainame.com",
authentication: :*ntlm*,
enable_starttls_auto: true,
user_name: "my_username",
password: "my_password"
}
On Fri, Nov 22, 2013 at 6:39 AM, Sly Verano
<slyverano-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> Hi Guys,
>
> I''m having some hard time to configure the Microsoft Exchange
server,
> however if I used the the GMAIL server the mail was successfully sent to
> the target user. I also tried this one
>
http://www.breckenedge.com/2011/07/configuration-of-ruby-on-rails-actionmailer-for-microsoft-exchange-smtp/
but
> still it doesn''t work.
>
> BTW, This is my configured ActionMailer.
>
> config.action_mailer.delivery_method = :smtp
> config.action_mailer.smtp_settings = {
> address: "mail.example.com",
> port: 110,
> domain: "my.domainame.com",
> authentication: :login,
> enable_starttls_auto: true,
> user_name: "my_username",
> password: "my_password"
> }
>
> I always got this error.
>
>
>
<https://lh4.googleusercontent.com/-eryYXzaBSvY/Uo8XxKsca4I/AAAAAAAAAxY/qR72y74j9bs/s1600/error.png>
>
> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/rubyonrails-talk/9d8c1179-6b24-48f0-a8bc-44e829e23f2a%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/CANPOtXsEn%2B_g9G66cFbapJRVFjZfMx9_87we-eOGZGs5KALgAg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.