NobGit
public nobgit read

NobMail

Based on mailcow: dockerized

Languages

Repository composition by tracked source files.

PHP
PHP 49% JavaScript 35% HTML 9% CSS 4% Shell 2% Python 1% Lua 0% Perl 0% Ruby 0% SCSS 0%
Create file Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git

Trace

data/web/inc/functions.dkim.inc.php

Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.

functions.dkim.inc.php on main
Author Date Commit Line Code
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1
<?php
Open commit View diff
1 <?php
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
2
Open commit View diff
2
andryyy about 6 years ago 60da09c

[Web] Fix duplicating DKIM keys: Duplicated keys were invalid, fixes #3578

Full commit hash
60da09c0dca5517eb8a510fc36e0529c34ead0c4
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
3
function dkim($_action, $_data = null, $privkey = false) {
Open commit View diff
3 function dkim($_action, $_data = null, $privkey = false) {
andryyy almost 5 years ago 2cd0b56

[Web] Various PHP 8 fixes, partly fixes #4219

Full commit hash
2cd0b56b143b8a2741488ae1735bf6d74253247f
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
4
  global $redis;
Open commit View diff
4 global $redis;
same change 2cd0b56

[Web] Various PHP 8 fixes, partly fixes #4219

Full commit hash
2cd0b56b143b8a2741488ae1735bf6d74253247f
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
5
  global $lang;
Open commit View diff
5 global $lang;
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
6
  switch ($_action) {
Open commit View diff
6 switch ($_action) {
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
7
    case 'add':
Open commit View diff
7 case 'add':
andryyy almost 5 years ago 2cd0b56

[Web] Various PHP 8 fixes, partly fixes #4219

Full commit hash
2cd0b56b143b8a2741488ae1735bf6d74253247f
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
8
      $key_length = intval($_data['key_size']);
Open commit View diff
8 $key_length = intval($_data['key_size']);
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
9
      $dkim_selector = (isset($_data['dkim_selector'])) ? $_data['dkim_selector'] : 'dkim';
Open commit View diff
9 $dkim_selector = (isset($_data['dkim_selector'])) ? $_data['dkim_selector'] : 'dkim';
André almost 8 years ago d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
10
      $domains = array_map('trim', preg_split( "/( |,|;|\n)/", $_data['domains']));
Open commit View diff
10 $domains = array_map('trim', preg_split( "/( |,|;|\n)/", $_data['domains']));
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
11
      $domains = array_filter($domains);
Open commit View diff
11 $domains = array_filter($domains);
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
12
      foreach ($domains as $domain) {
Open commit View diff
12 foreach ($domains as $domain) {
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
13
        if (!is_valid_domain_name($domain) || !is_numeric($key_length)) {
Open commit View diff
13 if (!is_valid_domain_name($domain) || !is_numeric($key_length)) {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
14
          $_SESSION['return'][] = array(
Open commit View diff
14 $_SESSION['return'][] = array(
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
15
            'type' => 'danger',
Open commit View diff
15 'type' => 'danger',
andryyy over 5 years ago 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
16
            'log' => array(__FUNCTION__, $_action, $_data),
Open commit View diff
16 'log' => array(__FUNCTION__, $_action, $_data),
André almost 8 years ago d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
17
            'msg' => array('dkim_domain_or_sel_invalid', $domain)
Open commit View diff
17 'msg' => array('dkim_domain_or_sel_invalid', $domain)
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
18
          );
Open commit View diff
18 );
André almost 8 years ago d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
19
          continue;
Open commit View diff
19 continue;
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
20
        }
Open commit View diff
20 }
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
21
        if ($redis->hGet('DKIM_PUB_KEYS', $domain)) {
Open commit View diff
21 if ($redis->hGet('DKIM_PUB_KEYS', $domain)) {
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
22
          $_SESSION['return'][] = array(
Open commit View diff
22 $_SESSION['return'][] = array(
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
23
            'type' => 'danger',
Open commit View diff
23 'type' => 'danger',
andryyy over 5 years ago 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
24
            'log' => array(__FUNCTION__, $_action, $_data),
Open commit View diff
24 'log' => array(__FUNCTION__, $_action, $_data),
André almost 8 years ago d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
25
            'msg' => array('dkim_domain_or_sel_invalid', $domain)
Open commit View diff
25 'msg' => array('dkim_domain_or_sel_invalid', $domain)
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
26
          );
Open commit View diff
26 );
André almost 8 years ago d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
27
          continue;
Open commit View diff
27 continue;
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
28
        }
Open commit View diff
28 }
FreddleSpl0it over 1 year ago ba28223

[Web] allow dots in dkim selectors

Full commit hash
ba282233ea06823e827d85fad014ff68e23854b5
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
29
        if (!ctype_alnum(str_replace(['-', '_', '.'], '', $dkim_selector))) {
Open commit View diff
29 if (!ctype_alnum(str_replace(['-', '_', '.'], '', $dkim_selector))) {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
30
          $_SESSION['return'][] = array(
Open commit View diff
30 $_SESSION['return'][] = array(
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
31
            'type' => 'danger',
Open commit View diff
31 'type' => 'danger',
andryyy over 5 years ago 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
32
            'log' => array(__FUNCTION__, $_action, $_data),
Open commit View diff
32 'log' => array(__FUNCTION__, $_action, $_data),
André almost 8 years ago d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
33
            'msg' => array('dkim_domain_or_sel_invalid', $domain)
Open commit View diff
33 'msg' => array('dkim_domain_or_sel_invalid', $domain)
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
34
          );
Open commit View diff
34 );
André almost 8 years ago d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
35
          continue;
Open commit View diff
35 continue;
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
36
        }
Open commit View diff
36 }
Kristian Feldsam almost 5 years ago c1dcb52

[Web] Add DKIM key when adding a domain or alias domain (#4254)

Full commit hash
c1dcb529f3abeb983d52a66018b2fec496aca0b7
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
37
        if (!hasDomainAccess($_SESSION['mailcow_cc_username'], $_SESSION['mailcow_cc_role'], $domain)) {
Open commit View diff
37 if (!hasDomainAccess($_SESSION['mailcow_cc_username'], $_SESSION['mailcow_cc_role'], $domain)) {
same change c1dcb52

[Web] Add DKIM key when adding a domain or alias domain (#4254)

Full commit hash
c1dcb529f3abeb983d52a66018b2fec496aca0b7
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
38
          $_SESSION['return'][] = array(
Open commit View diff
38 $_SESSION['return'][] = array(
same change c1dcb52

[Web] Add DKIM key when adding a domain or alias domain (#4254)

Full commit hash
c1dcb529f3abeb983d52a66018b2fec496aca0b7
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
39
            'type' => 'danger',
Open commit View diff
39 'type' => 'danger',
same change c1dcb52

[Web] Add DKIM key when adding a domain or alias domain (#4254)

Full commit hash
c1dcb529f3abeb983d52a66018b2fec496aca0b7
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
40
            'log' => array(__FUNCTION__, $_action, $_data),
Open commit View diff
40 'log' => array(__FUNCTION__, $_action, $_data),
same change c1dcb52

[Web] Add DKIM key when adding a domain or alias domain (#4254)

Full commit hash
c1dcb529f3abeb983d52a66018b2fec496aca0b7
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
41
            'msg' => array('access_denied', $domain)
Open commit View diff
41 'msg' => array('access_denied', $domain)
same change c1dcb52

[Web] Add DKIM key when adding a domain or alias domain (#4254)

Full commit hash
c1dcb529f3abeb983d52a66018b2fec496aca0b7
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
42
          );
Open commit View diff
42 );
same change c1dcb52

[Web] Add DKIM key when adding a domain or alias domain (#4254)

Full commit hash
c1dcb529f3abeb983d52a66018b2fec496aca0b7
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
43
          continue;
Open commit View diff
43 continue;
same change c1dcb52

[Web] Add DKIM key when adding a domain or alias domain (#4254)

Full commit hash
c1dcb529f3abeb983d52a66018b2fec496aca0b7
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
44
        }
Open commit View diff
44 }
André almost 8 years ago d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
45
        $config = array(
Open commit View diff
45 $config = array(
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
46
          "digest_alg" => "sha256",
Open commit View diff
46 "digest_alg" => "sha256",
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
47
          "private_key_bits" => $key_length,
Open commit View diff
47 "private_key_bits" => $key_length,
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
48
          "private_key_type" => OPENSSL_KEYTYPE_RSA,
Open commit View diff
48 "private_key_type" => OPENSSL_KEYTYPE_RSA,
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
49
        );
Open commit View diff
49 );
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
50
        if ($keypair_ressource = openssl_pkey_new($config)) {
Open commit View diff
50 if ($keypair_ressource = openssl_pkey_new($config)) {
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
51
          $key_details = openssl_pkey_get_details($keypair_ressource);
Open commit View diff
51 $key_details = openssl_pkey_get_details($keypair_ressource);
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
52
          $pubKey = implode(array_slice(
Open commit View diff
52 $pubKey = implode(array_slice(
andryyy almost 6 years ago 23f118a

[Web] Allow to overwrite DKIM keys while importing a new key

Full commit hash
23f118a152ff4f0dd7b97c82a142ad8a6d0d6fe2
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
53
            array_filter(
Open commit View diff
53 array_filter(
same change 23f118a

[Web] Allow to overwrite DKIM keys while importing a new key

Full commit hash
23f118a152ff4f0dd7b97c82a142ad8a6d0d6fe2
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
54
              explode(PHP_EOL, $key_details['key'])
Open commit View diff
54 explode(PHP_EOL, $key_details['key'])
same change 23f118a

[Web] Allow to overwrite DKIM keys while importing a new key

Full commit hash
23f118a152ff4f0dd7b97c82a142ad8a6d0d6fe2
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
55
            ), 1, -1)
Open commit View diff
55 ), 1, -1)
same change 23f118a

[Web] Allow to overwrite DKIM keys while importing a new key

Full commit hash
23f118a152ff4f0dd7b97c82a142ad8a6d0d6fe2
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
56
          );
Open commit View diff
56 );
André almost 8 years ago d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
57
          // Save public key and selector to redis
Open commit View diff
57 // Save public key and selector to redis
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
58
          try {
Open commit View diff
58 try {
André almost 8 years ago d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
59
            $redis->hSet('DKIM_PUB_KEYS', $domain, $pubKey);
Open commit View diff
59 $redis->hSet('DKIM_PUB_KEYS', $domain, $pubKey);
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
60
            $redis->hSet('DKIM_SELECTORS', $domain, $dkim_selector);
Open commit View diff
60 $redis->hSet('DKIM_SELECTORS', $domain, $dkim_selector);
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
61
          }
Open commit View diff
61 }
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
62
          catch (RedisException $e) {
Open commit View diff
62 catch (RedisException $e) {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
63
            $_SESSION['return'][] = array(
Open commit View diff
63 $_SESSION['return'][] = array(
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
64
              'type' => 'danger',
Open commit View diff
64 'type' => 'danger',
andryyy over 5 years ago 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
65
              'log' => array(__FUNCTION__, $_action, $_data),
Open commit View diff
65 'log' => array(__FUNCTION__, $_action, $_data),
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
66
              'msg' => array('redis_error', $e)
Open commit View diff
66 'msg' => array('redis_error', $e)
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
67
            );
Open commit View diff
67 );
André almost 8 years ago d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
68
            continue;
Open commit View diff
68 continue;
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
69
          }
Open commit View diff
69 }
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
70
          // Export private key and save private key to redis
Open commit View diff
70 // Export private key and save private key to redis
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
71
          openssl_pkey_export($keypair_ressource, $privKey);
Open commit View diff
71 openssl_pkey_export($keypair_ressource, $privKey);
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
72
          if (isset($privKey) && !empty($privKey)) {
Open commit View diff
72 if (isset($privKey) && !empty($privKey)) {
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
73
            try {
Open commit View diff
73 try {
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
74
              $redis->hSet('DKIM_PRIV_KEYS', $dkim_selector . '.' . $domain, trim($privKey));
Open commit View diff
74 $redis->hSet('DKIM_PRIV_KEYS', $dkim_selector . '.' . $domain, trim($privKey));
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
75
            }
Open commit View diff
75 }
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
76
            catch (RedisException $e) {
Open commit View diff
76 catch (RedisException $e) {
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
77
              $_SESSION['return'][] = array(
Open commit View diff
77 $_SESSION['return'][] = array(
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
78
                'type' => 'danger',
Open commit View diff
78 'type' => 'danger',
andryyy over 5 years ago 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
79
                'log' => array(__FUNCTION__, $_action, $_data),
Open commit View diff
79 'log' => array(__FUNCTION__, $_action, $_data),
André almost 8 years ago d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
80
                'msg' => array('redis_error', $e)
Open commit View diff
80 'msg' => array('redis_error', $e)
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
81
              );
Open commit View diff
81 );
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
82
              continue;
Open commit View diff
82 continue;
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
83
            }
Open commit View diff
83 }
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
84
          }
Open commit View diff
84 }
André almost 8 years ago d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
85
          $_SESSION['return'][] = array(
Open commit View diff
85 $_SESSION['return'][] = array(
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
86
            'type' => 'success',
Open commit View diff
86 'type' => 'success',
andryyy over 5 years ago 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
87
            'log' => array(__FUNCTION__, $_action, $_data),
Open commit View diff
87 'log' => array(__FUNCTION__, $_action, $_data),
André almost 8 years ago d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
88
            'msg' => array('dkim_added', $domain)
Open commit View diff
88 'msg' => array('dkim_added', $domain)
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
89
          );
Open commit View diff
89 );
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
90
        }
Open commit View diff
90 }
André almost 8 years ago d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
91
        else {
Open commit View diff
91 else {
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
92
          $_SESSION['return'][] = array(
Open commit View diff
92 $_SESSION['return'][] = array(
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
93
            'type' => 'danger',
Open commit View diff
93 'type' => 'danger',
andryyy over 5 years ago 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
94
            'log' => array(__FUNCTION__, $_action, $_data),
Open commit View diff
94 'log' => array(__FUNCTION__, $_action, $_data),
André almost 8 years ago d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
95
            'msg' => array('dkim_domain_or_sel_invalid', $domain)
Open commit View diff
95 'msg' => array('dkim_domain_or_sel_invalid', $domain)
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
96
          );
Open commit View diff
96 );
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
97
          continue;
Open commit View diff
97 continue;
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
98
        }
Open commit View diff
98 }
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
99
      }
Open commit View diff
99 }
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
100
    break;
Open commit View diff
100 break;
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
101
    case 'duplicate':
Open commit View diff
101 case 'duplicate':
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
102
      if ($_SESSION['mailcow_cc_role'] != "admin") {
Open commit View diff
102 if ($_SESSION['mailcow_cc_role'] != "admin") {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
103
        $_SESSION['return'][] = array(
Open commit View diff
103 $_SESSION['return'][] = array(
André almost 8 years ago d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
104
          'type' => 'danger',
Open commit View diff
104 'type' => 'danger',
andryyy over 5 years ago 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
105
          'log' => array(__FUNCTION__, $_action, $_data),
Open commit View diff
105 'log' => array(__FUNCTION__, $_action, $_data),
André almost 8 years ago d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
106
          'msg' => 'access_denied'
Open commit View diff
106 'msg' => 'access_denied'
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
107
        );
Open commit View diff
107 );
André almost 8 years ago d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
108
        return false;
Open commit View diff
108 return false;
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
109
      }
Open commit View diff
109 }
André almost 8 years ago d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
110
      $from_domain = $_data['from_domain'];
Open commit View diff
110 $from_domain = $_data['from_domain'];
andryyy about 6 years ago 60da09c

[Web] Fix duplicating DKIM keys: Duplicated keys were invalid, fixes #3578

Full commit hash
60da09c0dca5517eb8a510fc36e0529c34ead0c4
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
111
      $from_domain_dkim = dkim('details', $from_domain, true);
Open commit View diff
111 $from_domain_dkim = dkim('details', $from_domain, true);
André almost 8 years ago d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
112
      if (empty($from_domain_dkim)) {
Open commit View diff
112 if (empty($from_domain_dkim)) {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
113
        $_SESSION['return'][] = array(
Open commit View diff
113 $_SESSION['return'][] = array(
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
114
          'type' => 'danger',
Open commit View diff
114 'type' => 'danger',
andryyy over 5 years ago 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
115
          'log' => array(__FUNCTION__, $_action, $_data),
Open commit View diff
115 'log' => array(__FUNCTION__, $_action, $_data),
André almost 8 years ago d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
116
          'msg' => array('dkim_domain_or_sel_invalid', $from_domain)
Open commit View diff
116 'msg' => array('dkim_domain_or_sel_invalid', $from_domain)
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
117
        );
Open commit View diff
117 );
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
118
        continue;
Open commit View diff
118 continue;
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
119
      }
Open commit View diff
119 }
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
120
      $to_domains = (array)$_data['to_domain'];
Open commit View diff
120 $to_domains = (array)$_data['to_domain'];
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
121
      $to_domains = array_filter($to_domains);
Open commit View diff
121 $to_domains = array_filter($to_domains);
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
122
      foreach ($to_domains as $to_domain) {
Open commit View diff
122 foreach ($to_domains as $to_domain) {
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
123
        try {
Open commit View diff
123 try {
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
124
          $redis->hSet('DKIM_PUB_KEYS', $to_domain, $from_domain_dkim['pubkey']);
Open commit View diff
124 $redis->hSet('DKIM_PUB_KEYS', $to_domain, $from_domain_dkim['pubkey']);
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
125
          $redis->hSet('DKIM_SELECTORS', $to_domain, $from_domain_dkim['dkim_selector']);
Open commit View diff
125 $redis->hSet('DKIM_SELECTORS', $to_domain, $from_domain_dkim['dkim_selector']);
Patrik Kernstock over 7 years ago 5dad2dd

[web] Duplicating DKIM key corrupts private key

Full commit hash
5dad2dded1a0e6bc14867451f2393b3338ee04fd
Author
Patrik Kernstock <[email protected]>
Date
over 7 years ago
Selected line
126
          $redis->hSet('DKIM_PRIV_KEYS', $from_domain_dkim['dkim_selector'] . '.' . $to_domain, base64_decode(trim($from_domain_dkim['privkey'])));
Open commit View diff
126 $redis->hSet('DKIM_PRIV_KEYS', $from_domain_dkim['dkim_selector'] . '.' . $to_domain, base64_decode(trim($from_domain_dkim['privkey'])));
André almost 8 years ago d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
127
        }
Open commit View diff
127 }
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
128
        catch (RedisException $e) {
Open commit View diff
128 catch (RedisException $e) {
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
129
          $_SESSION['return'][] = array(
Open commit View diff
129 $_SESSION['return'][] = array(
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
130
            'type' => 'danger',
Open commit View diff
130 'type' => 'danger',
andryyy over 5 years ago 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
131
            'log' => array(__FUNCTION__, $_action, $_data),
Open commit View diff
131 'log' => array(__FUNCTION__, $_action, $_data),
André almost 8 years ago d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
132
            'msg' => array('redis_error', $e)
Open commit View diff
132 'msg' => array('redis_error', $e)
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
133
          );
Open commit View diff
133 );
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
134
          continue;
Open commit View diff
134 continue;
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
135
        }
Open commit View diff
135 }
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
136
        $_SESSION['return'][] = array(
Open commit View diff
136 $_SESSION['return'][] = array(
same change d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
137
          'type' => 'success',
Open commit View diff
137 'type' => 'success',
andryyy over 5 years ago 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
138
          'log' => array(__FUNCTION__, $_action, $_data),
Open commit View diff
138 'log' => array(__FUNCTION__, $_action, $_data),
André almost 8 years ago d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
139
          'msg' => array('dkim_duplicated', $from_domain, $to_domain)
Open commit View diff
139 'msg' => array('dkim_duplicated', $from_domain, $to_domain)
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
140
        );
Open commit View diff
140 );
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
141
      }
Open commit View diff
141 }
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
142
    break;
Open commit View diff
142 break;
andryyy about 9 years ago 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
143
    case 'import':
Open commit View diff
143 case 'import':
same change 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
144
      if ($_SESSION['mailcow_cc_role'] != "admin") {
Open commit View diff
144 if ($_SESSION['mailcow_cc_role'] != "admin") {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
145
        $_SESSION['return'][] = array(
Open commit View diff
145 $_SESSION['return'][] = array(
andryyy about 9 years ago 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
146
          'type' => 'danger',
Open commit View diff
146 'type' => 'danger',
andryyy over 5 years ago 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
147
          'log' => array(__FUNCTION__, $_action, $_data),
Open commit View diff
147 'log' => array(__FUNCTION__, $_action, $_data),
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
148
          'msg' => 'access_denied'
Open commit View diff
148 'msg' => 'access_denied'
andryyy about 9 years ago 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
149
        );
Open commit View diff
149 );
same change 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
150
        return false;
Open commit View diff
150 return false;
same change 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
151
      }
Open commit View diff
151 }
same change 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
152
      $private_key_input = trim($_data['private_key_file']);
Open commit View diff
152 $private_key_input = trim($_data['private_key_file']);
andryyy almost 6 years ago 23f118a

[Web] Allow to overwrite DKIM keys while importing a new key

Full commit hash
23f118a152ff4f0dd7b97c82a142ad8a6d0d6fe2
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
153
      $overwrite_existing = intval($_data['overwrite_existing']);
Open commit View diff
153 $overwrite_existing = intval($_data['overwrite_existing']);
andryyy about 9 years ago 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
154
      $private_key_normalized = preg_replace('~\r\n?~', "\n", $private_key_input);
Open commit View diff
154 $private_key_normalized = preg_replace('~\r\n?~', "\n", $private_key_input);
same change 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
155
      $private_key = openssl_pkey_get_private($private_key_normalized);
Open commit View diff
155 $private_key = openssl_pkey_get_private($private_key_normalized);
same change 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
156
      if ($ssl_error = openssl_error_string()) {
Open commit View diff
156 if ($ssl_error = openssl_error_string()) {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
157
        $_SESSION['return'][] = array(
Open commit View diff
157 $_SESSION['return'][] = array(
andryyy about 9 years ago 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
158
          'type' => 'danger',
Open commit View diff
158 'type' => 'danger',
andryyy over 5 years ago 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
159
          'log' => array(__FUNCTION__, $_action, $_data),
Open commit View diff
159 'log' => array(__FUNCTION__, $_action, $_data),
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
160
          'msg' => array('private_key_error', $ssl_error)
Open commit View diff
160 'msg' => array('private_key_error', $ssl_error)
andryyy about 9 years ago 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
161
        );
Open commit View diff
161 );
same change 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
162
        return false;
Open commit View diff
162 return false;
same change 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
163
      }
Open commit View diff
163 }
same change 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
164
      // Explode by nl
Open commit View diff
164 // Explode by nl
same change 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
165
      $pem_public_key_array = explode(PHP_EOL, trim(openssl_pkey_get_details($private_key)['key']));
Open commit View diff
165 $pem_public_key_array = explode(PHP_EOL, trim(openssl_pkey_get_details($private_key)['key']));
same change 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
166
      // Remove first and last line/item
Open commit View diff
166 // Remove first and last line/item
same change 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
167
      array_shift($pem_public_key_array);
Open commit View diff
167 array_shift($pem_public_key_array);
same change 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
168
      array_pop($pem_public_key_array);
Open commit View diff
168 array_pop($pem_public_key_array);
same change 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
169
      // Implode as single string
Open commit View diff
169 // Implode as single string
andryyy almost 5 years ago 2cd0b56

[Web] Various PHP 8 fixes, partly fixes #4219

Full commit hash
2cd0b56b143b8a2741488ae1735bf6d74253247f
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
170
      $pem_public_key = implode('', (array)$pem_public_key_array);
Open commit View diff
170 $pem_public_key = implode('', (array)$pem_public_key_array);
andryyy about 9 years ago 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
171
      $dkim_selector = (isset($_data['dkim_selector'])) ? $_data['dkim_selector'] : 'dkim';
Open commit View diff
171 $dkim_selector = (isset($_data['dkim_selector'])) ? $_data['dkim_selector'] : 'dkim';
andryyy almost 5 years ago 2cd0b56

[Web] Various PHP 8 fixes, partly fixes #4219

Full commit hash
2cd0b56b143b8a2741488ae1735bf6d74253247f
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
172
      $domain = $_data['domain'];
Open commit View diff
172 $domain = $_data['domain'];
andryyy about 9 years ago 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
173
      if (!is_valid_domain_name($domain)) {
Open commit View diff
173 if (!is_valid_domain_name($domain)) {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
174
        $_SESSION['return'][] = array(
Open commit View diff
174 $_SESSION['return'][] = array(
andryyy about 9 years ago 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
175
          'type' => 'danger',
Open commit View diff
175 'type' => 'danger',
andryyy over 5 years ago 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
176
          'log' => array(__FUNCTION__, $_action, $_data),
Open commit View diff
176 'log' => array(__FUNCTION__, $_action, $_data),
André almost 8 years ago d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
177
          'msg' => array('dkim_domain_or_sel_invalid', $domain)
Open commit View diff
177 'msg' => array('dkim_domain_or_sel_invalid', $domain)
andryyy about 9 years ago 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
178
        );
Open commit View diff
178 );
same change 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
179
        return false;
Open commit View diff
179 return false;
same change 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
180
      }
Open commit View diff
180 }
same change 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
181
      if ($redis->hGet('DKIM_PUB_KEYS', $domain)) {
Open commit View diff
181 if ($redis->hGet('DKIM_PUB_KEYS', $domain)) {
andryyy almost 6 years ago 23f118a

[Web] Allow to overwrite DKIM keys while importing a new key

Full commit hash
23f118a152ff4f0dd7b97c82a142ad8a6d0d6fe2
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
182
        if ($overwrite_existing == 0) {
Open commit View diff
182 if ($overwrite_existing == 0) {
same change 23f118a

[Web] Allow to overwrite DKIM keys while importing a new key

Full commit hash
23f118a152ff4f0dd7b97c82a142ad8a6d0d6fe2
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
183
          $_SESSION['return'][] = array(
Open commit View diff
183 $_SESSION['return'][] = array(
same change 23f118a

[Web] Allow to overwrite DKIM keys while importing a new key

Full commit hash
23f118a152ff4f0dd7b97c82a142ad8a6d0d6fe2
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
184
            'type' => 'danger',
Open commit View diff
184 'type' => 'danger',
andryyy over 5 years ago 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
185
            'log' => array(__FUNCTION__, $_action, $_data),
Open commit View diff
185 'log' => array(__FUNCTION__, $_action, $_data),
andryyy almost 6 years ago 23f118a

[Web] Allow to overwrite DKIM keys while importing a new key

Full commit hash
23f118a152ff4f0dd7b97c82a142ad8a6d0d6fe2
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
186
            'msg' => array('dkim_domain_or_sel_exists', $domain)
Open commit View diff
186 'msg' => array('dkim_domain_or_sel_exists', $domain)
same change 23f118a

[Web] Allow to overwrite DKIM keys while importing a new key

Full commit hash
23f118a152ff4f0dd7b97c82a142ad8a6d0d6fe2
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
187
          );
Open commit View diff
187 );
same change 23f118a

[Web] Allow to overwrite DKIM keys while importing a new key

Full commit hash
23f118a152ff4f0dd7b97c82a142ad8a6d0d6fe2
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
188
          return false;
Open commit View diff
188 return false;
same change 23f118a

[Web] Allow to overwrite DKIM keys while importing a new key

Full commit hash
23f118a152ff4f0dd7b97c82a142ad8a6d0d6fe2
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
189
        }
Open commit View diff
189 }
andryyy about 9 years ago 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
190
      }
Open commit View diff
190 }
FreddleSpl0it over 1 year ago ba28223

[Web] allow dots in dkim selectors

Full commit hash
ba282233ea06823e827d85fad014ff68e23854b5
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
191
      if (!ctype_alnum(str_replace(['-', '_', '.'], '', $dkim_selector))) {
Open commit View diff
191 if (!ctype_alnum(str_replace(['-', '_', '.'], '', $dkim_selector))) {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
192
        $_SESSION['return'][] = array(
Open commit View diff
192 $_SESSION['return'][] = array(
andryyy about 9 years ago 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
193
          'type' => 'danger',
Open commit View diff
193 'type' => 'danger',
andryyy over 5 years ago 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
194
          'log' => array(__FUNCTION__, $_action, $_data),
Open commit View diff
194 'log' => array(__FUNCTION__, $_action, $_data),
André almost 8 years ago d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
195
          'msg' => array('dkim_domain_or_sel_invalid', $domain)
Open commit View diff
195 'msg' => array('dkim_domain_or_sel_invalid', $domain)
andryyy about 9 years ago 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
196
        );
Open commit View diff
196 );
same change 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
197
        return false;
Open commit View diff
197 return false;
same change 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
198
      }
Open commit View diff
198 }
same change 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
199
      try {
Open commit View diff
199 try {
andryyy about 4 years ago 7ae7f25

[Web] Re-use DKIM key if available

Full commit hash
7ae7f25580dbab0e49ff0d208ba876be1485d468
Author
andryyy <[email protected]>
Date
about 4 years ago
Selected line
200
        dkim('delete', array('domains' => $domain));
Open commit View diff
200 dkim('delete', array('domains' => $domain));
andryyy about 9 years ago 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
201
        $redis->hSet('DKIM_PUB_KEYS', $domain, $pem_public_key);
Open commit View diff
201 $redis->hSet('DKIM_PUB_KEYS', $domain, $pem_public_key);
same change 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
202
        $redis->hSet('DKIM_SELECTORS', $domain, $dkim_selector);
Open commit View diff
202 $redis->hSet('DKIM_SELECTORS', $domain, $dkim_selector);
same change 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
203
        $redis->hSet('DKIM_PRIV_KEYS', $dkim_selector . '.' . $domain, $private_key_normalized);
Open commit View diff
203 $redis->hSet('DKIM_PRIV_KEYS', $dkim_selector . '.' . $domain, $private_key_normalized);
same change 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
204
      }
Open commit View diff
204 }
same change 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
205
      catch (RedisException $e) {
Open commit View diff
205 catch (RedisException $e) {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
206
        $_SESSION['return'][] = array(
Open commit View diff
206 $_SESSION['return'][] = array(
andryyy about 9 years ago 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
207
          'type' => 'danger',
Open commit View diff
207 'type' => 'danger',
andryyy over 5 years ago 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
208
          'log' => array(__FUNCTION__, $_action, $_data),
Open commit View diff
208 'log' => array(__FUNCTION__, $_action, $_data),
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
209
          'msg' => array('redis_error', $e)
Open commit View diff
209 'msg' => array('redis_error', $e)
andryyy about 9 years ago 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
210
        );
Open commit View diff
210 );
same change 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
211
        return false;
Open commit View diff
211 return false;
same change 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
212
      }
Open commit View diff
212 }
same change 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
213
      unset($private_key_normalized);
Open commit View diff
213 unset($private_key_normalized);
same change 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
214
      unset($private_key);
Open commit View diff
214 unset($private_key);
same change 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
215
      unset($private_key_input);
Open commit View diff
215 unset($private_key_input);
same change 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
216
      try {
Open commit View diff
216 try {
same change 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
217
      }
Open commit View diff
217 }
same change 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
218
      catch (RedisException $e) {
Open commit View diff
218 catch (RedisException $e) {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
219
        $_SESSION['return'][] = array(
Open commit View diff
219 $_SESSION['return'][] = array(
andryyy about 9 years ago 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
220
          'type' => 'danger',
Open commit View diff
220 'type' => 'danger',
andryyy over 5 years ago 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
221
          'log' => array(__FUNCTION__, $_action, $_data),
Open commit View diff
221 'log' => array(__FUNCTION__, $_action, $_data),
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
222
          'msg' => array('redis_error', $e)
Open commit View diff
222 'msg' => array('redis_error', $e)
andryyy about 9 years ago 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
223
        );
Open commit View diff
223 );
same change 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
224
        return false;
Open commit View diff
224 return false;
same change 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
225
      }
Open commit View diff
225 }
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
226
      $_SESSION['return'][] = array(
Open commit View diff
226 $_SESSION['return'][] = array(
andryyy about 9 years ago 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
227
        'type' => 'success',
Open commit View diff
227 'type' => 'success',
andryyy over 5 years ago 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
228
        'log' => array(__FUNCTION__, $_action, $_data),
Open commit View diff
228 'log' => array(__FUNCTION__, $_action, $_data),
André almost 8 years ago d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
229
        'msg' => array('dkim_added', $domain)
Open commit View diff
229 'msg' => array('dkim_added', $domain)
andryyy about 9 years ago 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
230
      );
Open commit View diff
230 );
same change 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
231
      return true;
Open commit View diff
231 return true;
same change 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
232
    break;
Open commit View diff
232 break;
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
233
    case 'details':
Open commit View diff
233 case 'details':
andryyy over 7 years ago 2b7aa20

[Web] Fix details for blind DKIM keys

Full commit hash
2b7aa206e4ea61326b92383abbae126cf3221f54
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
234
      if (!hasDomainAccess($_SESSION['mailcow_cc_username'], $_SESSION['mailcow_cc_role'], $_data) && $_SESSION['mailcow_cc_role'] != "admin") {
Open commit View diff
234 if (!hasDomainAccess($_SESSION['mailcow_cc_username'], $_SESSION['mailcow_cc_role'], $_data) && $_SESSION['mailcow_cc_role'] != "admin") {
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
235
        return false;
Open commit View diff
235 return false;
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
236
      }
Open commit View diff
236 }
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
237
      $dkimdata = array();
Open commit View diff
237 $dkimdata = array();
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
238
      if ($redis_dkim_key_data = $redis->hGet('DKIM_PUB_KEYS', $_data)) {
Open commit View diff
238 if ($redis_dkim_key_data = $redis->hGet('DKIM_PUB_KEYS', $_data)) {
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
239
        $dkimdata['pubkey'] = $redis_dkim_key_data;
Open commit View diff
239 $dkimdata['pubkey'] = $redis_dkim_key_data;
andryyy about 9 years ago 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
240
        if (strlen($dkimdata['pubkey']) < 391) {
Open commit View diff
240 if (strlen($dkimdata['pubkey']) < 391) {
same change 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
241
          $dkimdata['length'] = "1024";
Open commit View diff
241 $dkimdata['length'] = "1024";
same change 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
242
        }
Open commit View diff
242 }
Marvin A. Ruder over 1 year ago 062539b

dkim: Add support for 3072 and 4096 bit RSA keys (#6365)

Full commit hash
062539b7d7ba3dcb883816ceb888c4f082a18364
Author
Marvin A. Ruder <[email protected]>
Date
over 1 year ago
Selected line
243
        elseif (strlen($dkimdata['pubkey']) < 564) {
Open commit View diff
243 elseif (strlen($dkimdata['pubkey']) < 564) {
andryyy about 9 years ago 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
244
          $dkimdata['length'] = "2048";
Open commit View diff
244 $dkimdata['length'] = "2048";
same change 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
245
        }
Open commit View diff
245 }
Marvin A. Ruder over 1 year ago 062539b

dkim: Add support for 3072 and 4096 bit RSA keys (#6365)

Full commit hash
062539b7d7ba3dcb883816ceb888c4f082a18364
Author
Marvin A. Ruder <[email protected]>
Date
over 1 year ago
Selected line
246
        elseif (strlen($dkimdata['pubkey']) < 736) {
Open commit View diff
246 elseif (strlen($dkimdata['pubkey']) < 736) {
same change 062539b

dkim: Add support for 3072 and 4096 bit RSA keys (#6365)

Full commit hash
062539b7d7ba3dcb883816ceb888c4f082a18364
Author
Marvin A. Ruder <[email protected]>
Date
over 1 year ago
Selected line
247
          $dkimdata['length'] = "3072";
Open commit View diff
247 $dkimdata['length'] = "3072";
same change 062539b

dkim: Add support for 3072 and 4096 bit RSA keys (#6365)

Full commit hash
062539b7d7ba3dcb883816ceb888c4f082a18364
Author
Marvin A. Ruder <[email protected]>
Date
over 1 year ago
Selected line
248
        }
Open commit View diff
248 }
andryyy about 9 years ago 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
249
        elseif (strlen($dkimdata['pubkey']) < 1416) {
Open commit View diff
249 elseif (strlen($dkimdata['pubkey']) < 1416) {
same change 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
250
          $dkimdata['length'] = "4096";
Open commit View diff
250 $dkimdata['length'] = "4096";
same change 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
251
        }
Open commit View diff
251 }
same change 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
252
        else {
Open commit View diff
252 else {
same change 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
253
          $dkimdata['length'] = ">= 8192";
Open commit View diff
253 $dkimdata['length'] = ">= 8192";
same change 744784c

[UI] Initial: Import private keys for DKIM/ARC

Full commit hash
744784cb62d0c3bcf0341db9ef70f779dded35ed
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
254
        }
Open commit View diff
254 }
andryyy over 6 years ago 1e9c5ba

[Web] Allow to split DKIM every 255 chars via vars.inc.php (fixes #3473)

Full commit hash
1e9c5baab5037bb32ab0459ad3d5ff538df29336
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
255
        if ($GLOBALS['SPLIT_DKIM_255'] === true) {
Open commit View diff
255 if ($GLOBALS['SPLIT_DKIM_255'] === true) {
same change 1e9c5ba

[Web] Allow to split DKIM every 255 chars via vars.inc.php (fixes #3473)

Full commit hash
1e9c5baab5037bb32ab0459ad3d5ff538df29336
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
256
          $dkim_txt_tmp = str_split('v=DKIM1;k=rsa;t=s;s=email;p=' . $redis_dkim_key_data, 255);
Open commit View diff
256 $dkim_txt_tmp = str_split('v=DKIM1;k=rsa;t=s;s=email;p=' . $redis_dkim_key_data, 255);
andryyy almost 5 years ago 2cd0b56

[Web] Various PHP 8 fixes, partly fixes #4219

Full commit hash
2cd0b56b143b8a2741488ae1735bf6d74253247f
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
257
          $dkimdata['dkim_txt'] = sprintf('"%s"', implode('" "', (array)$dkim_txt_tmp ) );
Open commit View diff
257 $dkimdata['dkim_txt'] = sprintf('"%s"', implode('" "', (array)$dkim_txt_tmp ) );
andryyy over 6 years ago 1e9c5ba

[Web] Allow to split DKIM every 255 chars via vars.inc.php (fixes #3473)

Full commit hash
1e9c5baab5037bb32ab0459ad3d5ff538df29336
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
258
        }
Open commit View diff
258 }
same change 1e9c5ba

[Web] Allow to split DKIM every 255 chars via vars.inc.php (fixes #3473)

Full commit hash
1e9c5baab5037bb32ab0459ad3d5ff538df29336
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
259
        else {
Open commit View diff
259 else {
same change 1e9c5ba

[Web] Allow to split DKIM every 255 chars via vars.inc.php (fixes #3473)

Full commit hash
1e9c5baab5037bb32ab0459ad3d5ff538df29336
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
260
          $dkimdata['dkim_txt'] = 'v=DKIM1;k=rsa;t=s;s=email;p=' . $redis_dkim_key_data;
Open commit View diff
260 $dkimdata['dkim_txt'] = 'v=DKIM1;k=rsa;t=s;s=email;p=' . $redis_dkim_key_data;
same change 1e9c5ba

[Web] Allow to split DKIM every 255 chars via vars.inc.php (fixes #3473)

Full commit hash
1e9c5baab5037bb32ab0459ad3d5ff538df29336
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
261
        }
Open commit View diff
261 }
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
262
        $dkimdata['dkim_selector'] = $redis->hGet('DKIM_SELECTORS', $_data);
Open commit View diff
262 $dkimdata['dkim_selector'] = $redis->hGet('DKIM_SELECTORS', $_data);
andryyy about 6 years ago 60da09c

[Web] Fix duplicating DKIM keys: Duplicated keys were invalid, fixes #3578

Full commit hash
60da09c0dca5517eb8a510fc36e0529c34ead0c4
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
263
        if ($GLOBALS['SHOW_DKIM_PRIV_KEYS'] || $privkey == true) {
Open commit View diff
263 if ($GLOBALS['SHOW_DKIM_PRIV_KEYS'] || $privkey == true) {
andryyy over 6 years ago e47e54f

[Web] Add more map types soon; Do not expose private key via API if hidden in vars (fixes #3231)

Full commit hash
e47e54f3de1fadb93fe3ee76f153f2bfba661994
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
264
          $dkimdata['privkey'] = base64_encode($redis->hGet('DKIM_PRIV_KEYS', $dkimdata['dkim_selector'] . '.' . $_data));
Open commit View diff
264 $dkimdata['privkey'] = base64_encode($redis->hGet('DKIM_PRIV_KEYS', $dkimdata['dkim_selector'] . '.' . $_data));
same change e47e54f

[Web] Add more map types soon; Do not expose private key via API if hidden in vars (fixes #3231)

Full commit hash
e47e54f3de1fadb93fe3ee76f153f2bfba661994
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
265
        }
Open commit View diff
265 }
same change e47e54f

[Web] Add more map types soon; Do not expose private key via API if hidden in vars (fixes #3231)

Full commit hash
e47e54f3de1fadb93fe3ee76f153f2bfba661994
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
266
        else {
Open commit View diff
266 else {
same change e47e54f

[Web] Add more map types soon; Do not expose private key via API if hidden in vars (fixes #3231)

Full commit hash
e47e54f3de1fadb93fe3ee76f153f2bfba661994
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
267
          $dkimdata['privkey'] = '';
Open commit View diff
267 $dkimdata['privkey'] = '';
same change e47e54f

[Web] Add more map types soon; Do not expose private key via API if hidden in vars (fixes #3231)

Full commit hash
e47e54f3de1fadb93fe3ee76f153f2bfba661994
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
268
        }
Open commit View diff
268 }
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
269
      }
Open commit View diff
269 }
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
270
      return $dkimdata;
Open commit View diff
270 return $dkimdata;
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
271
    break;
Open commit View diff
271 break;
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
272
    case 'blind':
Open commit View diff
272 case 'blind':
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
273
      if ($_SESSION['mailcow_cc_role'] != "admin") {
Open commit View diff
273 if ($_SESSION['mailcow_cc_role'] != "admin") {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
274
        $_SESSION['return'][] = array(
Open commit View diff
274 $_SESSION['return'][] = array(
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
275
          'type' => 'danger',
Open commit View diff
275 'type' => 'danger',
andryyy over 5 years ago 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
276
          'log' => array(__FUNCTION__, $_action, $_data),
Open commit View diff
276 'log' => array(__FUNCTION__, $_action, $_data),
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
277
          'msg' => 'access_denied'
Open commit View diff
277 'msg' => 'access_denied'
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
278
        );
Open commit View diff
278 );
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
279
        return false;
Open commit View diff
279 return false;
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
280
      }
Open commit View diff
280 }
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
281
      $blinddkim = array();
Open commit View diff
281 $blinddkim = array();
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
282
      foreach ($redis->hKeys('DKIM_PUB_KEYS') as $redis_dkim_domain) {
Open commit View diff
282 foreach ($redis->hKeys('DKIM_PUB_KEYS') as $redis_dkim_domain) {
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
283
        $blinddkim[] = $redis_dkim_domain;
Open commit View diff
283 $blinddkim[] = $redis_dkim_domain;
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
284
      }
Open commit View diff
284 }
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
285
      return array_diff($blinddkim, array_merge(mailbox('get', 'domains'), mailbox('get', 'alias_domains')));
Open commit View diff
285 return array_diff($blinddkim, array_merge(mailbox('get', 'domains'), mailbox('get', 'alias_domains')));
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
286
    break;
Open commit View diff
286 break;
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
287
    case 'delete':
Open commit View diff
287 case 'delete':
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
288
      $domains = (array)$_data['domains'];
Open commit View diff
288 $domains = (array)$_data['domains'];
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
289
      if ($_SESSION['mailcow_cc_role'] != "admin") {
Open commit View diff
289 if ($_SESSION['mailcow_cc_role'] != "admin") {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
290
        $_SESSION['return'][] = array(
Open commit View diff
290 $_SESSION['return'][] = array(
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
291
          'type' => 'danger',
Open commit View diff
291 'type' => 'danger',
andryyy over 5 years ago 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
292
          'log' => array(__FUNCTION__, $_action, $_data),
Open commit View diff
292 'log' => array(__FUNCTION__, $_action, $_data),
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
293
          'msg' => 'access_denied'
Open commit View diff
293 'msg' => 'access_denied'
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
294
        );
Open commit View diff
294 );
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
295
        return false;
Open commit View diff
295 return false;
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
296
      }
Open commit View diff
296 }
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
297
      foreach ($domains as $domain) {
Open commit View diff
297 foreach ($domains as $domain) {
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
298
        if (!is_valid_domain_name($domain)) {
Open commit View diff
298 if (!is_valid_domain_name($domain)) {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
299
          $_SESSION['return'][] = array(
Open commit View diff
299 $_SESSION['return'][] = array(
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
300
            'type' => 'danger',
Open commit View diff
300 'type' => 'danger',
andryyy over 5 years ago 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
301
            'log' => array(__FUNCTION__, $_action, $_data),
Open commit View diff
301 'log' => array(__FUNCTION__, $_action, $_data),
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
302
            'msg' => array('dkim_domain_or_sel_invalid', $domain)
Open commit View diff
302 'msg' => array('dkim_domain_or_sel_invalid', $domain)
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
303
          );
Open commit View diff
303 );
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
304
          continue;
Open commit View diff
304 continue;
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
305
        }
Open commit View diff
305 }
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
306
        try {
Open commit View diff
306 try {
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
307
          $selector = $redis->hGet('DKIM_SELECTORS', $domain);
Open commit View diff
307 $selector = $redis->hGet('DKIM_SELECTORS', $domain);
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
308
          $redis->hDel('DKIM_PUB_KEYS', $domain);
Open commit View diff
308 $redis->hDel('DKIM_PUB_KEYS', $domain);
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
309
          $redis->hDel('DKIM_PRIV_KEYS', $selector . '.' . $domain);
Open commit View diff
309 $redis->hDel('DKIM_PRIV_KEYS', $selector . '.' . $domain);
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
310
          $redis->hDel('DKIM_SELECTORS', $domain);
Open commit View diff
310 $redis->hDel('DKIM_SELECTORS', $domain);
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
311
        }
Open commit View diff
311 }
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
312
        catch (RedisException $e) {
Open commit View diff
312 catch (RedisException $e) {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
313
          $_SESSION['return'][] = array(
Open commit View diff
313 $_SESSION['return'][] = array(
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
314
            'type' => 'danger',
Open commit View diff
314 'type' => 'danger',
andryyy over 5 years ago 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
315
            'log' => array(__FUNCTION__, $_action, $_data),
Open commit View diff
315 'log' => array(__FUNCTION__, $_action, $_data),
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
316
            'msg' => array('redis_error', $e)
Open commit View diff
316 'msg' => array('redis_error', $e)
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
317
          );
Open commit View diff
317 );
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
318
          continue;
Open commit View diff
318 continue;
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
319
        }
Open commit View diff
319 }
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
320
        $_SESSION['return'][] = array(
Open commit View diff
320 $_SESSION['return'][] = array(
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
321
          'type' => 'success',
Open commit View diff
321 'type' => 'success',
andryyy over 5 years ago 5ea649b

[Web] Feature: Add password policy

Full commit hash
5ea649b292a54fd6e0188a5e90abce7981f4bd88
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
322
          'log' => array(__FUNCTION__, $_action, $_data),
Open commit View diff
322 'log' => array(__FUNCTION__, $_action, $_data),
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
323
          'msg' => array('dkim_removed', htmlspecialchars($domain))
Open commit View diff
323 'msg' => array('dkim_removed', htmlspecialchars($domain))
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
324
        );
Open commit View diff
324 );
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
325
      }
Open commit View diff
325 }
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
326
    break;
Open commit View diff
326 break;
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
327
  }
Open commit View diff
327 }
Patrik Kernstock over 7 years ago 5dad2dd

[web] Duplicating DKIM key corrupts private key

Full commit hash
5dad2dded1a0e6bc14867451f2393b3338ee04fd
Author
Patrik Kernstock <[email protected]>
Date
over 7 years ago
Selected line
328
}
Open commit View diff
328 }