Error with ActionMailer

I wrote my app in Rails 2.1 - emails seemed to work fine.
My host are running Rails 2.2.2 though and now I get this error
message when sending emails:

OpenSSL::SSL::SSLError (hostname was not match with the server

Can anyone advise?



These are my configuration settings in base.rb

@@smtp_settings = {
  :address        => "localhost",
  :port           => 25,
  :domain         => '',
  :user_name      => '[email protected]',
  :password       => 'mypassword',
  :authentication => :login
cattr_accessor :smtp_settings

Are these incorrect?