<?xml version="1.0"?>
<clientConfig version="1.1">
    <emailProvider id="thundermail.com">
        <domain>thundermail.com</domain>
        <displayName>Thundermail</displayName>
        <displayShortName>TMail</displayShortName>
        <incomingServer type="imap">
            <hostname>mail.thundermail.com</hostname>
            <port>993</port>
            <socketType>SSL</socketType>
            <username>%EMAILADDRESS%</username>
            <authentication>OAuth2</authentication>
            <oAuth2>
              <clientID>open</clientID>
              <issuer>https://auth.tb.pro/realms/tbpro</issuer>
              <scope>openid offline_access</scope>
              <authURL>https://auth.tb.pro/realms/tbpro/protocol/openid-connect/auth</authURL>
              <tokenURL>https://auth.tb.pro/realms/tbpro/protocol/openid-connect/token</tokenURL>
            </oAuth2>
            <authentication>password-cleartext</authentication>
        </incomingServer>
        <outgoingServer type="smtp">
            <hostname>mail.thundermail.com</hostname>
            <port>465</port>
            <socketType>SSL</socketType>
            <username>%EMAILADDRESS%</username>
            <authentication>OAuth2</authentication>
            <oAuth2>
              <clientID>open</clientID>
              <issuer>https://auth.tb.pro/realms/tbpro</issuer>
              <scope>openid offline_access</scope>
              <authURL>https://auth.tb.pro/realms/tbpro/protocol/openid-connect/auth</authURL>
              <tokenURL>https://auth.tb.pro/realms/tbpro/protocol/openid-connect/token</tokenURL>
            </oAuth2>
            <authentication>password-cleartext</authentication>
        </outgoingServer>
    </emailProvider>
    <clientConfigUpdate url="https://autoconfig.thundermail.com/"></clientConfigUpdate>
</clientConfig>