Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente | |||
informatique:serveur:web-linux-apache:configurer-autodiscover [2023/02/09 16:12] – supprimée - modification externe (Unknown date) | informatique:serveur:web-linux-apache:configurer-autodiscover [2023/02/09 16:12] (Version actuelle) – ↷ Page déplacée de informatique:serveur-web-linux-apache:configurer-autodiscover à informatique:serveur:web-linux-apache:configurer-autodiscover Cédric ABONNEL | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
+ | ====== Configurer Autodiscover et Autoconfig ====== | ||
+ | {{ : | ||
+ | ===== DNS ===== | ||
+ | |||
+ | |||
+ | _autodiscover._tcp.yourdomain.com. 3600 IN SRV 10 10 443 mail.yourmx.com. | ||
+ | |||
+ | |||
+ | ===== Autodiscover pour Outlook ===== | ||
+ | |||
+ | |||
+ | <code PHP autodiscover.php> | ||
+ | <?php | ||
+ | $postData = file_get_contents(' | ||
+ | $xml = simplexml_load_string($postData); | ||
+ | $user = $xml-> | ||
+ | |||
+ | //set Content-Type | ||
+ | header(" | ||
+ | ?> | ||
+ | <?php echo '<? | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ===== Directives Apache ===== | ||
+ | |||
+ | |||
+ | < | ||
+ | ServerAlias autoconfig.* | ||
+ | RewriteEngine On | ||
+ | RewriteCond %{HTTPS} !on [OR] | ||
+ | RewriteCond %{HTTP_HOST} !^discover\.my-service\.com$ | ||
+ | RewriteRule ^(.*)$ https:// | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Certificat SSL ===== | ||
+ | |||
+ | |||
+ | Remember to get a SIGNED SSL Cert. | ||
+ | |||
+ | |||
+ | ===== Autoconfig pour Thunderbird ===== | ||
+ | |||
+ | |||
+ | <code XML config-v1.1.xml> | ||
+ | <?xml version=" | ||
+ | |||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ |