ansible-role-mail-autodiscover/files/app/templates/autoconfig.xml
2025-01-16 12:32:20 +01:00

36 lines
1 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<clientConfig version="1.1">
<emailProvider id="{{domain}}">
<domain>{{domain}}</domain>
<displayName>{{info.name}}</displayName>
<displayShortName>%EMAILLOCALPART%</displayShortName>
{%- if imap.host %}
<incomingServer type="imap">
<hostname>{{imap.host}}</hostname>
<port>{{imap.port}}</port>
<socketType>{{imap.socket}}</socketType>
<authentication>password-cleartext</authentication>
<username>%EMAILADDRESS%</username>
</incomingServer>
{% endif -%}
{%- if smtp.host %}
<outgoingServer type="smtp">
<hostname>{{smtp.host}}</hostname>
<port>{{smtp.port}}</port>
<socketType>{{smtp.socket}}</socketType>
<authentication>password-cleartext</authentication>
<username>%EMAILADDRESS%</username>
</outgoingServer>
{% endif -%}
{#
<documentation url="{{info.url}}">
<descr lang="en">Generic settings page</descr>
<descr lang="de">Allgemeine Beschreibung der Einstellungen</descr>
</documentation>
#}
</emailProvider>
</clientConfig>