refactoring (application.rb, config/settings) rewrite config for two configuration on smtp servers.