<clientConfig version="1.0"> <emailProvider id="{{ autoconfig.provider }}"> {% for domain in autoconfig.domains %} <domain>{{ domain }}</domain> {% endfor %} <displayName>{{ autoconfig.name.long }}</displayName> <displayShortName>{{ autoconfig.name.short }}</displayShortName> {% set i = autoconfig.incoming %} <incomingServer type="{{ i.type }}"> <hostname>{{ i.hostname }}</hostname> <port>{{ i.port }}</port> <socketType>{{ i.socket_type }}</socketType> <username>{{ i.username }}</username> <authentication>{{ i.authentication }}</authentication> </incomingServer> {% set o = autoconfig.outgoing %} <outgoingServer type="{{ o.type }}"> <hostname>{{ o.hostname }}</hostname> <port>{{ o.port }}</port> <socketType>{{ o.socket_type }}</socketType> <username>{{ o.username }}</username> <authentication>{{ o.authentication }}</authentication> </outgoingServer> </emailProvider> </clientConfig>