autoconfig.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php
  2. if (empty($mailcow_hostname)) { exit(); }
  3. header("Content-Type: application/xml");
  4. require_once "inc/vars.inc.php";
  5. ?>
  6. <?='<?xml version="1.0"?>';?>
  7. <clientConfig version="1.1">
  8. <emailProvider id="<?=$mailcow_hostname;?>">
  9. <displayName>A mailcow mail server</displayName>
  10. <displayShortName>mail server</displayShortName>
  11. <incomingServer type="imap">
  12. <hostname><?=$mailcow_hostname;?></hostname>
  13. <port>993</port>
  14. <socketType>SSL</socketType>
  15. <username>%EMAILADDRESS%</username>
  16. <authentication>password-cleartext</authentication>
  17. </incomingServer>
  18. <incomingServer type="imap">
  19. <hostname><?=$mailcow_hostname;?></hostname>
  20. <port>143</port>
  21. <socketType>STARTTLS</socketType>
  22. <username>%EMAILADDRESS%</username>
  23. <authentication>password-cleartext</authentication>
  24. </incomingServer>
  25. <incomingServer type="pop3">
  26. <hostname><?=$mailcow_hostname;?></hostname>
  27. <port>995</port>
  28. <socketType>SSL</socketType>
  29. <username>%EMAILADDRESS%</username>
  30. <authentication>password-cleartext</authentication>
  31. </incomingServer>
  32. <incomingServer type="pop3">
  33. <hostname><?=$mailcow_hostname;?></hostname>
  34. <port>110</port>
  35. <socketType>STARTTLS</socketType>
  36. <username>%EMAILADDRESS%</username>
  37. <authentication>password-cleartext</authentication>
  38. </incomingServer>
  39. <outgoingServer type="smtp">
  40. <hostname><?=$mailcow_hostname;?></hostname>
  41. <port>465</port>
  42. <socketType>SSL</socketType>
  43. <username>%EMAILADDRESS%</username>
  44. <authentication>password-cleartext</authentication>
  45. </outgoingServer>
  46. <outgoingServer type="smtp">
  47. <hostname><?=$mailcow_hostname;?></hostname>
  48. <port>587</port>
  49. <socketType>STARTTLS</socketType>
  50. <username>%EMAILADDRESS%</username>
  51. <authentication>password-cleartext</authentication>
  52. </outgoingServer>
  53. <enable visiturl="https://<?=$mailcow_hostname;?>/admin.php">
  54. <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>
  55. <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>
  56. </enable>
  57. </emailProvider>
  58. <webMail>
  59. <loginPage url="https://<?=$mailcow_hostname;?>/SOGo/" />
  60. </webMail>
  61. </clientConfig>