48 lines
2.4 KiB
XML
48 lines
2.4 KiB
XML
<?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>
|