====== Automatische Konfiguration von Thunderbird ======
//Evolution and KMail and Kontact use it, too.//
Mögliche Alternativen: 
  * [[RFC>6186]]
  * [[https://github.com/sys4/automx/blob/master/INSTALL|automx]] (funktioniert auch mit Outlook, MacOS und iOS, aber letzte Änderung 2016)
===== Voraussetzung =====
  * [[postfix]] bevorzugt mit [[postfix-tls|TLS]] ((https://bugzilla.mozilla.org/show_bug.cgi?id=667896))
  * [[dovecot-imapd]] mit [[dovecot-ssl|TLS]]
  * Apache mit TLS
  * [[apache-virtual-hosts]], geht aber auch ohne virtual host, mit ''/.well-known/autoconfig/mail/config-v1.1.xml''
    * Wie in [[bind]] beschrieben einen CNAME ''autoconfig'' für die Domain anlegen. 
    * Wie in [[apache-virtual-hosts]] beschrieben einen Virtual Host für die Domain anlegen. 
===== Apache konfigurieren =====
==== mit Alias ====
Alias /.well-known/autoconfig /var/www/autoconfig
    Options FollowSymlinks
    Options -Indexes
    AllowOverride None
    Require all granted
  a2enconf autoconfig
++++ Alternativ: mit Virtual Host |
==== mit Virtual Host ====
  ServerName autoconfig.z21.example.net
  DocumentRoot /var/www/autoconfig
  
    require all granted
  
  a2ensite autoconfig.z21.example.net
++++
  apache2ctl graceful
===== Datei config-v1.1.xml hinterlegen =====
  mkdir -p /var/www/autoconfig/mail
  
    z21.example.net
    z21 Mail
    z21
    
      vm02.z21.example.net
      143
      STARTTLS
      password-cleartext
      %EMAILLOCALPART%
    
    
      vm02.z21.example.net
      25
      plain
      client-IP-address
      %EMAILLOCALPART%
    
    
      Allgemeine Beschreibung der Einstellungen
      Generic settings page
    
  
Testen: https://vm02.z21.example.net/.well-known/autoconfig/mail/config-v1.1.xml
====== Dokumentation ======
  * https://wiki.mozilla.org/Thunderbird:Autoconfiguration:ConfigFileFormat
  * https://developer.mozilla.org/de/docs/Mozilla/Thunderbird/Autokonfiguration
  * https://developer.mozilla.org/en-US/docs/Mozilla/Thunderbird/Autoconfiguration/FileFormat/HowTo