<?xml version="1.0" encoding="UTF-8"?>
{{-- Mozilla/Thunderbird autoconfig v1.1 -- https://autoconfig.thunderbird.net/v1.1/ --}}
<clientConfig version="1.1">
    <emailProvider id="{{ $domain }}">
        <domain>{{ $domain }}</domain>
        <displayName>{{ $domain }} Mail</displayName>
        <displayShortName>{{ Str::before($domain, '.') }}</displayShortName>

        {{-- IMAP (önerilen) --}}
        <incomingServer type="imap">
            <hostname>{{ $mail_host }}</hostname>
            <port>993</port>
            <socketType>SSL</socketType>
            <authentication>password-cleartext</authentication>
            <username>%EMAILADDRESS%</username>
        </incomingServer>

        {{-- POP3 (alternatif) --}}
        <incomingServer type="pop3">
            <hostname>{{ $mail_host }}</hostname>
            <port>995</port>
            <socketType>SSL</socketType>
            <authentication>password-cleartext</authentication>
            <username>%EMAILADDRESS%</username>
        </incomingServer>

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

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

        <documentation url="https://{{ $domain }}/mail-setup">
            <descr lang="tr">{{ $domain }} e-posta kurulum yardımı</descr>
            <descr lang="en">{{ $domain }} mail setup guide</descr>
        </documentation>
    </emailProvider>
</clientConfig>
