$tempDomain = array_reverse(explode(".",$_SERVER['HTTP_HOST']));$tempDomain = $tempDomain[1].".".$tempDomain[0];$rcmail_config['username_domain'] = $tempDomain;$rcmail_config['mail_domain'] = $tempDomain;$rcmail_config['default_host'] = $tempDomain;$rcmail_config['smtp_server'] = $tempDomain;$rcmail_config['smtp_helo_host'] = $tempDomain;