Is it possible to store the outbound mail settings in civicrm.settings.php? SMTP server IP address, port, user...
global $civicrm_setting; $civicrm_setting['Mailing Preferences']['mailing_backend'] = [ 'outBound_option' => 0, 'smtpServer' => 'localhost', 'smtpPort' => 1025, 'smtpAuth' => false ];
No. Outbound mail settings are typically configured here: civicrm/admin/setting/smtp. They can't be overridden in civicrm.settings.php apart from to disable them completely by defining CIVICRM_MAIL_LOG, e.g.
If you aren't interested in them.