initial commit of file from CVS for smeserver-autodiscover on Sat Sep 7 20:08:09 AEST 2024
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
<User>
|
||||
<DisplayName><?php echo $_SERVER['SERVER_NAME'] . " Emails"; ?></DisplayName>
|
||||
</User>
|
||||
|
@@ -0,0 +1,3 @@
|
||||
<Account>
|
||||
<AccountType>email</AccountType>
|
||||
<Action>settings</Action>
|
@@ -0,0 +1,16 @@
|
||||
{
|
||||
return "" unless $imaps{'status'} eq "enabled";
|
||||
$OUT=<<'string_ending_delimiter';
|
||||
|
||||
<Protocol>
|
||||
<Type>IMAP</Type>
|
||||
<Server><?php echo $_SERVER['SERVER_NAME']; ?></Server>
|
||||
<Port>993</Port>
|
||||
<SPA>off</SPA>
|
||||
<SSL>on</SSL>
|
||||
<AuthRequired>on</AuthRequired>
|
||||
<?php echo $LoginName; ?>
|
||||
|
||||
</Protocol>
|
||||
string_ending_delimiter
|
||||
}
|
@@ -0,0 +1,16 @@
|
||||
{
|
||||
return "" if $imaps{'status'} eq "enabled";
|
||||
return "" unless $pop3s{'status'} eq "enabled";
|
||||
$OUT=<<'string_ending_delimiter';
|
||||
<Protocol>
|
||||
<Type>POP3</Type>
|
||||
<Server><?php echo $_SERVER['SERVER_NAME']; ?></Server>
|
||||
<Port>995</Port>
|
||||
<SPA>off</SPA>
|
||||
<SSL>on</SSL>
|
||||
<AuthRequired>on</AuthRequired>
|
||||
<?php echo $LoginName; ?>
|
||||
|
||||
</Protocol>
|
||||
string_ending_delimiter
|
||||
}
|
@@ -0,0 +1,30 @@
|
||||
{
|
||||
$OUT=<<'string_ending_delimiter';
|
||||
<Protocol>
|
||||
<Type>SMTP</Type>
|
||||
<Server><?php echo $_SERVER['SERVER_NAME']; ?></Server>
|
||||
<Port>25</Port>
|
||||
<SPA>off</SPA>
|
||||
<Encryption>TLS</Encryption>
|
||||
<SSL>on</SSL>
|
||||
<AuthRequired>on</AuthRequired>
|
||||
<?php echo $LoginName; ?>
|
||||
|
||||
</Protocol>
|
||||
string_ending_delimiter
|
||||
|
||||
#if we start support for port 587 submisison we would need to alter this
|
||||
return $OUT unless $sqpsmtpd{'status'} eq "enabled";
|
||||
$OUT=<<'string_ending_delimiter';
|
||||
<Protocol>
|
||||
<Type>SMTP</Type>
|
||||
<Server><?php echo $_SERVER['SERVER_NAME']; ?></Server>
|
||||
<Port>465</Port>
|
||||
<SPA>off</SPA>
|
||||
<SSL>on</SSL>
|
||||
<AuthRequired>on</AuthRequired>
|
||||
<?php echo $LoginName; ?>
|
||||
|
||||
</Protocol>
|
||||
string_ending_delimiter
|
||||
}
|
@@ -0,0 +1 @@
|
||||
</Account>
|
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
$LoginName = "";
|
||||
$raw = file_get_contents('php://input');
|
||||
$matches = array();
|
||||
preg_match('/<EMailAddress>(.*)<\/EMailAddress>/', $raw, $matches);
|
||||
if (isset($matches[1])) \{
|
||||
$LoginName = "<LoginName>".$matches[1]."</LoginName>";
|
||||
\}
|
||||
$email = array_key_exists('email', $_GET) ? $_GET['email'] : null;
|
||||
$email = filter_var($email, FILTER_VALIDATE_EMAIL);
|
||||
if (array_key_exists('email', $_GET)) \{
|
||||
$LoginName = "<LoginName>".$email."</LoginName>";
|
||||
\}
|
||||
header('Content-Type: application/xml');
|
||||
?>
|
||||
<?php echo "<?xml version=\"1.0\" encoding=\"utf-8\" ?>"; ?>
|
||||
|
||||
<Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006">
|
||||
<Response xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a">
|
@@ -0,0 +1,2 @@
|
||||
</Response>
|
||||
</Autodiscover>
|
Reference in New Issue
Block a user