27 require_once(
"../class/config_nochk.php");
35 if ( $_SERVER[
'REQUEST_METHOD'] ===
'POST' ){
36 $postText = file_get_contents(
'php://input');
39 $pattern =
'/[A-Za-z0-9_-]+@[A-Za-z0-9_-]+.([A-Za-z0-9_-][A-Za-z0-9_]+)/';
40 preg_match($pattern,
$string, $matches);
43 die(_(
'Missing POST of the mail address'));
46 header(
"Content-type: text/xml");
47 echo
"<?xml version='1.0' encoding='UTF-8'?> \n";
49 <Autodiscover xmlns=
"http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006">
50 <Response xmlns=
"http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a">
52 <AccountType>email</AccountType>
53 <Action>settings</Action>
56 <Server><?php echo $mail->srv_dovecot; ?></Server>
58 <LoginName><?php echo $matches[0];?></LoginName>
62 <AuthRequired>on</AuthRequired>
66 <Server><?php echo $mail->srv_postfix; ?></Server>
70 <AuthRequired>on</AuthRequired>
71 <UsePOPAuth>on</UsePOPAuth>
72 <SMTPLast>off</SMTPLast>
if(empty($_GET['emailaddress'])) die(_("Error $emailDomain