2
0

autoconfig.php 2.7 KB

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