[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');
?>
= $domain ?>
= $domain ?>
= $domain ?>
= $mailServeur ?>
143
STARTTLS
%EMAILADDRESS%
password-cleartext
= $mailServeur ?>
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
= $mailServeur ?>
993
off
off
on
on
POP3
= $mailServeur ?>
995
off
off
on
on
SMTP
= $mailServeur ?>
587
off
off
TLS
on
off
off