git push wip
This commit is contained in:
50
static/autoconfig/autodiscover.php
Normal file
50
static/autoconfig/autodiscover.php
Normal file
@ -0,0 +1,50 @@
|
||||
<?php
|
||||
//get raw POST data so we can extract the email address
|
||||
$data = file_get_contents("php://input");
|
||||
$matches = array();
|
||||
preg_match("/\<EMailAddress\>(.*?)\<\/EMailAddress\>/", $data, $matches);
|
||||
|
||||
//set Content-Type
|
||||
header("Content-Type: application/xml");
|
||||
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">
|
||||
<Account>
|
||||
<AccountType>email</AccountType>
|
||||
<Action>settings</Action>
|
||||
<Protocol>
|
||||
<Type>IMAP</Type>
|
||||
<Server>mail.stefen.xyz</Server>
|
||||
<Port>993</Port>
|
||||
<DomainRequired>off</DomainRequired>
|
||||
<LoginName><?php echo $matches[1]; ?>@<?php echo $matches[2]; ?></LoginName>
|
||||
<SPA>off</SPA>
|
||||
<SSL>on</SSL>
|
||||
<AuthRequired>on</AuthRequired>
|
||||
</Protocol>
|
||||
<Protocol>
|
||||
<Type>POP3</Type>
|
||||
<Server>mail.stefen.xyz</Server>
|
||||
<Port>995</Port>
|
||||
<DomainRequired>off</DomainRequired>
|
||||
<LoginName><?php echo $matches[1]; ?></LoginName>
|
||||
<SPA>off</SPA>
|
||||
<SSL>on</SSL>
|
||||
<AuthRequired>on</AuthRequired>
|
||||
</Protocol>
|
||||
<Protocol>
|
||||
<Type>SMTP</Type>
|
||||
<Server>mail.stefen.xyz</Server>
|
||||
<Port>587</Port>
|
||||
<DomainRequired>off</DomainRequired>
|
||||
<LoginName><?php echo $matches[1]; ?></LoginName>
|
||||
<SPA>off</SPA>
|
||||
<Encryption>TLS</Encryption>
|
||||
<AuthRequired>on</AuthRequired>
|
||||
<UsePOPAuth>off</UsePOPAuth>
|
||||
<SMTPLast>off</SMTPLast>
|
||||
</Protocol>
|
||||
</Account>
|
||||
</Response>
|
||||
</Autodiscover>
|
20
static/autoconfig/mail/config-v1.1.xml
Normal file
20
static/autoconfig/mail/config-v1.1.xml
Normal file
@ -0,0 +1,20 @@
|
||||
<clientConfig version="1.1">
|
||||
<emailProvider id="stefen.xyz">
|
||||
<domain>stefen.xyz</domain>
|
||||
<displayName>%EMAILADDRESS%</displayName>
|
||||
<incomingServer type="imap">
|
||||
<hostname>mail.stefen.xyz</hostname>
|
||||
<port>993</port>
|
||||
<socketType>SSL</socketType>
|
||||
<username>%EMAILADDRESS%</username>
|
||||
<authentication>password-cleartext</authentication>
|
||||
</incomingServer>
|
||||
<outgoingServer type="smtp">
|
||||
<hostname>mail.stefen.xyz</hostname>
|
||||
<port>587</port>
|
||||
<socketType>STARTTLS</socketType>
|
||||
<username>%EMAILADDRESS%</username>
|
||||
<authentication>password-cleartext</authentication>
|
||||
</outgoingServer>
|
||||
</emailProvider>
|
||||
</clientConfig>
|
Reference in New Issue
Block a user