Add and remove mailcow apps to login screen, fixes #120
This commit is contained in:
parent
f384759282
commit
4518f6f896
@ -37,4 +37,18 @@ $DEFAULT_THEME = "lumen";
|
|||||||
|
|
||||||
// Password complexity as regular expression
|
// Password complexity as regular expression
|
||||||
$PASSWD_REGEP = '.{4,}';
|
$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;
|
endif;
|
||||||
?>
|
?>
|
||||||
<legend>mailcow Apps</legend>
|
<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>
|
</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:(.+)/
|
$MAILCOW_APPS = array(
|
||||||
REPLACE Received: from localhost (localhost [127.0.0.1]) (Authenticated sender:$1
|
array(
|
||||||
/^\s*User-Agent/ IGNORE
|
'name' => 'SOGo',
|
||||||
/^\s*X-Enigmail/ IGNORE
|
'link' => '/SOGo/'
|
||||||
/^\s*X-Mailer/ IGNORE
|
),
|
||||||
/^\s*X-Originating-IP/ IGNORE
|
// array(
|
||||||
/^\s*X-Forward/ IGNORE
|
// 'name' => 'Roundcube',
|
||||||
```
|
// 'link' => '/rc/'
|
||||||
|
// ),
|
||||||
Add this to `data/conf/postfix/main.cf`:
|
);
|
||||||
```
|
|
||||||
smtp_header_checks = pcre:/opt/postfix/conf/mailcow_anonymize_headers.pcre
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Backup and restore maildir (simple tar file)
|
## Backup and restore maildir (simple tar file)
|
||||||
|
Loading…
Reference in New Issue
Block a user