Copy or rename the sample smtp settings file into smtp_settings.rb
sudo -u git -H cp config/initializers/smtp_settings.rb.sample config/initializers/smtp_settings.rb
Note: in 6.3.1 there is no need to modify config/environments/production.rb line: config.action_mailer.delivery_method. Leave the original value :sendmail
Edit smtp_settings.rb as follow