mailcow/data/web/autoconfig.php

74 lines
2.7 KiB
PHP
Raw Normal View History

2017-03-02 18:23:23 +08:00
<?php
require_once 'inc/vars.inc.php';
if (empty($mailcow_hostname)) {
exit();
}
header('Content-Type: application/xml');
2017-03-02 18:23:23 +08:00
?>
<?= '<?xml version="1.0"?>'; ?>
2017-03-02 18:23:23 +08:00
<clientConfig version="1.1">
<emailProvider id="<?= $mailcow_hostname; ?>">
2017-03-22 20:35:49 +08:00
<domain>%EMAILDOMAIN%</domain>
2017-03-02 18:23:23 +08:00
<displayName>A mailcow mail server</displayName>
<displayShortName>mail server</displayShortName>
<incomingServer type="imap">
2017-07-10 14:46:20 +08:00
<hostname><?= $mailcow_hostname; ?></hostname>
<port>993</port>
2017-03-02 18:23:23 +08:00
<socketType>SSL</socketType>
<username>%EMAILADDRESS%</username>
<authentication>password-cleartext</authentication>
</incomingServer>
<incomingServer type="imap">
2017-07-10 14:46:20 +08:00
<hostname><?= $mailcow_hostname; ?></hostname>
<port>143</port>
2017-03-02 18:23:23 +08:00
<socketType>STARTTLS</socketType>
<username>%EMAILADDRESS%</username>
<authentication>password-cleartext</authentication>
</incomingServer>
<incomingServer type="pop3">
2017-07-10 14:46:20 +08:00
<hostname><?= $mailcow_hostname; ?></hostname>
<port>995</port>
2017-03-02 18:23:23 +08:00
<socketType>SSL</socketType>
<username>%EMAILADDRESS%</username>
<authentication>password-cleartext</authentication>
</incomingServer>
<incomingServer type="pop3">
2017-07-10 14:46:20 +08:00
<hostname><?= $mailcow_hostname; ?></hostname>
<port>110</port>
2017-03-02 18:23:23 +08:00
<socketType>STARTTLS</socketType>
<username>%EMAILADDRESS%</username>
<authentication>password-cleartext</authentication>
</incomingServer>
<outgoingServer type="smtp">
2017-07-10 14:46:20 +08:00
<hostname><?= $mailcow_hostname; ?></hostname>
<port>465</port>
2017-03-02 18:23:23 +08:00
<socketType>SSL</socketType>
<username>%EMAILADDRESS%</username>
<authentication>password-cleartext</authentication>
</outgoingServer>
2017-07-10 14:46:20 +08:00
2017-03-02 18:23:23 +08:00
<outgoingServer type="smtp">
2017-07-10 14:46:20 +08:00
<hostname><?= $mailcow_hostname; ?></hostname>
<port>587</port>
2017-03-02 18:23:23 +08:00
<socketType>STARTTLS</socketType>
<username>%EMAILADDRESS%</username>
<authentication>password-cleartext</authentication>
</outgoingServer>
2017-07-10 14:46:20 +08:00
<enable visiturl="https://<?= $mailcow_hostname; ?>/admin.php">
2017-03-02 18:23:23 +08:00
<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>
<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>
</enable>
</emailProvider>
<webMail>
2017-07-10 14:46:20 +08:00
<loginPage url="https://<?= $mailcow_hostname; ?>/SOGo/" />
2017-03-02 18:23:23 +08:00
</webMail>
</clientConfig>