[a-z0-9][a-z0-9\-]{1,63}\.[a-z\.]{2,6})$/i", $domain, $matches)) { return $matches['domain']; } else { return $domain; } } $domain = extract_domain($_SERVER['SERVER_NAME']); $mailServeur='mail.'.$domain; if (preg_match('/^\/mail\/config-v1\.1\.xml/', $_SERVER['REQUEST_URI'])) { header('Content-Type: text/xml'); header('Content-Type: application/xml'); ?> 143 STARTTLS %EMAILADDRESS% password-cleartext 587 STARTTLS %EMAILADDRESS% password-cleartext Connexion Webmail Webmail connexion Documentation Generic settings page (.*?)\<\/EMailAddress\>/", $data, $matches); //set Content-Type header('Content-Type: text/xml'); header('Content-Type: application/xml'); echo ''; ?> email settings IMAP 993 off off on on POP3 995 off off on on SMTP 587 off off TLS on off off