<?xml version="1.0"?>
<clientConfig version="1.1">
  <!-- Outgoing Server -->
  <emailProvider id="${mailserver}">

    <!-- Hosted Domains -->

    <domain>${mailserver}</domain>
    <displayName>${mailserver}</displayName>
    <displayShortName>${mailserver}</displayShortName>

    <!-- Incoming Mail Servers -->

    <incomingServer type="imap">
      <hostname>${mailserver}</hostname>
      <port>993</port>
      <socketType>SSL</socketType>
      <authentication>password-cleartext</authentication>
      <username>%EMAILADDRESS%</username>
    </incomingServer>

    <incomingServer type="imap">
      <hostname>${mailserver}</hostname>
      <port>143</port>
      <socketType>STARTTLS</socketType>
      <authentication>password-cleartext</authentication>
      <username>%EMAILADDRESS%</username>
    </incomingServer>

    <!-- Outgoing Mail Servers -->

    <outgoingServer type="smtp">
      <hostname>${mailserver}</hostname>
      <port>465</port>
      <socketType>SSL</socketType>
      <authentication>password-cleartext</authentication>
      <username>%EMAILADDRESS%</username>
    </outgoingServer>

    <outgoingServer type="smtp">
      <hostname>${mailserver}</hostname>
      <port>587</port>
      <socketType>STARTTLS</socketType>
      <authentication>password-cleartext</authentication>
      <username>%EMAILADDRESS%</username>
    </outgoingServer>

    <!-- Documentation -->

    <documentation url="http://www.example.com/help/mail/thunderbird">
      <descr lang="en">Configure Thunderbird 2.0 for IMAP</descr>
      <descr lang="de">Thunderbird 2.0 mit IMAP konfigurieren</descr>
    </documentation>

  </emailProvider>
  <clientConfigUpdate url="https://${autoconfig}/mail/config-v1.1.xml" />
</clientConfig>