Add and remove mailcow apps to login screen, fixes #120
parent
f384759282
commit
4518f6f896
|
@ -37,4 +37,18 @@ $DEFAULT_THEME = "lumen";
|
|||
|
||||
// Password complexity as regular expression
|
||||
$PASSWD_REGEP = '.{4,}';
|
||||
|
||||
// mailcow Apps - buttons on login screen
|
||||
$MAILCOW_APPS = array(
|
||||
array(
|
||||
'name' => 'SOGo',
|
||||
'link' => '/SOGo/'
|
||||
),
|
||||
// array(
|
||||
// 'name' => 'Roundcube',
|
||||
// 'link' => '/rc/'
|
||||
// ),
|
||||
);
|
||||
|
||||
|
||||
?>
|
||||
|
|
|
@ -63,7 +63,11 @@ $_SESSION['return_to'] = $_SERVER['REQUEST_URI'];
|
|||
endif;
|
||||
?>
|
||||
<legend>mailcow Apps</legend>
|
||||
<a href="/SOGo/" role="button" class="btn btn-lg btn-default"><?=$lang['start']['start_sogo'];?></a>
|
||||
<?php
|
||||
foreach ($MAILCOW_APPS as $app) {
|
||||
echo '<a href="' . $app['link'] . '" role="button" class="btn btn-lg btn-default">' . $app['name'] . '</a> ';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,20 +1,19 @@
|
|||
## Anonymize headers
|
||||
## Add mailcow app buttons
|
||||
|
||||
Open `data/web/inc/vars.local.inc.php` and add your apps to an array. Default configuration:
|
||||
|
||||
Save as `data/conf/postfix/mailcow_anonymize_headers.pcre`:
|
||||
|
||||
```
|
||||
/^\s*Received:[^\)]+\)\s+\(Authenticated sender:(.+)/
|
||||
REPLACE Received: from localhost (localhost [127.0.0.1]) (Authenticated sender:$1
|
||||
/^\s*User-Agent/ IGNORE
|
||||
/^\s*X-Enigmail/ IGNORE
|
||||
/^\s*X-Mailer/ IGNORE
|
||||
/^\s*X-Originating-IP/ IGNORE
|
||||
/^\s*X-Forward/ IGNORE
|
||||
```
|
||||
|
||||
Add this to `data/conf/postfix/main.cf`:
|
||||
```
|
||||
smtp_header_checks = pcre:/opt/postfix/conf/mailcow_anonymize_headers.pcre
|
||||
$MAILCOW_APPS = array(
|
||||
array(
|
||||
'name' => 'SOGo',
|
||||
'link' => '/SOGo/'
|
||||
),
|
||||
// array(
|
||||
// 'name' => 'Roundcube',
|
||||
// 'link' => '/rc/'
|
||||
// ),
|
||||
);
|
||||
```
|
||||
|
||||
## Backup and restore maildir (simple tar file)
|
||||
|
|
Loading…
Reference in New Issue