Initial commit
This commit is contained in:
commit
530fbab51c
9 changed files with 297 additions and 0 deletions
48
files/app/templates/autodiscover.xml
Normal file
48
files/app/templates/autodiscover.xml
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Autodiscover
|
||||
xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006">
|
||||
<Response
|
||||
xmlns="{{schema}}">
|
||||
<User>
|
||||
<DisplayName>{{info.name}}</DisplayName>
|
||||
</User>
|
||||
<Account>
|
||||
<AccountType>email</AccountType>
|
||||
<Action>settings</Action>
|
||||
<ServiceHome>{{info.url}}</ServiceHome>
|
||||
{%- if imap.host %}
|
||||
<Protocol>
|
||||
<Type>IMAP</Type>
|
||||
<Server>{{imap.host}}</Server>
|
||||
<Port>{{imap.port}}</Port>
|
||||
{%- if email %}
|
||||
<LoginName>{{email}}</LoginName>
|
||||
{% endif -%}
|
||||
<DomainRequired>on</DomainRequired>
|
||||
<DomainName>{{domain}}</DomainName>
|
||||
<SPA>on</SPA>
|
||||
<SSL>{{ 'on' if imap.socket in ('SSL', 'STARTTLS') else 'off' }}</SSL>
|
||||
<Encryption>{{ 'TLS' if imap.socket == 'STARTTLS' else imap.socket }}</Encryption>
|
||||
<AuthRequired>on</AuthRequired>
|
||||
</Protocol>
|
||||
{% endif -%}
|
||||
|
||||
{%- if smtp.host %}
|
||||
<Protocol>
|
||||
<Type>SMTP</Type>
|
||||
<Server>{{smtp.host}}</Server>
|
||||
<Port>{{smtp.port}}</Port>
|
||||
{%- if email %}
|
||||
<LoginName>{{email}}</LoginName>
|
||||
{% endif -%}
|
||||
<DomainRequired>on</DomainRequired>
|
||||
<DomainName>{{domain}}</DomainName>
|
||||
<SPA>on</SPA>
|
||||
<SSL>{{ 'on' if smtp.socket in ('SSL', 'STARTTLS') else 'off' }}</SSL>
|
||||
<Encryption>{{ 'TLS' if imap.socket == 'STARTTLS' else imap.socket }}</Encryption>
|
||||
<AuthRequired>on</AuthRequired>
|
||||
</Protocol>
|
||||
{% endif -%}
|
||||
</Account>
|
||||
</Response>
|
||||
</Autodiscover>
|
||||
Loading…
Add table
Add a link
Reference in a new issue