Outbound mail config in civicrm.settings.php?
In civicrm.settings.php

global $civicrm_setting;
$civicrm_setting['Mailing Preferences']['mailing_backend'] = [
 'outBound_option' => 0,
 'smtpServer' => 'localhost',
 'smtpPort' => 1025,
 'smtpAuth' => false
];