Details
Description
Currently, CRM_Utils_Mail::send() queries the default entry in civicrm_mail_settings for the Return-Path header. This is done regardless of the domain (as civicrm_mail_settings is not domain_id-versioned).
Add domain_id to civicrm_mail_settings and fix CRM_Utils_Mail::send() - as well as all the other places that query this table - to properly set this column when querying.