Topic: ActionMailer unable to connect to Exchange server

When I try to connect to my Exchange server it always times out. 

However...

I can ping the mail server and I can send mail through it using my gui client (evolution).

config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
  :domain             => "MyDomain",
  :address            => "mailserver.myoffice.com", 
  :port               => 25,
  :authentication => :plain ,
  :user_name          => 'myusername',
  :password           => 'mypassword',
}
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = true

# domain, address, username and password are settings used in Evolution mail client.

I have tried the common port numbers (25,26) with no luck.   Any suggestions?

Last edited by deco10 (2012-04-05 16:58:26)

Re: ActionMailer unable to connect to Exchange server

  :authentication => :plain ,

I don't think you'll get through to exchange server with 'plain' authentication.

Try

    :authentication => :login,
    :user_name => "myusername",
    :password => "mypassword"
Joe got a job, on the day shift, at the Utility Muffin Research Kitchen, arrogantly twisting the sterile canvas snout of a fully charged icing anointment utensil.