autoconfig.php 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?php
  2. require_once 'inc/vars.inc.php';
  3. if (empty($mailcow_hostname)) {
  4. exit();
  5. }
  6. header('Content-Type: application/xml');
  7. ?>
  8. <?= '<?xml version="1.0"?>'; ?>
  9. <clientConfig version="1.1">
  10. <emailProvider id="<?= $mailcow_hostname; ?>">
  11. <domain>%EMAILDOMAIN%</domain>
  12. <displayName>A mailcow mail server</displayName>
  13. <displayShortName>mail server</displayShortName>
  14. <incomingServer type="imap">
  15. <hostname><?= $mailcow_hostname; ?></hostname>
  16. <port>993</port>
  17. <socketType>SSL</socketType>
  18. <username>%EMAILADDRESS%</username>
  19. <authentication>password-cleartext</authentication>
  20. </incomingServer>
  21. <incomingServer type="imap">
  22. <hostname><?= $mailcow_hostname; ?></hostname>
  23. <port>143</port>
  24. <socketType>STARTTLS</socketType>
  25. <username>%EMAILADDRESS%</username>
  26. <authentication>password-cleartext</authentication>
  27. </incomingServer>
  28. <incomingServer type="pop3">
  29. <hostname><?= $mailcow_hostname; ?></hostname>
  30. <port>995</port>
  31. <socketType>SSL</socketType>
  32. <username>%EMAILADDRESS%</username>
  33. <authentication>password-cleartext</authentication>
  34. </incomingServer>
  35. <incomingServer type="pop3">
  36. <hostname><?= $mailcow_hostname; ?></hostname>
  37. <port>110</port>
  38. <socketType>STARTTLS</socketType>
  39. <username>%EMAILADDRESS%</username>
  40. <authentication>password-cleartext</authentication>
  41. </incomingServer>
  42. <outgoingServer type="smtp">
  43. <hostname><?= $mailcow_hostname; ?></hostname>
  44. <port>465</port>
  45. <socketType>SSL</socketType>
  46. <username>%EMAILADDRESS%</username>
  47. <authentication>password-cleartext</authentication>
  48. </outgoingServer>
  49. <outgoingServer type="smtp">
  50. <hostname><?= $mailcow_hostname; ?></hostname>
  51. <port>587</port>
  52. <socketType>STARTTLS</socketType>
  53. <username>%EMAILADDRESS%</username>
  54. <authentication>password-cleartext</authentication>
  55. </outgoingServer>
  56. <enable visiturl="https://<?= $mailcow_hostname; ?>/admin.php">
  57. <instruction>If you didn't change the password given to you by the administrator or if you didn't change it in a long time, please consider doing that now.</instruction>
  58. <instruction lang="de">Sollten Sie das Ihnen durch den Administrator vergebene Passwort noch nicht geändert haben, empfehlen wir dies nun zu tun. Auch ein altes Passwort sollte aus Sicherheitsgründen geändert werden.</instruction>
  59. </enable>
  60. </emailProvider>
  61. <webMail>
  62. <loginPage url="https://<?= $mailcow_hostname; ?>/SOGo/" />
  63. </webMail>
  64. </clientConfig>