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/Dockerfiles/acme/acme.sh

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

acme.sh on main
Author Date Commit Line Code
andryyy about 9 years ago ef62f6b

Acme tool checks for valid autodiscover and autoconfig A records and skips non-existing names

Full commit hash
ef62f6b38315b8e8cea2741bd2642b6b17cd0375
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1
#!/bin/bash
Open commit View diff
1 #!/bin/bash
andryyy almost 9 years ago ab850dc

[ACME] Detect and fix invalid registration

Full commit hash
ab850dc901eddf26f9a6f2852efb037206c823d8
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
2
set -o pipefail
Open commit View diff
2 set -o pipefail
same change ab850dc

[ACME] Detect and fix invalid registration

Full commit hash
ab850dc901eddf26f9a6f2852efb037206c823d8
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
3
exec 5>&1
Open commit View diff
3 exec 5>&1
andryyy about 9 years ago ef62f6b

Acme tool checks for valid autodiscover and autoconfig A records and skips non-existing names

Full commit hash
ef62f6b38315b8e8cea2741bd2642b6b17cd0375
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
4
Open commit View diff
4
andryyy over 6 years ago 1fb81f0

[ACME] Use redis master for write operations

Full commit hash
1fb81f05116f580924aa799e5b42e74a4803e323
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
5
# Do not attempt to write to slave
Open commit View diff
5 # Do not attempt to write to slave
same change 1fb81f0

[ACME] Use redis master for write operations

Full commit hash
1fb81f05116f580924aa799e5b42e74a4803e323
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
6
if [[ ! -z ${REDIS_SLAVEOF_IP} ]]; then
Open commit View diff
6 if [[ ! -z ${REDIS_SLAVEOF_IP} ]]; then
FreddleSpl0it over 1 year ago 6831f94

[Redis] redis-cli suppress auth warning

Full commit hash
6831f94fdb209fb4a558f5f81fb7db340c856bd2
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
7
  export REDIS_CMDLINE="redis-cli -h ${REDIS_SLAVEOF_IP} -p ${REDIS_SLAVEOF_PORT} -a ${REDISPASS} --no-auth-warning"
Open commit View diff
7 export REDIS_CMDLINE="redis-cli -h ${REDIS_SLAVEOF_IP} -p ${REDIS_SLAVEOF_PORT} -a ${REDISPASS} --no-auth-warning"
andryyy over 6 years ago 1fb81f0

[ACME] Use redis master for write operations

Full commit hash
1fb81f05116f580924aa799e5b42e74a4803e323
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
8
else
Open commit View diff
8 else
FreddleSpl0it over 1 year ago 6831f94

[Redis] redis-cli suppress auth warning

Full commit hash
6831f94fdb209fb4a558f5f81fb7db340c856bd2
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
9
  export REDIS_CMDLINE="redis-cli -h redis -p 6379 -a ${REDISPASS} --no-auth-warning"
Open commit View diff
9 export REDIS_CMDLINE="redis-cli -h redis -p 6379 -a ${REDISPASS} --no-auth-warning"
andryyy over 6 years ago 1fb81f0

[ACME] Use redis master for write operations

Full commit hash
1fb81f05116f580924aa799e5b42e74a4803e323
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
10
fi
Open commit View diff
10 fi
same change 1fb81f0

[ACME] Use redis master for write operations

Full commit hash
1fb81f05116f580924aa799e5b42e74a4803e323
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
11
Open commit View diff
11
andryyy over 6 years ago e28a176

[ACME, Watchdog] Improve waiting for Redis

Full commit hash
e28a1766391183151464b2ba12482443dae2cf59
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
12
until [[ $(${REDIS_CMDLINE} PING) == "PONG" ]]; do
Open commit View diff
12 until [[ $(${REDIS_CMDLINE} PING) == "PONG" ]]; do
same change e28a176

[ACME, Watchdog] Improve waiting for Redis

Full commit hash
e28a1766391183151464b2ba12482443dae2cf59
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
13
  echo "Waiting for Redis..."
Open commit View diff
13 echo "Waiting for Redis..."
same change e28a176

[ACME, Watchdog] Improve waiting for Redis

Full commit hash
e28a1766391183151464b2ba12482443dae2cf59
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
14
  sleep 2
Open commit View diff
14 sleep 2
same change e28a176

[ACME, Watchdog] Improve waiting for Redis

Full commit hash
e28a1766391183151464b2ba12482443dae2cf59
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
15
done
Open commit View diff
15 done
same change e28a176

[ACME, Watchdog] Improve waiting for Redis

Full commit hash
e28a1766391183151464b2ba12482443dae2cf59
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
16
Open commit View diff
16
FreddleSpl0it 5 months ago dcbea71

[ACME] auto-create DNS-01 config template on startup

Full commit hash
dcbea71e67e3581529bed7159554c4fd1f4ee00f
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
17
# Create DNS-01 configuration template if it doesn't exist
Open commit View diff
17 # Create DNS-01 configuration template if it doesn't exist
same change dcbea71

[ACME] auto-create DNS-01 config template on startup

Full commit hash
dcbea71e67e3581529bed7159554c4fd1f4ee00f
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
18
if [[ ! -f /etc/acme/dns-01.conf ]]; then
Open commit View diff
18 if [[ ! -f /etc/acme/dns-01.conf ]]; then
same change dcbea71

[ACME] auto-create DNS-01 config template on startup

Full commit hash
dcbea71e67e3581529bed7159554c4fd1f4ee00f
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
19
  mkdir -p /etc/acme
Open commit View diff
19 mkdir -p /etc/acme
same change dcbea71

[ACME] auto-create DNS-01 config template on startup

Full commit hash
dcbea71e67e3581529bed7159554c4fd1f4ee00f
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
20
  cat > /etc/acme/dns-01.conf <<'EOF'
Open commit View diff
20 cat > /etc/acme/dns-01.conf <<'EOF'
same change dcbea71

[ACME] auto-create DNS-01 config template on startup

Full commit hash
dcbea71e67e3581529bed7159554c4fd1f4ee00f
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
21
# Add here your DNS-01 challenge configuration
Open commit View diff
21 # Add here your DNS-01 challenge configuration
same change dcbea71

[ACME] auto-create DNS-01 config template on startup

Full commit hash
dcbea71e67e3581529bed7159554c4fd1f4ee00f
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
22
# For more information, visit the acme.sh documentation:
Open commit View diff
22 # For more information, visit the acme.sh documentation:
same change dcbea71

[ACME] auto-create DNS-01 config template on startup

Full commit hash
dcbea71e67e3581529bed7159554c4fd1f4ee00f
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
23
# https://github.com/acmesh-official/acme.sh/wiki/dnsapi
Open commit View diff
23 # https://github.com/acmesh-official/acme.sh/wiki/dnsapi
same change dcbea71

[ACME] auto-create DNS-01 config template on startup

Full commit hash
dcbea71e67e3581529bed7159554c4fd1f4ee00f
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
24
EOF
Open commit View diff
24 EOF
same change dcbea71

[ACME] auto-create DNS-01 config template on startup

Full commit hash
dcbea71e67e3581529bed7159554c4fd1f4ee00f
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
25
  echo "Created DNS-01 configuration template at /etc/acme/dns-01.conf"
Open commit View diff
25 echo "Created DNS-01 configuration template at /etc/acme/dns-01.conf"
same change dcbea71

[ACME] auto-create DNS-01 config template on startup

Full commit hash
dcbea71e67e3581529bed7159554c4fd1f4ee00f
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
26
fi
Open commit View diff
26 fi
same change dcbea71

[ACME] auto-create DNS-01 config template on startup

Full commit hash
dcbea71e67e3581529bed7159554c4fd1f4ee00f
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
27
Open commit View diff
27
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
28
source /srv/functions.sh
Open commit View diff
28 source /srv/functions.sh
André about 8 years ago f88a72e

[ACME] Validate AAAA, if any, before A - fail on AAAA mismatch (LE prioritization)

Full commit hash
f88a72eedd2eb564270a59166eab53ea8dad3a09
Author
André <[email protected]>
Date
about 8 years ago
Selected line
29
# Thanks to https://github.com/cvmiller -> https://github.com/cvmiller/expand6
Open commit View diff
29 # Thanks to https://github.com/cvmiller -> https://github.com/cvmiller/expand6
same change f88a72e

[ACME] Validate AAAA, if any, before A - fail on AAAA mismatch (LE prioritization)

Full commit hash
f88a72eedd2eb564270a59166eab53ea8dad3a09
Author
André <[email protected]>
Date
about 8 years ago
Selected line
30
source /srv/expand6.sh
Open commit View diff
30 source /srv/expand6.sh
same change f88a72e

[ACME] Validate AAAA, if any, before A - fail on AAAA mismatch (LE prioritization)

Full commit hash
f88a72eedd2eb564270a59166eab53ea8dad3a09
Author
André <[email protected]>
Date
about 8 years ago
Selected line
31
Open commit View diff
31
andryyy over 7 years ago b42d0df

[ACME] Allow to skip http verification

Full commit hash
b42d0df8e247b7875e87e35dc8d2f03622fa7809
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
32
# Skipping IP check when we like to live dangerously
Open commit View diff
32 # Skipping IP check when we like to live dangerously
same change b42d0df

[ACME] Allow to skip http verification

Full commit hash
b42d0df8e247b7875e87e35dc8d2f03622fa7809
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
33
if [[ "${SKIP_IP_CHECK}" =~ ^([yY][eE][sS]|[yY])+$ ]]; then
Open commit View diff
33 if [[ "${SKIP_IP_CHECK}" =~ ^([yY][eE][sS]|[yY])+$ ]]; then
same change b42d0df

[ACME] Allow to skip http verification

Full commit hash
b42d0df8e247b7875e87e35dc8d2f03622fa7809
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
34
  SKIP_IP_CHECK=y
Open commit View diff
34 SKIP_IP_CHECK=y
same change b42d0df

[ACME] Allow to skip http verification

Full commit hash
b42d0df8e247b7875e87e35dc8d2f03622fa7809
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
35
fi
Open commit View diff
35 fi
same change b42d0df

[ACME] Allow to skip http verification

Full commit hash
b42d0df8e247b7875e87e35dc8d2f03622fa7809
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
36
Open commit View diff
36
same change b42d0df

[ACME] Allow to skip http verification

Full commit hash
b42d0df8e247b7875e87e35dc8d2f03622fa7809
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
37
# Skipping HTTP check when we like to live dangerously
Open commit View diff
37 # Skipping HTTP check when we like to live dangerously
same change b42d0df

[ACME] Allow to skip http verification

Full commit hash
b42d0df8e247b7875e87e35dc8d2f03622fa7809
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
38
if [[ "${SKIP_HTTP_VERIFICATION}" =~ ^([yY][eE][sS]|[yY])+$ ]]; then
Open commit View diff
38 if [[ "${SKIP_HTTP_VERIFICATION}" =~ ^([yY][eE][sS]|[yY])+$ ]]; then
same change b42d0df

[ACME] Allow to skip http verification

Full commit hash
b42d0df8e247b7875e87e35dc8d2f03622fa7809
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
39
  SKIP_HTTP_VERIFICATION=y
Open commit View diff
39 SKIP_HTTP_VERIFICATION=y
same change b42d0df

[ACME] Allow to skip http verification

Full commit hash
b42d0df8e247b7875e87e35dc8d2f03622fa7809
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
40
fi
Open commit View diff
40 fi
same change b42d0df

[ACME] Allow to skip http verification

Full commit hash
b42d0df8e247b7875e87e35dc8d2f03622fa7809
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
41
Open commit View diff
41
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
42
# Request certificate for MAILCOW_HOSTNAME only
Open commit View diff
42 # Request certificate for MAILCOW_HOSTNAME only
andryyy about 7 years ago 9bab650

[ACME] Allow to skip all names but MAILCOW_HOSTNAME

Full commit hash
9bab6507a73428de890967b1615ef71ce432b556
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
43
if [[ "${ONLY_MAILCOW_HOSTNAME}" =~ ^([yY][eE][sS]|[yY])+$ ]]; then
Open commit View diff
43 if [[ "${ONLY_MAILCOW_HOSTNAME}" =~ ^([yY][eE][sS]|[yY])+$ ]]; then
same change 9bab650

[ACME] Allow to skip all names but MAILCOW_HOSTNAME

Full commit hash
9bab6507a73428de890967b1615ef71ce432b556
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
44
  ONLY_MAILCOW_HOSTNAME=y
Open commit View diff
44 ONLY_MAILCOW_HOSTNAME=y
same change 9bab650

[ACME] Allow to skip all names but MAILCOW_HOSTNAME

Full commit hash
9bab6507a73428de890967b1615ef71ce432b556
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
45
fi
Open commit View diff
45 fi
same change 9bab650

[ACME] Allow to skip all names but MAILCOW_HOSTNAME

Full commit hash
9bab6507a73428de890967b1615ef71ce432b556
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
46
Open commit View diff
46
Lasagne about 2 years ago 4a052da

Add switch to skip fetching certificates auto{config,discover} subdomains (#5838)

Full commit hash
4a052da289c36547fd7863d18e3ba23f8ea5dc78
Author
Lasagne <[email protected]>
Date
about 2 years ago
Selected line
47
if [[ "${AUTODISCOVER_SAN}" =~ ^([yY][eE][sS]|[yY])+$ ]]; then
Open commit View diff
47 if [[ "${AUTODISCOVER_SAN}" =~ ^([yY][eE][sS]|[yY])+$ ]]; then
same change 4a052da

Add switch to skip fetching certificates auto{config,discover} subdomains (#5838)

Full commit hash
4a052da289c36547fd7863d18e3ba23f8ea5dc78
Author
Lasagne <[email protected]>
Date
about 2 years ago
Selected line
48
  AUTODISCOVER_SAN=y
Open commit View diff
48 AUTODISCOVER_SAN=y
same change 4a052da

Add switch to skip fetching certificates auto{config,discover} subdomains (#5838)

Full commit hash
4a052da289c36547fd7863d18e3ba23f8ea5dc78
Author
Lasagne <[email protected]>
Date
about 2 years ago
Selected line
49
fi
Open commit View diff
49 fi
same change 4a052da

Add switch to skip fetching certificates auto{config,discover} subdomains (#5838)

Full commit hash
4a052da289c36547fd7863d18e3ba23f8ea5dc78
Author
Lasagne <[email protected]>
Date
about 2 years ago
Selected line
50
Open commit View diff
50
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
51
# Request individual certificate for every domain
Open commit View diff
51 # Request individual certificate for every domain
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
52
if [[ "${ENABLE_SSL_SNI}" =~ ^([yY][eE][sS]|[yY])+$ ]]; then
Open commit View diff
52 if [[ "${ENABLE_SSL_SNI}" =~ ^([yY][eE][sS]|[yY])+$ ]]; then
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
53
  ENABLE_SSL_SNI=y
Open commit View diff
53 ENABLE_SSL_SNI=y
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
54
fi
Open commit View diff
54 fi
andre.peters over 8 years ago 2519738

Various changes...

Full commit hash
25197380946162b35b052c325af52bcc2708d69c
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
55
Open commit View diff
55
Carlos 8 months ago a52e977

Add DNS-01 challenge support for ACME certificates and related configurations

Full commit hash
a52e977b89d02044f901a32c1b30568d3e08bb2a
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
56
if [[ "${ACME_DNS_CHALLENGE}" =~ ^([yY][eE][sS]|[yY])+$ ]]; then
Open commit View diff
56 if [[ "${ACME_DNS_CHALLENGE}" =~ ^([yY][eE][sS]|[yY])+$ ]]; then
same change a52e977

Add DNS-01 challenge support for ACME certificates and related configurations

Full commit hash
a52e977b89d02044f901a32c1b30568d3e08bb2a
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
57
  ACME_DNS_CHALLENGE=y
Open commit View diff
57 ACME_DNS_CHALLENGE=y
same change a52e977

Add DNS-01 challenge support for ACME certificates and related configurations

Full commit hash
a52e977b89d02044f901a32c1b30568d3e08bb2a
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
58
fi
Open commit View diff
58 fi
same change a52e977

Add DNS-01 challenge support for ACME certificates and related configurations

Full commit hash
a52e977b89d02044f901a32c1b30568d3e08bb2a
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
59
Open commit View diff
59
André over 8 years ago 84a7a1a

[Compose] New images, Nginx checks for SOGo before bootstrapping

Full commit hash
84a7a1a2e7e0015018f23f2e10a7fc1c89711dca
Author
André <[email protected]>
Date
over 8 years ago
Selected line
60
if [[ "${SKIP_LETS_ENCRYPT}" =~ ^([yY][eE][sS]|[yY])+$ ]]; then
Open commit View diff
60 if [[ "${SKIP_LETS_ENCRYPT}" =~ ^([yY][eE][sS]|[yY])+$ ]]; then
same change 84a7a1a

[Compose] New images, Nginx checks for SOGo before bootstrapping

Full commit hash
84a7a1a2e7e0015018f23f2e10a7fc1c89711dca
Author
André <[email protected]>
Date
over 8 years ago
Selected line
61
  log_f "SKIP_LETS_ENCRYPT=y, skipping Let's Encrypt..."
Open commit View diff
61 log_f "SKIP_LETS_ENCRYPT=y, skipping Let's Encrypt..."
same change 84a7a1a

[Compose] New images, Nginx checks for SOGo before bootstrapping

Full commit hash
84a7a1a2e7e0015018f23f2e10a7fc1c89711dca
Author
André <[email protected]>
Date
over 8 years ago
Selected line
62
  sleep 365d
Open commit View diff
62 sleep 365d
same change 84a7a1a

[Compose] New images, Nginx checks for SOGo before bootstrapping

Full commit hash
84a7a1a2e7e0015018f23f2e10a7fc1c89711dca
Author
André <[email protected]>
Date
over 8 years ago
Selected line
63
  exec $(readlink -f "$0")
Open commit View diff
63 exec $(readlink -f "$0")
same change 84a7a1a

[Compose] New images, Nginx checks for SOGo before bootstrapping

Full commit hash
84a7a1a2e7e0015018f23f2e10a7fc1c89711dca
Author
André <[email protected]>
Date
over 8 years ago
Selected line
64
fi
Open commit View diff
64 fi
same change 84a7a1a

[Compose] New images, Nginx checks for SOGo before bootstrapping

Full commit hash
84a7a1a2e7e0015018f23f2e10a7fc1c89711dca
Author
André <[email protected]>
Date
over 8 years ago
Selected line
65
Open commit View diff
65
andryyy almost 6 years ago da200db

[ACME] Add more checks, avoid cert/key mismatch on some installations, fix some output

Full commit hash
da200db2d369ec667216312eab749f35494c7e6f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
66
log_f "Waiting for Docker API..."
Open commit View diff
66 log_f "Waiting for Docker API..."
André over 8 years ago 5211ab1

[ACME] Fix license issue

Full commit hash
5211ab10ed55c16e35f2b972701475c7897ce4a9
Author
André <[email protected]>
Date
over 8 years ago
Selected line
67
until ping dockerapi -c1 > /dev/null; do
Open commit View diff
67 until ping dockerapi -c1 > /dev/null; do
same change 5211ab1

[ACME] Fix license issue

Full commit hash
5211ab10ed55c16e35f2b972701475c7897ce4a9
Author
André <[email protected]>
Date
over 8 years ago
Selected line
68
  sleep 1
Open commit View diff
68 sleep 1
same change 5211ab1

[ACME] Fix license issue

Full commit hash
5211ab10ed55c16e35f2b972701475c7897ce4a9
Author
André <[email protected]>
Date
over 8 years ago
Selected line
69
done
Open commit View diff
69 done
andryyy almost 6 years ago da200db

[ACME] Add more checks, avoid cert/key mismatch on some installations, fix some output

Full commit hash
da200db2d369ec667216312eab749f35494c7e6f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
70
log_f "Docker API OK"
Open commit View diff
70 log_f "Docker API OK"
André over 8 years ago 5211ab1

[ACME] Fix license issue

Full commit hash
5211ab10ed55c16e35f2b972701475c7897ce4a9
Author
André <[email protected]>
Date
over 8 years ago
Selected line
71
Open commit View diff
71
andryyy almost 6 years ago da200db

[ACME] Add more checks, avoid cert/key mismatch on some installations, fix some output

Full commit hash
da200db2d369ec667216312eab749f35494c7e6f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
72
log_f "Waiting for Postfix..."
Open commit View diff
72 log_f "Waiting for Postfix..."
andryyy almost 6 years ago c8ce288

[ACME] Do check for restart of Postfix and Dovecot service more thoroughly

Full commit hash
c8ce28817805d95ded2905f17f44af495a51b440
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
73
until ping postfix -c1 > /dev/null; do
Open commit View diff
73 until ping postfix -c1 > /dev/null; do
same change c8ce288

[ACME] Do check for restart of Postfix and Dovecot service more thoroughly

Full commit hash
c8ce28817805d95ded2905f17f44af495a51b440
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
74
  sleep 1
Open commit View diff
74 sleep 1
same change c8ce288

[ACME] Do check for restart of Postfix and Dovecot service more thoroughly

Full commit hash
c8ce28817805d95ded2905f17f44af495a51b440
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
75
done
Open commit View diff
75 done
andryyy almost 6 years ago da200db

[ACME] Add more checks, avoid cert/key mismatch on some installations, fix some output

Full commit hash
da200db2d369ec667216312eab749f35494c7e6f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
76
log_f "Postfix OK"
Open commit View diff
76 log_f "Postfix OK"
andryyy almost 6 years ago c8ce288

[ACME] Do check for restart of Postfix and Dovecot service more thoroughly

Full commit hash
c8ce28817805d95ded2905f17f44af495a51b440
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
77
Open commit View diff
77
andryyy almost 6 years ago da200db

[ACME] Add more checks, avoid cert/key mismatch on some installations, fix some output

Full commit hash
da200db2d369ec667216312eab749f35494c7e6f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
78
log_f "Waiting for Dovecot..."
Open commit View diff
78 log_f "Waiting for Dovecot..."
andryyy almost 6 years ago c8ce288

[ACME] Do check for restart of Postfix and Dovecot service more thoroughly

Full commit hash
c8ce28817805d95ded2905f17f44af495a51b440
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
79
until ping dovecot -c1 > /dev/null; do
Open commit View diff
79 until ping dovecot -c1 > /dev/null; do
same change c8ce288

[ACME] Do check for restart of Postfix and Dovecot service more thoroughly

Full commit hash
c8ce28817805d95ded2905f17f44af495a51b440
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
80
  sleep 1
Open commit View diff
80 sleep 1
same change c8ce288

[ACME] Do check for restart of Postfix and Dovecot service more thoroughly

Full commit hash
c8ce28817805d95ded2905f17f44af495a51b440
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
81
done
Open commit View diff
81 done
andryyy almost 6 years ago da200db

[ACME] Add more checks, avoid cert/key mismatch on some installations, fix some output

Full commit hash
da200db2d369ec667216312eab749f35494c7e6f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
82
log_f "Dovecot OK"
Open commit View diff
82 log_f "Dovecot OK"
andryyy almost 6 years ago c8ce288

[ACME] Do check for restart of Postfix and Dovecot service more thoroughly

Full commit hash
c8ce28817805d95ded2905f17f44af495a51b440
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
83
Open commit View diff
83
andryyy about 9 years ago ef62f6b

Acme tool checks for valid autodiscover and autoconfig A records and skips non-existing names

Full commit hash
ef62f6b38315b8e8cea2741bd2642b6b17cd0375
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
84
ACME_BASE=/var/lib/acme
Open commit View diff
84 ACME_BASE=/var/lib/acme
andryyy about 9 years ago c82c952

Delete certificate if SANs were removed

Full commit hash
c82c9524b09afc53fe2012366176eadb7019f94a
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
85
SSL_EXAMPLE=/var/lib/ssl-example
Open commit View diff
85 SSL_EXAMPLE=/var/lib/ssl-example
andryyy about 9 years ago 9040d45

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
9040d456edf04c1e97cf4a89887416e1978ce478
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
86
Open commit View diff
86
andryyy over 7 years ago 9f2a6f1

Merge branch 'master' of https://github.com/mailcow/mailcow-dockerized

Full commit hash
9f2a6f13a5d3bc5cdcd1e61c458cd3989bc945b0
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
87
mkdir -p ${ACME_BASE}/acme
Open commit View diff
87 mkdir -p ${ACME_BASE}/acme
same change 9f2a6f1

Merge branch 'master' of https://github.com/mailcow/mailcow-dockerized

Full commit hash
9f2a6f13a5d3bc5cdcd1e61c458cd3989bc945b0
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
88
Open commit View diff
88
same change 9f2a6f1

Merge branch 'master' of https://github.com/mailcow/mailcow-dockerized

Full commit hash
9f2a6f13a5d3bc5cdcd1e61c458cd3989bc945b0
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
89
# Migrate
Open commit View diff
89 # Migrate
same change 9f2a6f1

Merge branch 'master' of https://github.com/mailcow/mailcow-dockerized

Full commit hash
9f2a6f13a5d3bc5cdcd1e61c458cd3989bc945b0
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
90
[[ -f ${ACME_BASE}/acme/private/privkey.pem ]] && mv ${ACME_BASE}/acme/private/privkey.pem ${ACME_BASE}/acme/key.pem
Open commit View diff
90 [[ -f ${ACME_BASE}/acme/private/privkey.pem ]] && mv ${ACME_BASE}/acme/private/privkey.pem ${ACME_BASE}/acme/key.pem
same change 9f2a6f1

Merge branch 'master' of https://github.com/mailcow/mailcow-dockerized

Full commit hash
9f2a6f13a5d3bc5cdcd1e61c458cd3989bc945b0
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
91
[[ -f ${ACME_BASE}/acme/private/account.key ]] && mv ${ACME_BASE}/acme/private/account.key ${ACME_BASE}/acme/account.pem
Open commit View diff
91 [[ -f ${ACME_BASE}/acme/private/account.key ]] && mv ${ACME_BASE}/acme/private/account.key ${ACME_BASE}/acme/account.pem
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
92
if [[ -f ${ACME_BASE}/acme/key.pem && -f ${ACME_BASE}/acme/cert.pem ]]; then
Open commit View diff
92 if [[ -f ${ACME_BASE}/acme/key.pem && -f ${ACME_BASE}/acme/cert.pem ]]; then
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
93
  if verify_hash_match ${ACME_BASE}/acme/cert.pem ${ACME_BASE}/acme/key.pem; then
Open commit View diff
93 if verify_hash_match ${ACME_BASE}/acme/cert.pem ${ACME_BASE}/acme/key.pem; then
andryyy almost 6 years ago da200db

[ACME] Add more checks, avoid cert/key mismatch on some installations, fix some output

Full commit hash
da200db2d369ec667216312eab749f35494c7e6f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
94
    log_f "Migrating to SNI folder structure..."
Open commit View diff
94 log_f "Migrating to SNI folder structure..."
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
95
    CERT_DOMAIN=($(openssl x509 -noout -text -in ${ACME_BASE}/acme/cert.pem | grep "Subject:" | sed -e 's/\(Subject:\)\|\(CN = \)\|\(CN=\)//g' | sed -e 's/^[[:space:]]*//'))
Open commit View diff
95 CERT_DOMAIN=($(openssl x509 -noout -text -in ${ACME_BASE}/acme/cert.pem | grep "Subject:" | sed -e 's/\(Subject:\)\|\(CN = \)\|\(CN=\)//g' | sed -e 's/^[[:space:]]*//'))
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
96
    CERT_DOMAINS=(${CERT_DOMAIN} $(openssl x509 -noout -text -in ${ACME_BASE}/acme/cert.pem | grep "DNS:" | sed -e 's/\(DNS:\)\|,//g' | sed "s/${CERT_DOMAIN}//" | sed -e 's/^[[:space:]]*//'))
Open commit View diff
96 CERT_DOMAINS=(${CERT_DOMAIN} $(openssl x509 -noout -text -in ${ACME_BASE}/acme/cert.pem | grep "DNS:" | sed -e 's/\(DNS:\)\|,//g' | sed "s/${CERT_DOMAIN}//" | sed -e 's/^[[:space:]]*//'))
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
97
    mkdir -p ${ACME_BASE}/${CERT_DOMAIN}
Open commit View diff
97 mkdir -p ${ACME_BASE}/${CERT_DOMAIN}
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
98
    mv ${ACME_BASE}/acme/cert.pem ${ACME_BASE}/${CERT_DOMAIN}/cert.pem
Open commit View diff
98 mv ${ACME_BASE}/acme/cert.pem ${ACME_BASE}/${CERT_DOMAIN}/cert.pem
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
99
    # key is only copied, not moved, because it is used by all other requests too
Open commit View diff
99 # key is only copied, not moved, because it is used by all other requests too
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
100
    cp ${ACME_BASE}/acme/key.pem ${ACME_BASE}/${CERT_DOMAIN}/key.pem
Open commit View diff
100 cp ${ACME_BASE}/acme/key.pem ${ACME_BASE}/${CERT_DOMAIN}/key.pem
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
101
    chmod 600 ${ACME_BASE}/${CERT_DOMAIN}/key.pem
Open commit View diff
101 chmod 600 ${ACME_BASE}/${CERT_DOMAIN}/key.pem
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
102
    echo -n ${CERT_DOMAINS[*]} > ${ACME_BASE}/${CERT_DOMAIN}/domains
Open commit View diff
102 echo -n ${CERT_DOMAINS[*]} > ${ACME_BASE}/${CERT_DOMAIN}/domains
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
103
    mv ${ACME_BASE}/acme/acme.csr ${ACME_BASE}/${CERT_DOMAIN}/acme.csr
Open commit View diff
103 mv ${ACME_BASE}/acme/acme.csr ${ACME_BASE}/${CERT_DOMAIN}/acme.csr
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
104
    log_f "OK" no_date
Open commit View diff
104 log_f "OK" no_date
André almost 9 years ago a110e2e

[ACME] Fix detection of orphaned SANs and add tini

Full commit hash
a110e2ea0f126ac5bed59dad6d30a76b12d29a0a
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
105
  fi
Open commit View diff
105 fi
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
106
fi
Open commit View diff
106 fi
andryyy over 7 years ago 9f2a6f1

Merge branch 'master' of https://github.com/mailcow/mailcow-dockerized

Full commit hash
9f2a6f13a5d3bc5cdcd1e61c458cd3989bc945b0
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
107
Open commit View diff
107
andryyy about 9 years ago 3d652dd

Added more checks for acme-mailcow

Full commit hash
3d652dd3d0b41892357848fe951da7c47e141ace
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
108
[[ ! -f ${ACME_BASE}/dhparams.pem ]] && cp ${SSL_EXAMPLE}/dhparams.pem ${ACME_BASE}/dhparams.pem
Open commit View diff
108 [[ ! -f ${ACME_BASE}/dhparams.pem ]] && cp ${SSL_EXAMPLE}/dhparams.pem ${ACME_BASE}/dhparams.pem
same change 3d652dd

Added more checks for acme-mailcow

Full commit hash
3d652dd3d0b41892357848fe951da7c47e141ace
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
109
Open commit View diff
109
andryyy about 7 years ago 60fd955

[ACME] Add 0 byte check for cert.pem

Full commit hash
60fd955defc1155c8d9a58c7926bebb03aa89a9c
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
110
if [[ -f ${ACME_BASE}/cert.pem ]] && [[ -f ${ACME_BASE}/key.pem ]] && [[ $(stat -c%s ${ACME_BASE}/cert.pem) != 0 ]]; then
Open commit View diff
110 if [[ -f ${ACME_BASE}/cert.pem ]] && [[ -f ${ACME_BASE}/key.pem ]] && [[ $(stat -c%s ${ACME_BASE}/cert.pem) != 0 ]]; then
André almost 9 years ago a110e2e

[ACME] Fix detection of orphaned SANs and add tini

Full commit hash
a110e2ea0f126ac5bed59dad6d30a76b12d29a0a
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
111
  ISSUER=$(openssl x509 -in ${ACME_BASE}/cert.pem -noout -issuer)
Open commit View diff
111 ISSUER=$(openssl x509 -in ${ACME_BASE}/cert.pem -noout -issuer)
andryyy over 7 years ago 37964d9

[ACME] Try to reload services after certificate changes instead of restarting

Full commit hash
37964d9dd1ffdef6ae572030e5467668f9d4bdb7
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
112
  if [[ ${ISSUER} != *"Let's Encrypt"* && ${ISSUER} != *"mailcow"* && ${ISSUER} != *"Fake LE Intermediate"* ]]; then
Open commit View diff
112 if [[ ${ISSUER} != *"Let's Encrypt"* && ${ISSUER} != *"mailcow"* && ${ISSUER} != *"Fake LE Intermediate"* ]]; then
André almost 9 years ago a110e2e

[ACME] Fix detection of orphaned SANs and add tini

Full commit hash
a110e2ea0f126ac5bed59dad6d30a76b12d29a0a
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
113
    log_f "Found certificate with issuer other than mailcow snake-oil CA and Let's Encrypt, skipping ACME client..."
Open commit View diff
113 log_f "Found certificate with issuer other than mailcow snake-oil CA and Let's Encrypt, skipping ACME client..."
same change a110e2e

[ACME] Fix detection of orphaned SANs and add tini

Full commit hash
a110e2ea0f126ac5bed59dad6d30a76b12d29a0a
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
114
    sleep 3650d
Open commit View diff
114 sleep 3650d
same change a110e2e

[ACME] Fix detection of orphaned SANs and add tini

Full commit hash
a110e2ea0f126ac5bed59dad6d30a76b12d29a0a
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
115
    exec $(readlink -f "$0")
Open commit View diff
115 exec $(readlink -f "$0")
same change a110e2e

[ACME] Fix detection of orphaned SANs and add tini

Full commit hash
a110e2ea0f126ac5bed59dad6d30a76b12d29a0a
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
116
  fi
Open commit View diff
116 fi
andryyy about 9 years ago c82c952

Delete certificate if SANs were removed

Full commit hash
c82c9524b09afc53fe2012366176eadb7019f94a
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
117
else
Open commit View diff
117 else
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
118
  if [[ -f ${ACME_BASE}/${MAILCOW_HOSTNAME}/cert.pem ]] && [[ -f ${ACME_BASE}/${MAILCOW_HOSTNAME}/key.pem ]] && verify_hash_match ${ACME_BASE}/${MAILCOW_HOSTNAME}/cert.pem ${ACME_BASE}/${MAILCOW_HOSTNAME}/key.pem; then
Open commit View diff
118 if [[ -f ${ACME_BASE}/${MAILCOW_HOSTNAME}/cert.pem ]] && [[ -f ${ACME_BASE}/${MAILCOW_HOSTNAME}/key.pem ]] && verify_hash_match ${ACME_BASE}/${MAILCOW_HOSTNAME}/cert.pem ${ACME_BASE}/${MAILCOW_HOSTNAME}/key.pem; then
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
119
    log_f "Restoring previous acme certificate and restarting script..."
Open commit View diff
119 log_f "Restoring previous acme certificate and restarting script..."
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
120
    cp ${ACME_BASE}/${MAILCOW_HOSTNAME}/cert.pem ${ACME_BASE}/cert.pem
Open commit View diff
120 cp ${ACME_BASE}/${MAILCOW_HOSTNAME}/cert.pem ${ACME_BASE}/cert.pem
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
121
    cp ${ACME_BASE}/${MAILCOW_HOSTNAME}/key.pem ${ACME_BASE}/key.pem
Open commit View diff
121 cp ${ACME_BASE}/${MAILCOW_HOSTNAME}/key.pem ${ACME_BASE}/key.pem
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
122
    # Restarting with env var set to trigger a restart,
Open commit View diff
122 # Restarting with env var set to trigger a restart,
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
123
    exec env TRIGGER_RESTART=1 $(readlink -f "$0")
Open commit View diff
123 exec env TRIGGER_RESTART=1 $(readlink -f "$0")
André almost 9 years ago a110e2e

[ACME] Fix detection of orphaned SANs and add tini

Full commit hash
a110e2ea0f126ac5bed59dad6d30a76b12d29a0a
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
124
  else
Open commit View diff
124 else
same change a110e2e

[ACME] Fix detection of orphaned SANs and add tini

Full commit hash
a110e2ea0f126ac5bed59dad6d30a76b12d29a0a
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
125
    log_f "Restoring mailcow snake-oil certificates and restarting script..."
Open commit View diff
125 log_f "Restoring mailcow snake-oil certificates and restarting script..."
same change a110e2e

[ACME] Fix detection of orphaned SANs and add tini

Full commit hash
a110e2ea0f126ac5bed59dad6d30a76b12d29a0a
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
126
    cp ${SSL_EXAMPLE}/cert.pem ${ACME_BASE}/cert.pem
Open commit View diff
126 cp ${SSL_EXAMPLE}/cert.pem ${ACME_BASE}/cert.pem
same change a110e2e

[ACME] Fix detection of orphaned SANs and add tini

Full commit hash
a110e2ea0f126ac5bed59dad6d30a76b12d29a0a
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
127
    cp ${SSL_EXAMPLE}/key.pem ${ACME_BASE}/key.pem
Open commit View diff
127 cp ${SSL_EXAMPLE}/key.pem ${ACME_BASE}/key.pem
same change a110e2e

[ACME] Fix detection of orphaned SANs and add tini

Full commit hash
a110e2ea0f126ac5bed59dad6d30a76b12d29a0a
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
128
    exec env TRIGGER_RESTART=1 $(readlink -f "$0")
Open commit View diff
128 exec env TRIGGER_RESTART=1 $(readlink -f "$0")
same change a110e2e

[ACME] Fix detection of orphaned SANs and add tini

Full commit hash
a110e2ea0f126ac5bed59dad6d30a76b12d29a0a
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
129
  fi
Open commit View diff
129 fi
andryyy about 9 years ago 5aba885

Skip ACME client for other certificates than LE

Full commit hash
5aba885b589e31d9d5d9affd2423c6b3ce334862
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
130
fi
Open commit View diff
130 fi
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
131
Open commit View diff
131
andryyy over 7 years ago c77368e

[ACME] Set mode 600 for key files

Full commit hash
c77368ee705db354bfd1b291c3b0f12e88d8033f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
132
chmod 600 ${ACME_BASE}/key.pem
Open commit View diff
132 chmod 600 ${ACME_BASE}/key.pem
andryyy about 9 years ago 5aba885

Skip ACME client for other certificates than LE

Full commit hash
5aba885b589e31d9d5d9affd2423c6b3ce334862
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
133
Open commit View diff
133
andryyy almost 6 years ago da200db

[ACME] Add more checks, avoid cert/key mismatch on some installations, fix some output

Full commit hash
da200db2d369ec667216312eab749f35494c7e6f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
134
log_f "Waiting for database..."
Open commit View diff
134 log_f "Waiting for database..."
Niklas Meyer almost 2 years ago b70bcd3

containers: use mariadb-admin instead of deprecated mysqladmin (#6026)

Full commit hash
b70bcd36fbe84136285ccbce92fa7839f830e350
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
135
while ! /usr/bin/mariadb-admin status --ssl=false --socket=/var/run/mysqld/mysqld.sock -u${DBUSER} -p${DBPASS} --silent > /dev/null; do
Open commit View diff
135 while ! /usr/bin/mariadb-admin status --ssl=false --socket=/var/run/mysqld/mysqld.sock -u${DBUSER} -p${DBPASS} --silent > /dev/null; do
André almost 9 years ago a110e2e

[ACME] Fix detection of orphaned SANs and add tini

Full commit hash
a110e2ea0f126ac5bed59dad6d30a76b12d29a0a
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
136
  sleep 2
Open commit View diff
136 sleep 2
Michael Kuron almost 9 years ago ae79445

ACME needs to wait for MySQL to be ready

Full commit hash
ae79445ec05a243666ec42232db775560ba665a5
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
137
done
Open commit View diff
137 done
andryyy almost 6 years ago da200db

[ACME] Add more checks, avoid cert/key mismatch on some installations, fix some output

Full commit hash
da200db2d369ec667216312eab749f35494c7e6f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
138
log_f "Database OK"
Open commit View diff
138 log_f "Database OK"
andryyy over 7 years ago 99a8164

[ACME] Wait for Nginx

Full commit hash
99a816430bfb3f3f10c0dba49ef1d9067c572a8b
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
139
Open commit View diff
139
andryyy almost 6 years ago da200db

[ACME] Add more checks, avoid cert/key mismatch on some installations, fix some output

Full commit hash
da200db2d369ec667216312eab749f35494c7e6f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
140
log_f "Waiting for Nginx..."
Open commit View diff
140 log_f "Waiting for Nginx..."
Kasim almost 2 years ago 0cdf764

Include COMPOSE_PROJECT_NAME in Nginx url

Full commit hash
0cdf7647c4669eb84942e9a978f13817a5c80ac1
Author
Kasim <[email protected]>
Date
almost 2 years ago
Selected line
141
until $(curl --output /dev/null --silent --head --fail http://nginx.${COMPOSE_PROJECT_NAME}_mailcow-network:8081); do
Open commit View diff
141 until $(curl --output /dev/null --silent --head --fail http://nginx.${COMPOSE_PROJECT_NAME}_mailcow-network:8081); do
andryyy over 7 years ago 99a8164

[ACME] Wait for Nginx

Full commit hash
99a816430bfb3f3f10c0dba49ef1d9067c572a8b
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
142
  sleep 2
Open commit View diff
142 sleep 2
same change 99a8164

[ACME] Wait for Nginx

Full commit hash
99a816430bfb3f3f10c0dba49ef1d9067c572a8b
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
143
done
Open commit View diff
143 done
andryyy almost 6 years ago da200db

[ACME] Add more checks, avoid cert/key mismatch on some installations, fix some output

Full commit hash
da200db2d369ec667216312eab749f35494c7e6f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
144
log_f "Nginx OK"
Open commit View diff
144 log_f "Nginx OK"
same change da200db

[ACME] Add more checks, avoid cert/key mismatch on some installations, fix some output

Full commit hash
da200db2d369ec667216312eab749f35494c7e6f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
145
Open commit View diff
145
same change da200db

[ACME] Add more checks, avoid cert/key mismatch on some installations, fix some output

Full commit hash
da200db2d369ec667216312eab749f35494c7e6f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
146
log_f "Waiting for resolver..."
Open commit View diff
146 log_f "Waiting for resolver..."
same change da200db

[ACME] Add more checks, avoid cert/key mismatch on some installations, fix some output

Full commit hash
da200db2d369ec667216312eab749f35494c7e6f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
147
until dig letsencrypt.org +time=3 +tries=1 @unbound > /dev/null; do
Open commit View diff
147 until dig letsencrypt.org +time=3 +tries=1 @unbound > /dev/null; do
same change da200db

[ACME] Add more checks, avoid cert/key mismatch on some installations, fix some output

Full commit hash
da200db2d369ec667216312eab749f35494c7e6f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
148
  sleep 2
Open commit View diff
148 sleep 2
same change da200db

[ACME] Add more checks, avoid cert/key mismatch on some installations, fix some output

Full commit hash
da200db2d369ec667216312eab749f35494c7e6f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
149
done
Open commit View diff
149 done
same change da200db

[ACME] Add more checks, avoid cert/key mismatch on some installations, fix some output

Full commit hash
da200db2d369ec667216312eab749f35494c7e6f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
150
log_f "Resolver OK"
Open commit View diff
150 log_f "Resolver OK"
André about 8 years ago 8adf3d2

[ACME, Compose] Add new image; fix AAAA check for MAILCOW_HOSTNAME

Full commit hash
8adf3d27db128bdeb45290ca9114aff9797f2a91
Author
André <[email protected]>
Date
about 8 years ago
Selected line
151
Open commit View diff
151
andryyy over 7 years ago 9f2a6f1

Merge branch 'master' of https://github.com/mailcow/mailcow-dockerized

Full commit hash
9f2a6f13a5d3bc5cdcd1e61c458cd3989bc945b0
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
152
# Waiting for domain table
Open commit View diff
152 # Waiting for domain table
andryyy almost 6 years ago da200db

[ACME] Add more checks, avoid cert/key mismatch on some installations, fix some output

Full commit hash
da200db2d369ec667216312eab749f35494c7e6f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
153
log_f "Waiting for domain table..."
Open commit View diff
153 log_f "Waiting for domain table..."
andryyy over 7 years ago 9f2a6f1

Merge branch 'master' of https://github.com/mailcow/mailcow-dockerized

Full commit hash
9f2a6f13a5d3bc5cdcd1e61c458cd3989bc945b0
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
154
while [[ -z ${DOMAIN_TABLE} ]]; do
Open commit View diff
154 while [[ -z ${DOMAIN_TABLE} ]]; do
Kasim almost 2 years ago 0cdf764

Include COMPOSE_PROJECT_NAME in Nginx url

Full commit hash
0cdf7647c4669eb84942e9a978f13817a5c80ac1
Author
Kasim <[email protected]>
Date
almost 2 years ago
Selected line
155
  curl --silent http://nginx.${COMPOSE_PROJECT_NAME}_mailcow-network/ >/dev/null 2>&1
Open commit View diff
155 curl --silent http://nginx.${COMPOSE_PROJECT_NAME}_mailcow-network/ >/dev/null 2>&1
DerLinkman over 1 year ago 2f93f1d

os: fixes for newer mariadb-client versions (especially on alpine 3.21)

Full commit hash
2f93f1d0c5b9642190c1358a03038be4c3f4bb43
Author
DerLinkman <[email protected]>
Date
over 1 year ago
Selected line
156
  DOMAIN_TABLE=$(mariadb --skip-ssl --socket=/var/run/mysqld/mysqld.sock -u ${DBUSER} -p${DBPASS} ${DBNAME} -e "SHOW TABLES LIKE 'domain'" -Bs)
Open commit View diff
156 DOMAIN_TABLE=$(mariadb --skip-ssl --socket=/var/run/mysqld/mysqld.sock -u ${DBUSER} -p${DBPASS} ${DBNAME} -e "SHOW TABLES LIKE 'domain'" -Bs)
andryyy over 7 years ago 9f2a6f1

Merge branch 'master' of https://github.com/mailcow/mailcow-dockerized

Full commit hash
9f2a6f13a5d3bc5cdcd1e61c458cd3989bc945b0
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
157
  [[ -z ${DOMAIN_TABLE} ]] && sleep 10
Open commit View diff
157 [[ -z ${DOMAIN_TABLE} ]] && sleep 10
same change 9f2a6f1

Merge branch 'master' of https://github.com/mailcow/mailcow-dockerized

Full commit hash
9f2a6f13a5d3bc5cdcd1e61c458cd3989bc945b0
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
158
done
Open commit View diff
158 done
same change 9f2a6f1

Merge branch 'master' of https://github.com/mailcow/mailcow-dockerized

Full commit hash
9f2a6f13a5d3bc5cdcd1e61c458cd3989bc945b0
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
159
log_f "OK" no_date
Open commit View diff
159 log_f "OK" no_date
same change 9f2a6f1

Merge branch 'master' of https://github.com/mailcow/mailcow-dockerized

Full commit hash
9f2a6f13a5d3bc5cdcd1e61c458cd3989bc945b0
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
160
Open commit View diff
160
andryyy almost 6 years ago da200db

[ACME] Add more checks, avoid cert/key mismatch on some installations, fix some output

Full commit hash
da200db2d369ec667216312eab749f35494c7e6f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
161
log_f "Initializing, please wait..."
Open commit View diff
161 log_f "Initializing, please wait..."
Michael Kuron almost 9 years ago ae79445

ACME needs to wait for MySQL to be ready

Full commit hash
ae79445ec05a243666ec42232db775560ba665a5
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
162
Open commit View diff
162
andryyy about 9 years ago ef62f6b

Acme tool checks for valid autodiscover and autoconfig A records and skips non-existing names

Full commit hash
ef62f6b38315b8e8cea2741bd2642b6b17cd0375
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
163
while true; do
Open commit View diff
163 while true; do
andryyy almost 6 years ago c8ce288

[ACME] Do check for restart of Postfix and Dovecot service more thoroughly

Full commit hash
c8ce28817805d95ded2905f17f44af495a51b440
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
164
  POSTFIX_CERT_SERIAL="$(echo | openssl s_client -connect postfix:25 -starttls smtp 2>/dev/null | openssl x509 -inform pem -noout -serial | cut -d "=" -f 2)"
Open commit View diff
164 POSTFIX_CERT_SERIAL="$(echo | openssl s_client -connect postfix:25 -starttls smtp 2>/dev/null | openssl x509 -inform pem -noout -serial | cut -d "=" -f 2)"
same change c8ce288

[ACME] Do check for restart of Postfix and Dovecot service more thoroughly

Full commit hash
c8ce28817805d95ded2905f17f44af495a51b440
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
165
  DOVECOT_CERT_SERIAL="$(echo | openssl s_client -connect dovecot:143 -starttls imap 2>/dev/null | openssl x509 -inform pem -noout -serial | cut -d "=" -f 2)"
Open commit View diff
165 DOVECOT_CERT_SERIAL="$(echo | openssl s_client -connect dovecot:143 -starttls imap 2>/dev/null | openssl x509 -inform pem -noout -serial | cut -d "=" -f 2)"
same change c8ce288

[ACME] Do check for restart of Postfix and Dovecot service more thoroughly

Full commit hash
c8ce28817805d95ded2905f17f44af495a51b440
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
166
  POSTFIX_CERT_SERIAL_NEW="$(echo | openssl s_client -connect postfix:25 -starttls smtp 2>/dev/null | openssl x509 -inform pem -noout -serial | cut -d "=" -f 2)"
Open commit View diff
166 POSTFIX_CERT_SERIAL_NEW="$(echo | openssl s_client -connect postfix:25 -starttls smtp 2>/dev/null | openssl x509 -inform pem -noout -serial | cut -d "=" -f 2)"
same change c8ce288

[ACME] Do check for restart of Postfix and Dovecot service more thoroughly

Full commit hash
c8ce28817805d95ded2905f17f44af495a51b440
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
167
  DOVECOT_CERT_SERIAL_NEW="$(echo | openssl s_client -connect dovecot:143 -starttls imap 2>/dev/null | openssl x509 -inform pem -noout -serial | cut -d "=" -f 2)"
Open commit View diff
167 DOVECOT_CERT_SERIAL_NEW="$(echo | openssl s_client -connect dovecot:143 -starttls imap 2>/dev/null | openssl x509 -inform pem -noout -serial | cut -d "=" -f 2)"
andryyy over 7 years ago 9f2a6f1

Merge branch 'master' of https://github.com/mailcow/mailcow-dockerized

Full commit hash
9f2a6f13a5d3bc5cdcd1e61c458cd3989bc945b0
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
168
  # Re-using previous acme-mailcow account and domain keys
Open commit View diff
168 # Re-using previous acme-mailcow account and domain keys
same change 9f2a6f1

Merge branch 'master' of https://github.com/mailcow/mailcow-dockerized

Full commit hash
9f2a6f13a5d3bc5cdcd1e61c458cd3989bc945b0
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
169
  if [[ ! -f ${ACME_BASE}/acme/key.pem ]]; then
Open commit View diff
169 if [[ ! -f ${ACME_BASE}/acme/key.pem ]]; then
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
170
    log_f "Generating missing domain private rsa key..."
Open commit View diff
170 log_f "Generating missing domain private rsa key..."
andryyy over 7 years ago 9f2a6f1

Merge branch 'master' of https://github.com/mailcow/mailcow-dockerized

Full commit hash
9f2a6f13a5d3bc5cdcd1e61c458cd3989bc945b0
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
171
    openssl genrsa 4096 > ${ACME_BASE}/acme/key.pem
Open commit View diff
171 openssl genrsa 4096 > ${ACME_BASE}/acme/key.pem
same change 9f2a6f1

Merge branch 'master' of https://github.com/mailcow/mailcow-dockerized

Full commit hash
9f2a6f13a5d3bc5cdcd1e61c458cd3989bc945b0
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
172
  else
Open commit View diff
172 else
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
173
    log_f "Using existing domain rsa key ${ACME_BASE}/acme/key.pem"
Open commit View diff
173 log_f "Using existing domain rsa key ${ACME_BASE}/acme/key.pem"
andryyy over 7 years ago 9f2a6f1

Merge branch 'master' of https://github.com/mailcow/mailcow-dockerized

Full commit hash
9f2a6f13a5d3bc5cdcd1e61c458cd3989bc945b0
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
174
  fi
Open commit View diff
174 fi
same change 9f2a6f1

Merge branch 'master' of https://github.com/mailcow/mailcow-dockerized

Full commit hash
9f2a6f13a5d3bc5cdcd1e61c458cd3989bc945b0
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
175
  if [[ ! -f ${ACME_BASE}/acme/account.pem ]]; then
Open commit View diff
175 if [[ ! -f ${ACME_BASE}/acme/account.pem ]]; then
same change 9f2a6f1

Merge branch 'master' of https://github.com/mailcow/mailcow-dockerized

Full commit hash
9f2a6f13a5d3bc5cdcd1e61c458cd3989bc945b0
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
176
    log_f "Generating missing Lets Encrypt account key..."
Open commit View diff
176 log_f "Generating missing Lets Encrypt account key..."
same change 9f2a6f1

Merge branch 'master' of https://github.com/mailcow/mailcow-dockerized

Full commit hash
9f2a6f13a5d3bc5cdcd1e61c458cd3989bc945b0
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
177
    openssl genrsa 4096 > ${ACME_BASE}/acme/account.pem
Open commit View diff
177 openssl genrsa 4096 > ${ACME_BASE}/acme/account.pem
same change 9f2a6f1

Merge branch 'master' of https://github.com/mailcow/mailcow-dockerized

Full commit hash
9f2a6f13a5d3bc5cdcd1e61c458cd3989bc945b0
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
178
  else
Open commit View diff
178 else
same change 9f2a6f1

Merge branch 'master' of https://github.com/mailcow/mailcow-dockerized

Full commit hash
9f2a6f13a5d3bc5cdcd1e61c458cd3989bc945b0
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
179
    log_f "Using existing Lets Encrypt account key ${ACME_BASE}/acme/account.pem"
Open commit View diff
179 log_f "Using existing Lets Encrypt account key ${ACME_BASE}/acme/account.pem"
same change 9f2a6f1

Merge branch 'master' of https://github.com/mailcow/mailcow-dockerized

Full commit hash
9f2a6f13a5d3bc5cdcd1e61c458cd3989bc945b0
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
180
  fi
Open commit View diff
180 fi
same change 9f2a6f1

Merge branch 'master' of https://github.com/mailcow/mailcow-dockerized

Full commit hash
9f2a6f13a5d3bc5cdcd1e61c458cd3989bc945b0
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
181
Open commit View diff
181
andryyy over 7 years ago c77368e

[ACME] Set mode 600 for key files

Full commit hash
c77368ee705db354bfd1b291c3b0f12e88d8033f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
182
  chmod 600 ${ACME_BASE}/acme/key.pem
Open commit View diff
182 chmod 600 ${ACME_BASE}/acme/key.pem
same change c77368e

[ACME] Set mode 600 for key files

Full commit hash
c77368ee705db354bfd1b291c3b0f12e88d8033f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
183
  chmod 600 ${ACME_BASE}/acme/account.pem
Open commit View diff
183 chmod 600 ${ACME_BASE}/acme/account.pem
same change c77368e

[ACME] Set mode 600 for key files

Full commit hash
c77368ee705db354bfd1b291c3b0f12e88d8033f
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
184
Open commit View diff
184
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
185
  unset EXISTING_CERTS
Open commit View diff
185 unset EXISTING_CERTS
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
186
  declare -a EXISTING_CERTS
Open commit View diff
186 declare -a EXISTING_CERTS
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
187
  for cert_dir in ${ACME_BASE}/*/ ; do
Open commit View diff
187 for cert_dir in ${ACME_BASE}/*/ ; do
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
188
    if [[ ! -f ${cert_dir}domains ]] || [[ ! -f ${cert_dir}cert.pem ]] || [[ ! -f ${cert_dir}key.pem ]]; then
Open commit View diff
188 if [[ ! -f ${cert_dir}domains ]] || [[ ! -f ${cert_dir}cert.pem ]] || [[ ! -f ${cert_dir}key.pem ]]; then
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
189
      continue
Open commit View diff
189 continue
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
190
    fi
Open commit View diff
190 fi
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
191
    EXISTING_CERTS+=("$(basename ${cert_dir})")
Open commit View diff
191 EXISTING_CERTS+=("$(basename ${cert_dir})")
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
192
  done
Open commit View diff
192 done
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
193
Open commit View diff
193
andryyy over 7 years ago 9f2a6f1

Merge branch 'master' of https://github.com/mailcow/mailcow-dockerized

Full commit hash
9f2a6f13a5d3bc5cdcd1e61c458cd3989bc945b0
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
194
  # Cleaning up and init validation arrays
Open commit View diff
194 # Cleaning up and init validation arrays
André almost 9 years ago a110e2e

[ACME] Fix detection of orphaned SANs and add tini

Full commit hash
a110e2ea0f126ac5bed59dad6d30a76b12d29a0a
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
195
  unset SQL_DOMAIN_ARR
Open commit View diff
195 unset SQL_DOMAIN_ARR
same change a110e2e

[ACME] Fix detection of orphaned SANs and add tini

Full commit hash
a110e2ea0f126ac5bed59dad6d30a76b12d29a0a
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
196
  unset VALIDATED_CONFIG_DOMAINS
Open commit View diff
196 unset VALIDATED_CONFIG_DOMAINS
same change a110e2e

[ACME] Fix detection of orphaned SANs and add tini

Full commit hash
a110e2ea0f126ac5bed59dad6d30a76b12d29a0a
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
197
  unset ADDITIONAL_VALIDATED_SAN
Open commit View diff
197 unset ADDITIONAL_VALIDATED_SAN
andryyy over 7 years ago 9f2a6f1

Merge branch 'master' of https://github.com/mailcow/mailcow-dockerized

Full commit hash
9f2a6f13a5d3bc5cdcd1e61c458cd3989bc945b0
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
198
  unset ADDITIONAL_WC_ARR
Open commit View diff
198 unset ADDITIONAL_WC_ARR
same change 9f2a6f1

Merge branch 'master' of https://github.com/mailcow/mailcow-dockerized

Full commit hash
9f2a6f13a5d3bc5cdcd1e61c458cd3989bc945b0
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
199
  unset ADDITIONAL_SAN_ARR
Open commit View diff
199 unset ADDITIONAL_SAN_ARR
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
200
  unset CERT_ERRORS
Open commit View diff
200 unset CERT_ERRORS
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
201
  unset CERT_CHANGED
Open commit View diff
201 unset CERT_CHANGED
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
202
  unset CERT_AMOUNT_CHANGED
Open commit View diff
202 unset CERT_AMOUNT_CHANGED
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
203
  unset VALIDATED_CERTIFICATES
Open commit View diff
203 unset VALIDATED_CERTIFICATES
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
204
  CERT_ERRORS=0
Open commit View diff
204 CERT_ERRORS=0
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
205
  CERT_CHANGED=0
Open commit View diff
205 CERT_CHANGED=0
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
206
  CERT_AMOUNT_CHANGED=0
Open commit View diff
206 CERT_AMOUNT_CHANGED=0
André almost 9 years ago a110e2e

[ACME] Fix detection of orphaned SANs and add tini

Full commit hash
a110e2ea0f126ac5bed59dad6d30a76b12d29a0a
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
207
  declare -a SQL_DOMAIN_ARR
Open commit View diff
207 declare -a SQL_DOMAIN_ARR
same change a110e2e

[ACME] Fix detection of orphaned SANs and add tini

Full commit hash
a110e2ea0f126ac5bed59dad6d30a76b12d29a0a
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
208
  declare -a VALIDATED_CONFIG_DOMAINS
Open commit View diff
208 declare -a VALIDATED_CONFIG_DOMAINS
same change a110e2e

[ACME] Fix detection of orphaned SANs and add tini

Full commit hash
a110e2ea0f126ac5bed59dad6d30a76b12d29a0a
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
209
  declare -a ADDITIONAL_VALIDATED_SAN
Open commit View diff
209 declare -a ADDITIONAL_VALIDATED_SAN
andryyy over 7 years ago 9f2a6f1

Merge branch 'master' of https://github.com/mailcow/mailcow-dockerized

Full commit hash
9f2a6f13a5d3bc5cdcd1e61c458cd3989bc945b0
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
210
  declare -a ADDITIONAL_WC_ARR
Open commit View diff
210 declare -a ADDITIONAL_WC_ARR
same change 9f2a6f1

Merge branch 'master' of https://github.com/mailcow/mailcow-dockerized

Full commit hash
9f2a6f13a5d3bc5cdcd1e61c458cd3989bc945b0
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
211
  declare -a ADDITIONAL_SAN_ARR
Open commit View diff
211 declare -a ADDITIONAL_SAN_ARR
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
212
  declare -a VALIDATED_CERTIFICATES
Open commit View diff
212 declare -a VALIDATED_CERTIFICATES
Markus Gnadl over 8 years ago 0e33fd4

wildcards (subdomain.*) in ADDITIONAL_SAN are expanded to all mailcow domains

Full commit hash
0e33fd49bb14329c49e9fbec6ecac5fd382e65a3
Author
Markus Gnadl <[email protected]>
Date
over 8 years ago
Selected line
213
  IFS=',' read -r -a TMP_ARR <<< "${ADDITIONAL_SAN}"
Open commit View diff
213 IFS=',' read -r -a TMP_ARR <<< "${ADDITIONAL_SAN}"
same change 0e33fd4

wildcards (subdomain.*) in ADDITIONAL_SAN are expanded to all mailcow domains

Full commit hash
0e33fd49bb14329c49e9fbec6ecac5fd382e65a3
Author
Markus Gnadl <[email protected]>
Date
over 8 years ago
Selected line
214
  for i in "${TMP_ARR[@]}" ; do
Open commit View diff
214 for i in "${TMP_ARR[@]}" ; do
same change 0e33fd4

wildcards (subdomain.*) in ADDITIONAL_SAN are expanded to all mailcow domains

Full commit hash
0e33fd49bb14329c49e9fbec6ecac5fd382e65a3
Author
Markus Gnadl <[email protected]>
Date
over 8 years ago
Selected line
215
    if [[ "$i" =~ \.\*$ ]]; then
Open commit View diff
215 if [[ "$i" =~ \.\*$ ]]; then
same change 0e33fd4

wildcards (subdomain.*) in ADDITIONAL_SAN are expanded to all mailcow domains

Full commit hash
0e33fd49bb14329c49e9fbec6ecac5fd382e65a3
Author
Markus Gnadl <[email protected]>
Date
over 8 years ago
Selected line
216
      ADDITIONAL_WC_ARR+=(${i::-2})
Open commit View diff
216 ADDITIONAL_WC_ARR+=(${i::-2})
same change 0e33fd4

wildcards (subdomain.*) in ADDITIONAL_SAN are expanded to all mailcow domains

Full commit hash
0e33fd49bb14329c49e9fbec6ecac5fd382e65a3
Author
Markus Gnadl <[email protected]>
Date
over 8 years ago
Selected line
217
    else
Open commit View diff
217 else
same change 0e33fd4

wildcards (subdomain.*) in ADDITIONAL_SAN are expanded to all mailcow domains

Full commit hash
0e33fd49bb14329c49e9fbec6ecac5fd382e65a3
Author
Markus Gnadl <[email protected]>
Date
over 8 years ago
Selected line
218
      ADDITIONAL_SAN_ARR+=($i)
Open commit View diff
218 ADDITIONAL_SAN_ARR+=($i)
same change 0e33fd4

wildcards (subdomain.*) in ADDITIONAL_SAN are expanded to all mailcow domains

Full commit hash
0e33fd49bb14329c49e9fbec6ecac5fd382e65a3
Author
Markus Gnadl <[email protected]>
Date
over 8 years ago
Selected line
219
    fi
Open commit View diff
219 fi
same change 0e33fd4

wildcards (subdomain.*) in ADDITIONAL_SAN are expanded to all mailcow domains

Full commit hash
0e33fd49bb14329c49e9fbec6ecac5fd382e65a3
Author
Markus Gnadl <[email protected]>
Date
over 8 years ago
Selected line
220
  done
Open commit View diff
220 done
Lasagne about 2 years ago 4a052da

Add switch to skip fetching certificates auto{config,discover} subdomains (#5838)

Full commit hash
4a052da289c36547fd7863d18e3ba23f8ea5dc78
Author
Lasagne <[email protected]>
Date
about 2 years ago
Selected line
221
Open commit View diff
221
same change 4a052da

Add switch to skip fetching certificates auto{config,discover} subdomains (#5838)

Full commit hash
4a052da289c36547fd7863d18e3ba23f8ea5dc78
Author
Lasagne <[email protected]>
Date
about 2 years ago
Selected line
222
  if [[ ${AUTODISCOVER_SAN} == "y" ]]; then
Open commit View diff
222 if [[ ${AUTODISCOVER_SAN} == "y" ]]; then
same change 4a052da

Add switch to skip fetching certificates auto{config,discover} subdomains (#5838)

Full commit hash
4a052da289c36547fd7863d18e3ba23f8ea5dc78
Author
Lasagne <[email protected]>
Date
about 2 years ago
Selected line
223
  # Fetch certs for autoconfig and autodiscover subdomains
Open commit View diff
223 # Fetch certs for autoconfig and autodiscover subdomains
DerLinkman 11 months ago c39712a

pf/php: add mta-sts support (outbound) (#6686)

Full commit hash
c39712af671cc150595e6aadc7c31868eef14408
Author
DerLinkman <[email protected]>
Date
11 months ago
Selected line
224
  ADDITIONAL_WC_ARR+=('autodiscover' 'autoconfig' 'mta-sts')
Open commit View diff
224 ADDITIONAL_WC_ARR+=('autodiscover' 'autoconfig' 'mta-sts')
Lasagne about 2 years ago 4a052da

Add switch to skip fetching certificates auto{config,discover} subdomains (#5838)

Full commit hash
4a052da289c36547fd7863d18e3ba23f8ea5dc78
Author
Lasagne <[email protected]>
Date
about 2 years ago
Selected line
225
  fi
Open commit View diff
225 fi
Markus Gnadl over 8 years ago 0e33fd4

wildcards (subdomain.*) in ADDITIONAL_SAN are expanded to all mailcow domains

Full commit hash
0e33fd49bb14329c49e9fbec6ecac5fd382e65a3
Author
Markus Gnadl <[email protected]>
Date
over 8 years ago
Selected line
226
Open commit View diff
226
DerLinkman over 3 years ago 5c57df4

[Acme] Implemented IP Check Bypass properly

Full commit hash
5c57df466943580d77c44ff8af22fe4115eb058a
Author
DerLinkman <[email protected]>
Date
over 3 years ago
Selected line
227
  if [[ ${SKIP_IP_CHECK} != "y" ]]; then
Open commit View diff
227 if [[ ${SKIP_IP_CHECK} != "y" ]]; then
andryyy over 7 years ago 9f2a6f1

Merge branch 'master' of https://github.com/mailcow/mailcow-dockerized

Full commit hash
9f2a6f13a5d3bc5cdcd1e61c458cd3989bc945b0
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
228
  # Start IP detection
Open commit View diff
228 # Start IP detection
andryyy almost 6 years ago da200db

[ACME] Add more checks, avoid cert/key mismatch on some installations, fix some output

Full commit hash
da200db2d369ec667216312eab749f35494c7e6f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
229
  log_f "Detecting IP addresses..."
Open commit View diff
229 log_f "Detecting IP addresses..."
andre.peters over 8 years ago db032af

[ACME] Fix script

Full commit hash
db032af698fa017cc0cf5cad6f561ce316f51440
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
230
  IPV4=$(get_ipv4)
Open commit View diff
230 IPV4=$(get_ipv4)
André about 8 years ago f88a72e

[ACME] Validate AAAA, if any, before A - fail on AAAA mismatch (LE prioritization)

Full commit hash
f88a72eedd2eb564270a59166eab53ea8dad3a09
Author
André <[email protected]>
Date
about 8 years ago
Selected line
231
  IPV6=$(get_ipv6)
Open commit View diff
231 IPV6=$(get_ipv6)
andryyy almost 6 years ago da200db

[ACME] Add more checks, avoid cert/key mismatch on some installations, fix some output

Full commit hash
da200db2d369ec667216312eab749f35494c7e6f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
232
  log_f "OK: ${IPV4}, ${IPV6:-"0000:0000:0000:0000:0000:0000:0000:0000"}"
Open commit View diff
232 log_f "OK: ${IPV4}, ${IPV6:-"0000:0000:0000:0000:0000:0000:0000:0000"}"
DerLinkman over 3 years ago 5c57df4

[Acme] Implemented IP Check Bypass properly

Full commit hash
5c57df466943580d77c44ff8af22fe4115eb058a
Author
DerLinkman <[email protected]>
Date
over 3 years ago
Selected line
233
  fi
Open commit View diff
233 fi
André about 8 years ago f88a72e

[ACME] Validate AAAA, if any, before A - fail on AAAA mismatch (LE prioritization)

Full commit hash
f88a72eedd2eb564270a59166eab53ea8dad3a09
Author
André <[email protected]>
Date
about 8 years ago
Selected line
234
Open commit View diff
234
andryyy over 7 years ago 9f2a6f1

Merge branch 'master' of https://github.com/mailcow/mailcow-dockerized

Full commit hash
9f2a6f13a5d3bc5cdcd1e61c458cd3989bc945b0
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
235
  #########################################
Open commit View diff
235 #########################################
same change 9f2a6f1

Merge branch 'master' of https://github.com/mailcow/mailcow-dockerized

Full commit hash
9f2a6f13a5d3bc5cdcd1e61c458cd3989bc945b0
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
236
  # IP and webroot challenge verification #
Open commit View diff
236 # IP and webroot challenge verification #
DerLinkman over 1 year ago 2f93f1d

os: fixes for newer mariadb-client versions (especially on alpine 3.21)

Full commit hash
2f93f1d0c5b9642190c1358a03038be4c3f4bb43
Author
DerLinkman <[email protected]>
Date
over 1 year ago
Selected line
237
  SQL_DOMAINS=$(mariadb --skip-ssl --socket=/var/run/mysqld/mysqld.sock -u ${DBUSER} -p${DBPASS} ${DBNAME} -e "SELECT domain FROM domain WHERE backupmx=0 and active=1" -Bs)
Open commit View diff
237 SQL_DOMAINS=$(mariadb --skip-ssl --socket=/var/run/mysqld/mysqld.sock -u ${DBUSER} -p${DBPASS} ${DBNAME} -e "SELECT domain FROM domain WHERE backupmx=0 and active=1" -Bs)
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
238
  if [[ ! $? -eq 0 ]]; then
Open commit View diff
238 if [[ ! $? -eq 0 ]]; then
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
239
    log_f "Failed to read SQL domains, retrying in 1 minute..."
Open commit View diff
239 log_f "Failed to read SQL domains, retrying in 1 minute..."
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
240
    sleep 1m
Open commit View diff
240 sleep 1m
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
241
    exec $(readlink -f "$0")
Open commit View diff
241 exec $(readlink -f "$0")
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
242
  fi
Open commit View diff
242 fi
André almost 9 years ago a110e2e

[ACME] Fix detection of orphaned SANs and add tini

Full commit hash
a110e2ea0f126ac5bed59dad6d30a76b12d29a0a
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
243
  while read domains; do
Open commit View diff
243 while read domains; do
Marcel Hofer almost 7 years ago b413ed4

[SSL] minor fix: prevent checking of empty SQL_DOMAIN

Full commit hash
b413ed4013389995f77f281a663b6ab11c7a30f4
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
244
    if [[ -z "${domains}" ]]; then
Open commit View diff
244 if [[ -z "${domains}" ]]; then
same change b413ed4

[SSL] minor fix: prevent checking of empty SQL_DOMAIN

Full commit hash
b413ed4013389995f77f281a663b6ab11c7a30f4
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
245
      # ignore empty lines
Open commit View diff
245 # ignore empty lines
same change b413ed4

[SSL] minor fix: prevent checking of empty SQL_DOMAIN

Full commit hash
b413ed4013389995f77f281a663b6ab11c7a30f4
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
246
      continue
Open commit View diff
246 continue
same change b413ed4

[SSL] minor fix: prevent checking of empty SQL_DOMAIN

Full commit hash
b413ed4013389995f77f281a663b6ab11c7a30f4
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
247
    fi
Open commit View diff
247 fi
André almost 9 years ago a110e2e

[ACME] Fix detection of orphaned SANs and add tini

Full commit hash
a110e2ea0f126ac5bed59dad6d30a76b12d29a0a
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
248
    SQL_DOMAIN_ARR+=("${domains}")
Open commit View diff
248 SQL_DOMAIN_ARR+=("${domains}")
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
249
  done <<< "${SQL_DOMAINS}"
Open commit View diff
249 done <<< "${SQL_DOMAINS}"
André almost 9 years ago a110e2e

[ACME] Fix detection of orphaned SANs and add tini

Full commit hash
a110e2ea0f126ac5bed59dad6d30a76b12d29a0a
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
250
Open commit View diff
250
andryyy about 7 years ago 9bab650

[ACME] Allow to skip all names but MAILCOW_HOSTNAME

Full commit hash
9bab6507a73428de890967b1615ef71ce432b556
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
251
  if [[ ${ONLY_MAILCOW_HOSTNAME} != "y" ]]; then
Open commit View diff
251 if [[ ${ONLY_MAILCOW_HOSTNAME} != "y" ]]; then
André almost 8 years ago e941c6e

[ACME] Fix missing for loop start

Full commit hash
e941c6e8b2dfbbf6e04d6d0633e966c50b0df117
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
252
  for SQL_DOMAIN in "${SQL_DOMAIN_ARR[@]}"; do
Open commit View diff
252 for SQL_DOMAIN in "${SQL_DOMAIN_ARR[@]}"; do
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
253
    unset VALIDATED_CONFIG_DOMAINS_SUBDOMAINS
Open commit View diff
253 unset VALIDATED_CONFIG_DOMAINS_SUBDOMAINS
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
254
    declare -a VALIDATED_CONFIG_DOMAINS_SUBDOMAINS
Open commit View diff
254 declare -a VALIDATED_CONFIG_DOMAINS_SUBDOMAINS
Markus Gnadl over 8 years ago 0e33fd4

wildcards (subdomain.*) in ADDITIONAL_SAN are expanded to all mailcow domains

Full commit hash
0e33fd49bb14329c49e9fbec6ecac5fd382e65a3
Author
Markus Gnadl <[email protected]>
Date
over 8 years ago
Selected line
255
    for SUBDOMAIN in "${ADDITIONAL_WC_ARR[@]}"; do
Open commit View diff
255 for SUBDOMAIN in "${ADDITIONAL_WC_ARR[@]}"; do
FreddleSpl0it 4 months ago 127fb1e

[ACME] Skip autodiscover/mta-sts subdomains covered by wildcard certificates

Full commit hash
127fb1e8f59db602d1f51558b2babdee06ac345f
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
256
      FULL_SUBDOMAIN="${SUBDOMAIN}.${SQL_DOMAIN}"
Open commit View diff
256 FULL_SUBDOMAIN="${SUBDOMAIN}.${SQL_DOMAIN}"
same change 127fb1e

[ACME] Skip autodiscover/mta-sts subdomains covered by wildcard certificates

Full commit hash
127fb1e8f59db602d1f51558b2babdee06ac345f
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
257
Open commit View diff
257
same change 127fb1e

[ACME] Skip autodiscover/mta-sts subdomains covered by wildcard certificates

Full commit hash
127fb1e8f59db602d1f51558b2babdee06ac345f
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
258
      # Skip if subdomain matches MAILCOW_HOSTNAME
Open commit View diff
258 # Skip if subdomain matches MAILCOW_HOSTNAME
same change 127fb1e

[ACME] Skip autodiscover/mta-sts subdomains covered by wildcard certificates

Full commit hash
127fb1e8f59db602d1f51558b2babdee06ac345f
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
259
      if [[ "${FULL_SUBDOMAIN}" == "${MAILCOW_HOSTNAME}" ]]; then
Open commit View diff
259 if [[ "${FULL_SUBDOMAIN}" == "${MAILCOW_HOSTNAME}" ]]; then
same change 127fb1e

[ACME] Skip autodiscover/mta-sts subdomains covered by wildcard certificates

Full commit hash
127fb1e8f59db602d1f51558b2babdee06ac345f
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
260
        continue
Open commit View diff
260 continue
same change 127fb1e

[ACME] Skip autodiscover/mta-sts subdomains covered by wildcard certificates

Full commit hash
127fb1e8f59db602d1f51558b2babdee06ac345f
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
261
      fi
Open commit View diff
261 fi
same change 127fb1e

[ACME] Skip autodiscover/mta-sts subdomains covered by wildcard certificates

Full commit hash
127fb1e8f59db602d1f51558b2babdee06ac345f
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
262
      # Skip if subdomain is covered by a wildcard in ADDITIONAL_SAN
Open commit View diff
262 # Skip if subdomain is covered by a wildcard in ADDITIONAL_SAN
same change 127fb1e

[ACME] Skip autodiscover/mta-sts subdomains covered by wildcard certificates

Full commit hash
127fb1e8f59db602d1f51558b2babdee06ac345f
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
263
      if is_covered_by_wildcard "${FULL_SUBDOMAIN}"; then
Open commit View diff
263 if is_covered_by_wildcard "${FULL_SUBDOMAIN}"; then
same change 127fb1e

[ACME] Skip autodiscover/mta-sts subdomains covered by wildcard certificates

Full commit hash
127fb1e8f59db602d1f51558b2babdee06ac345f
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
264
        log_f "Subdomain '${FULL_SUBDOMAIN}' is covered by wildcard - skipping explicit subdomain"
Open commit View diff
264 log_f "Subdomain '${FULL_SUBDOMAIN}' is covered by wildcard - skipping explicit subdomain"
same change 127fb1e

[ACME] Skip autodiscover/mta-sts subdomains covered by wildcard certificates

Full commit hash
127fb1e8f59db602d1f51558b2babdee06ac345f
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
265
        continue
Open commit View diff
265 continue
same change 127fb1e

[ACME] Skip autodiscover/mta-sts subdomains covered by wildcard certificates

Full commit hash
127fb1e8f59db602d1f51558b2babdee06ac345f
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
266
      fi
Open commit View diff
266 fi
same change 127fb1e

[ACME] Skip autodiscover/mta-sts subdomains covered by wildcard certificates

Full commit hash
127fb1e8f59db602d1f51558b2babdee06ac345f
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
267
      # Validate and add subdomain
Open commit View diff
267 # Validate and add subdomain
same change 127fb1e

[ACME] Skip autodiscover/mta-sts subdomains covered by wildcard certificates

Full commit hash
127fb1e8f59db602d1f51558b2babdee06ac345f
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
268
      if check_domain "${FULL_SUBDOMAIN}"; then
Open commit View diff
268 if check_domain "${FULL_SUBDOMAIN}"; then
same change 127fb1e

[ACME] Skip autodiscover/mta-sts subdomains covered by wildcard certificates

Full commit hash
127fb1e8f59db602d1f51558b2babdee06ac345f
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
269
        VALIDATED_CONFIG_DOMAINS_SUBDOMAINS+=("${FULL_SUBDOMAIN}")
Open commit View diff
269 VALIDATED_CONFIG_DOMAINS_SUBDOMAINS+=("${FULL_SUBDOMAIN}")
André almost 9 years ago a110e2e

[ACME] Fix detection of orphaned SANs and add tini

Full commit hash
a110e2ea0f126ac5bed59dad6d30a76b12d29a0a
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
270
      fi
Open commit View diff
270 fi
Markus Gnadl over 8 years ago 0e33fd4

wildcards (subdomain.*) in ADDITIONAL_SAN are expanded to all mailcow domains

Full commit hash
0e33fd49bb14329c49e9fbec6ecac5fd382e65a3
Author
Markus Gnadl <[email protected]>
Date
over 8 years ago
Selected line
271
    done
Open commit View diff
271 done
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
272
    VALIDATED_CONFIG_DOMAINS+=("${VALIDATED_CONFIG_DOMAINS_SUBDOMAINS[*]}")
Open commit View diff
272 VALIDATED_CONFIG_DOMAINS+=("${VALIDATED_CONFIG_DOMAINS_SUBDOMAINS[*]}")
André almost 9 years ago a110e2e

[ACME] Fix detection of orphaned SANs and add tini

Full commit hash
a110e2ea0f126ac5bed59dad6d30a76b12d29a0a
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
273
  done
Open commit View diff
273 done
Copilot 7 months ago 038b2ef

Add MTA-STS support for alias domains (#6972)

Full commit hash
038b2efb759e6d011b35beee53e3e534d266341f
Author
Copilot <[email protected]>
Date
7 months ago
Selected line
274
Open commit View diff
274
same change 038b2ef

Add MTA-STS support for alias domains (#6972)

Full commit hash
038b2efb759e6d011b35beee53e3e534d266341f
Author
Copilot <[email protected]>
Date
7 months ago
Selected line
275
  # Fetch alias domains where target domain has MTA-STS enabled
Open commit View diff
275 # Fetch alias domains where target domain has MTA-STS enabled
same change 038b2ef

Add MTA-STS support for alias domains (#6972)

Full commit hash
038b2efb759e6d011b35beee53e3e534d266341f
Author
Copilot <[email protected]>
Date
7 months ago
Selected line
276
  if [[ ${AUTODISCOVER_SAN} == "y" ]]; then
Open commit View diff
276 if [[ ${AUTODISCOVER_SAN} == "y" ]]; then
same change 038b2ef

Add MTA-STS support for alias domains (#6972)

Full commit hash
038b2efb759e6d011b35beee53e3e534d266341f
Author
Copilot <[email protected]>
Date
7 months ago
Selected line
277
    SQL_ALIAS_DOMAINS=$(mariadb --skip-ssl --socket=/var/run/mysqld/mysqld.sock -u ${DBUSER} -p${DBPASS} ${DBNAME} -e "SELECT ad.alias_domain FROM alias_domain ad INNER JOIN mta_sts m ON ad.target_domain = m.domain WHERE ad.active = 1 AND m.active = 1" -Bs)
Open commit View diff
277 SQL_ALIAS_DOMAINS=$(mariadb --skip-ssl --socket=/var/run/mysqld/mysqld.sock -u ${DBUSER} -p${DBPASS} ${DBNAME} -e "SELECT ad.alias_domain FROM alias_domain ad INNER JOIN mta_sts m ON ad.target_domain = m.domain WHERE ad.active = 1 AND m.active = 1" -Bs)
same change 038b2ef

Add MTA-STS support for alias domains (#6972)

Full commit hash
038b2efb759e6d011b35beee53e3e534d266341f
Author
Copilot <[email protected]>
Date
7 months ago
Selected line
278
    if [[ $? -eq 0 ]]; then
Open commit View diff
278 if [[ $? -eq 0 ]]; then
same change 038b2ef

Add MTA-STS support for alias domains (#6972)

Full commit hash
038b2efb759e6d011b35beee53e3e534d266341f
Author
Copilot <[email protected]>
Date
7 months ago
Selected line
279
      while read alias_domain; do
Open commit View diff
279 while read alias_domain; do
same change 038b2ef

Add MTA-STS support for alias domains (#6972)

Full commit hash
038b2efb759e6d011b35beee53e3e534d266341f
Author
Copilot <[email protected]>
Date
7 months ago
Selected line
280
        if [[ -z "${alias_domain}" ]]; then
Open commit View diff
280 if [[ -z "${alias_domain}" ]]; then
same change 038b2ef

Add MTA-STS support for alias domains (#6972)

Full commit hash
038b2efb759e6d011b35beee53e3e534d266341f
Author
Copilot <[email protected]>
Date
7 months ago
Selected line
281
          # ignore empty lines
Open commit View diff
281 # ignore empty lines
same change 038b2ef

Add MTA-STS support for alias domains (#6972)

Full commit hash
038b2efb759e6d011b35beee53e3e534d266341f
Author
Copilot <[email protected]>
Date
7 months ago
Selected line
282
          continue
Open commit View diff
282 continue
same change 038b2ef

Add MTA-STS support for alias domains (#6972)

Full commit hash
038b2efb759e6d011b35beee53e3e534d266341f
Author
Copilot <[email protected]>
Date
7 months ago
Selected line
283
        fi
Open commit View diff
283 fi
same change 038b2ef

Add MTA-STS support for alias domains (#6972)

Full commit hash
038b2efb759e6d011b35beee53e3e534d266341f
Author
Copilot <[email protected]>
Date
7 months ago
Selected line
284
        # Only add mta-sts subdomain for alias domains
Open commit View diff
284 # Only add mta-sts subdomain for alias domains
same change 038b2ef

Add MTA-STS support for alias domains (#6972)

Full commit hash
038b2efb759e6d011b35beee53e3e534d266341f
Author
Copilot <[email protected]>
Date
7 months ago
Selected line
285
        if [[ "mta-sts.${alias_domain}" != "${MAILCOW_HOSTNAME}" ]]; then
Open commit View diff
285 if [[ "mta-sts.${alias_domain}" != "${MAILCOW_HOSTNAME}" ]]; then
FreddleSpl0it 4 months ago 127fb1e

[ACME] Skip autodiscover/mta-sts subdomains covered by wildcard certificates

Full commit hash
127fb1e8f59db602d1f51558b2babdee06ac345f
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
286
          # Skip if mta-sts subdomain is covered by a wildcard
Open commit View diff
286 # Skip if mta-sts subdomain is covered by a wildcard
same change 127fb1e

[ACME] Skip autodiscover/mta-sts subdomains covered by wildcard certificates

Full commit hash
127fb1e8f59db602d1f51558b2babdee06ac345f
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
287
          if is_covered_by_wildcard "mta-sts.${alias_domain}"; then
Open commit View diff
287 if is_covered_by_wildcard "mta-sts.${alias_domain}"; then
same change 127fb1e

[ACME] Skip autodiscover/mta-sts subdomains covered by wildcard certificates

Full commit hash
127fb1e8f59db602d1f51558b2babdee06ac345f
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
288
            log_f "Alias domain mta-sts subdomain 'mta-sts.${alias_domain}' is covered by wildcard - skipping"
Open commit View diff
288 log_f "Alias domain mta-sts subdomain 'mta-sts.${alias_domain}' is covered by wildcard - skipping"
same change 127fb1e

[ACME] Skip autodiscover/mta-sts subdomains covered by wildcard certificates

Full commit hash
127fb1e8f59db602d1f51558b2babdee06ac345f
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
289
          elif check_domain "mta-sts.${alias_domain}"; then
Open commit View diff
289 elif check_domain "mta-sts.${alias_domain}"; then
Copilot 7 months ago 038b2ef

Add MTA-STS support for alias domains (#6972)

Full commit hash
038b2efb759e6d011b35beee53e3e534d266341f
Author
Copilot <[email protected]>
Date
7 months ago
Selected line
290
            VALIDATED_CONFIG_DOMAINS+=("mta-sts.${alias_domain}")
Open commit View diff
290 VALIDATED_CONFIG_DOMAINS+=("mta-sts.${alias_domain}")
same change 038b2ef

Add MTA-STS support for alias domains (#6972)

Full commit hash
038b2efb759e6d011b35beee53e3e534d266341f
Author
Copilot <[email protected]>
Date
7 months ago
Selected line
291
          fi
Open commit View diff
291 fi
same change 038b2ef

Add MTA-STS support for alias domains (#6972)

Full commit hash
038b2efb759e6d011b35beee53e3e534d266341f
Author
Copilot <[email protected]>
Date
7 months ago
Selected line
292
        fi
Open commit View diff
292 fi
same change 038b2ef

Add MTA-STS support for alias domains (#6972)

Full commit hash
038b2efb759e6d011b35beee53e3e534d266341f
Author
Copilot <[email protected]>
Date
7 months ago
Selected line
293
      done <<< "${SQL_ALIAS_DOMAINS}"
Open commit View diff
293 done <<< "${SQL_ALIAS_DOMAINS}"
same change 038b2ef

Add MTA-STS support for alias domains (#6972)

Full commit hash
038b2efb759e6d011b35beee53e3e534d266341f
Author
Copilot <[email protected]>
Date
7 months ago
Selected line
294
    fi
Open commit View diff
294 fi
same change 038b2ef

Add MTA-STS support for alias domains (#6972)

Full commit hash
038b2efb759e6d011b35beee53e3e534d266341f
Author
Copilot <[email protected]>
Date
7 months ago
Selected line
295
  fi
Open commit View diff
295 fi
andryyy about 7 years ago 9bab650

[ACME] Allow to skip all names but MAILCOW_HOSTNAME

Full commit hash
9bab6507a73428de890967b1615ef71ce432b556
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
296
  fi
Open commit View diff
296 fi
andryyy about 9 years ago ef62f6b

Acme tool checks for valid autodiscover and autoconfig A records and skips non-existing names

Full commit hash
ef62f6b38315b8e8cea2741bd2642b6b17cd0375
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
297
Open commit View diff
297
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
298
  if check_domain ${MAILCOW_HOSTNAME}; then
Open commit View diff
298 if check_domain ${MAILCOW_HOSTNAME}; then
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
299
    VALIDATED_MAILCOW_HOSTNAME="${MAILCOW_HOSTNAME}"
Open commit View diff
299 VALIDATED_MAILCOW_HOSTNAME="${MAILCOW_HOSTNAME}"
André almost 9 years ago a110e2e

[ACME] Fix detection of orphaned SANs and add tini

Full commit hash
a110e2ea0f126ac5bed59dad6d30a76b12d29a0a
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
300
  fi
Open commit View diff
300 fi
andryyy about 9 years ago 6d8438c

- More checks for acme-mailcow (verify hashes)

Full commit hash
6d8438c01c86518fef6394921ec81df86faa0713
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
301
Open commit View diff
301
andryyy about 7 years ago 9bab650

[ACME] Allow to skip all names but MAILCOW_HOSTNAME

Full commit hash
9bab6507a73428de890967b1615ef71ce432b556
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
302
  if [[ ${ONLY_MAILCOW_HOSTNAME} != "y" ]]; then
Open commit View diff
302 if [[ ${ONLY_MAILCOW_HOSTNAME} != "y" ]]; then
André almost 9 years ago a110e2e

[ACME] Fix detection of orphaned SANs and add tini

Full commit hash
a110e2ea0f126ac5bed59dad6d30a76b12d29a0a
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
303
  for SAN in "${ADDITIONAL_SAN_ARR[@]}"; do
Open commit View diff
303 for SAN in "${ADDITIONAL_SAN_ARR[@]}"; do
André almost 8 years ago ff0b924

[ClamAV] Add whitelist file for ClamAV, fixes #1607

Full commit hash
ff0b9246b5ca0fa8f3e37243596f8d311e8cc8dd
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
304
    # Skip on CAA errors for SAN
Open commit View diff
304 # Skip on CAA errors for SAN
same change ff0b924

[ClamAV] Add whitelist file for ClamAV, fixes #1607

Full commit hash
ff0b9246b5ca0fa8f3e37243596f8d311e8cc8dd
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
305
    SAN_PARENT_DOMAIN=$(echo ${SAN} | cut -d. -f2-)
Open commit View diff
305 SAN_PARENT_DOMAIN=$(echo ${SAN} | cut -d. -f2-)
same change ff0b924

[ClamAV] Add whitelist file for ClamAV, fixes #1607

Full commit hash
ff0b9246b5ca0fa8f3e37243596f8d311e8cc8dd
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
306
    SAN_CAAS=( $(dig CAA ${SAN_PARENT_DOMAIN} +short | sed -n 's/\d issue "\(.*\)"/\1/p') )
Open commit View diff
306 SAN_CAAS=( $(dig CAA ${SAN_PARENT_DOMAIN} +short | sed -n 's/\d issue "\(.*\)"/\1/p') )
same change ff0b924

[ClamAV] Add whitelist file for ClamAV, fixes #1607

Full commit hash
ff0b9246b5ca0fa8f3e37243596f8d311e8cc8dd
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
307
    if [[ ! -z ${SAN_CAAS} ]]; then
Open commit View diff
307 if [[ ! -z ${SAN_CAAS} ]]; then
same change ff0b924

[ClamAV] Add whitelist file for ClamAV, fixes #1607

Full commit hash
ff0b9246b5ca0fa8f3e37243596f8d311e8cc8dd
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
308
      if [[ ${SAN_CAAS[@]} =~ "letsencrypt.org" ]]; then
Open commit View diff
308 if [[ ${SAN_CAAS[@]} =~ "letsencrypt.org" ]]; then
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
309
        log_f "Validated CAA for parent domain ${SAN_PARENT_DOMAIN} of ${SAN}"
Open commit View diff
309 log_f "Validated CAA for parent domain ${SAN_PARENT_DOMAIN} of ${SAN}"
André almost 8 years ago ff0b924

[ClamAV] Add whitelist file for ClamAV, fixes #1607

Full commit hash
ff0b9246b5ca0fa8f3e37243596f8d311e8cc8dd
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
310
      else
Open commit View diff
310 else
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
311
        log_f "Skipping ACME validation for ${SAN}: Lets Encrypt disallowed for ${SAN} by CAA record"
Open commit View diff
311 log_f "Skipping ACME validation for ${SAN}: Lets Encrypt disallowed for ${SAN} by CAA record"
André almost 8 years ago ff0b924

[ClamAV] Add whitelist file for ClamAV, fixes #1607

Full commit hash
ff0b9246b5ca0fa8f3e37243596f8d311e8cc8dd
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
312
        continue
Open commit View diff
312 continue
same change ff0b924

[ClamAV] Add whitelist file for ClamAV, fixes #1607

Full commit hash
ff0b9246b5ca0fa8f3e37243596f8d311e8cc8dd
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
313
      fi
Open commit View diff
313 fi
same change ff0b924

[ClamAV] Add whitelist file for ClamAV, fixes #1607

Full commit hash
ff0b9246b5ca0fa8f3e37243596f8d311e8cc8dd
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
314
    fi
Open commit View diff
314 fi
André almost 9 years ago a110e2e

[ACME] Fix detection of orphaned SANs and add tini

Full commit hash
a110e2ea0f126ac5bed59dad6d30a76b12d29a0a
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
315
    if [[ ${SAN} == ${MAILCOW_HOSTNAME} ]]; then
Open commit View diff
315 if [[ ${SAN} == ${MAILCOW_HOSTNAME} ]]; then
same change a110e2e

[ACME] Fix detection of orphaned SANs and add tini

Full commit hash
a110e2ea0f126ac5bed59dad6d30a76b12d29a0a
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
316
      continue
Open commit View diff
316 continue
same change a110e2e

[ACME] Fix detection of orphaned SANs and add tini

Full commit hash
a110e2ea0f126ac5bed59dad6d30a76b12d29a0a
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
317
    fi
Open commit View diff
317 fi
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
318
    if check_domain ${SAN}; then
Open commit View diff
318 if check_domain ${SAN}; then
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
319
      ADDITIONAL_VALIDATED_SAN+=("${SAN}")
Open commit View diff
319 ADDITIONAL_VALIDATED_SAN+=("${SAN}")
André about 8 years ago d6a74e8

[ACME] Fix for CNAME response on AAAA dig request

Full commit hash
d6a74e82e3181d9d5a9dc2f14a1d1432e2432d25
Author
André <[email protected]>
Date
about 8 years ago
Selected line
320
    fi
Open commit View diff
320 fi
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
321
  done
Open commit View diff
321 done
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
322
  fi
Open commit View diff
322 fi
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
323
Open commit View diff
323
FreddleSpl0it 4 months ago 1da8d1c

[ACME] Fix wildcard certificate conflict with MAILCOW_HOSTNAME

Full commit hash
1da8d1c894aad6d341287e334c9328a6c3966f4e
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
324
  # Check if MAILCOW_HOSTNAME is covered by a wildcard in ADDITIONAL_SAN
Open commit View diff
324 # Check if MAILCOW_HOSTNAME is covered by a wildcard in ADDITIONAL_SAN
same change 1da8d1c

[ACME] Fix wildcard certificate conflict with MAILCOW_HOSTNAME

Full commit hash
1da8d1c894aad6d341287e334c9328a6c3966f4e
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
325
  MAILCOW_HOSTNAME_COVERED=0
Open commit View diff
325 MAILCOW_HOSTNAME_COVERED=0
FreddleSpl0it 4 months ago 7817dda

[ACME] Skip subdomains covered by wildcards (DNS-01 challenge only)

Full commit hash
7817dda43fc324463506cd9014dde7dd25f1c82e
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
326
  if [[ ! -z ${VALIDATED_MAILCOW_HOSTNAME} ]]; then
Open commit View diff
326 if [[ ! -z ${VALIDATED_MAILCOW_HOSTNAME} ]]; then
same change 7817dda

[ACME] Skip subdomains covered by wildcards (DNS-01 challenge only)

Full commit hash
7817dda43fc324463506cd9014dde7dd25f1c82e
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
327
    if is_covered_by_wildcard "${VALIDATED_MAILCOW_HOSTNAME}"; then
Open commit View diff
327 if is_covered_by_wildcard "${VALIDATED_MAILCOW_HOSTNAME}"; then
same change 7817dda

[ACME] Skip subdomains covered by wildcards (DNS-01 challenge only)

Full commit hash
7817dda43fc324463506cd9014dde7dd25f1c82e
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
328
      MAILCOW_PARENT_DOMAIN=$(echo ${VALIDATED_MAILCOW_HOSTNAME} | cut -d. -f2-)
Open commit View diff
328 MAILCOW_PARENT_DOMAIN=$(echo ${VALIDATED_MAILCOW_HOSTNAME} | cut -d. -f2-)
FreddleSpl0it 4 months ago 1da8d1c

[ACME] Fix wildcard certificate conflict with MAILCOW_HOSTNAME

Full commit hash
1da8d1c894aad6d341287e334c9328a6c3966f4e
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
329
      log_f "MAILCOW_HOSTNAME '${VALIDATED_MAILCOW_HOSTNAME}' is covered by wildcard '*.${MAILCOW_PARENT_DOMAIN}' - skipping explicit hostname"
Open commit View diff
329 log_f "MAILCOW_HOSTNAME '${VALIDATED_MAILCOW_HOSTNAME}' is covered by wildcard '*.${MAILCOW_PARENT_DOMAIN}' - skipping explicit hostname"
same change 1da8d1c

[ACME] Fix wildcard certificate conflict with MAILCOW_HOSTNAME

Full commit hash
1da8d1c894aad6d341287e334c9328a6c3966f4e
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
330
      MAILCOW_HOSTNAME_COVERED=1
Open commit View diff
330 MAILCOW_HOSTNAME_COVERED=1
same change 1da8d1c

[ACME] Fix wildcard certificate conflict with MAILCOW_HOSTNAME

Full commit hash
1da8d1c894aad6d341287e334c9328a6c3966f4e
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
331
    fi
Open commit View diff
331 fi
same change 1da8d1c

[ACME] Fix wildcard certificate conflict with MAILCOW_HOSTNAME

Full commit hash
1da8d1c894aad6d341287e334c9328a6c3966f4e
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
332
  fi
Open commit View diff
332 fi
same change 1da8d1c

[ACME] Fix wildcard certificate conflict with MAILCOW_HOSTNAME

Full commit hash
1da8d1c894aad6d341287e334c9328a6c3966f4e
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
333
Open commit View diff
333
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
334
  # Unique domains for server certificate
Open commit View diff
334 # Unique domains for server certificate
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
335
  if [[ ${ENABLE_SSL_SNI} == "y" ]]; then
Open commit View diff
335 if [[ ${ENABLE_SSL_SNI} == "y" ]]; then
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
336
    # create certificate for server name and fqdn SANs only
Open commit View diff
336 # create certificate for server name and fqdn SANs only
FreddleSpl0it 4 months ago 1da8d1c

[ACME] Fix wildcard certificate conflict with MAILCOW_HOSTNAME

Full commit hash
1da8d1c894aad6d341287e334c9328a6c3966f4e
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
337
    if [[ ${MAILCOW_HOSTNAME_COVERED} == "1" ]]; then
Open commit View diff
337 if [[ ${MAILCOW_HOSTNAME_COVERED} == "1" ]]; then
same change 1da8d1c

[ACME] Fix wildcard certificate conflict with MAILCOW_HOSTNAME

Full commit hash
1da8d1c894aad6d341287e334c9328a6c3966f4e
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
338
      SERVER_SAN_VALIDATED=($(echo ${ADDITIONAL_VALIDATED_SAN[*]} | xargs -n1 | sort -u | xargs))
Open commit View diff
338 SERVER_SAN_VALIDATED=($(echo ${ADDITIONAL_VALIDATED_SAN[*]} | xargs -n1 | sort -u | xargs))
same change 1da8d1c

[ACME] Fix wildcard certificate conflict with MAILCOW_HOSTNAME

Full commit hash
1da8d1c894aad6d341287e334c9328a6c3966f4e
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
339
    else
Open commit View diff
339 else
same change 1da8d1c

[ACME] Fix wildcard certificate conflict with MAILCOW_HOSTNAME

Full commit hash
1da8d1c894aad6d341287e334c9328a6c3966f4e
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
340
      SERVER_SAN_VALIDATED=(${VALIDATED_MAILCOW_HOSTNAME} $(echo ${ADDITIONAL_VALIDATED_SAN[*]} | xargs -n1 | sort -u | xargs))
Open commit View diff
340 SERVER_SAN_VALIDATED=(${VALIDATED_MAILCOW_HOSTNAME} $(echo ${ADDITIONAL_VALIDATED_SAN[*]} | xargs -n1 | sort -u | xargs))
same change 1da8d1c

[ACME] Fix wildcard certificate conflict with MAILCOW_HOSTNAME

Full commit hash
1da8d1c894aad6d341287e334c9328a6c3966f4e
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
341
    fi
Open commit View diff
341 fi
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
342
  else
Open commit View diff
342 else
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
343
    # create certificate for all domains, including all subdomains from other domains [*]
Open commit View diff
343 # create certificate for all domains, including all subdomains from other domains [*]
FreddleSpl0it 4 months ago 1da8d1c

[ACME] Fix wildcard certificate conflict with MAILCOW_HOSTNAME

Full commit hash
1da8d1c894aad6d341287e334c9328a6c3966f4e
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
344
    if [[ ${MAILCOW_HOSTNAME_COVERED} == "1" ]]; then
Open commit View diff
344 if [[ ${MAILCOW_HOSTNAME_COVERED} == "1" ]]; then
same change 1da8d1c

[ACME] Fix wildcard certificate conflict with MAILCOW_HOSTNAME

Full commit hash
1da8d1c894aad6d341287e334c9328a6c3966f4e
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
345
      SERVER_SAN_VALIDATED=($(echo ${VALIDATED_CONFIG_DOMAINS[*]} ${ADDITIONAL_VALIDATED_SAN[*]} | xargs -n1 | sort -u | xargs))
Open commit View diff
345 SERVER_SAN_VALIDATED=($(echo ${VALIDATED_CONFIG_DOMAINS[*]} ${ADDITIONAL_VALIDATED_SAN[*]} | xargs -n1 | sort -u | xargs))
same change 1da8d1c

[ACME] Fix wildcard certificate conflict with MAILCOW_HOSTNAME

Full commit hash
1da8d1c894aad6d341287e334c9328a6c3966f4e
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
346
    else
Open commit View diff
346 else
same change 1da8d1c

[ACME] Fix wildcard certificate conflict with MAILCOW_HOSTNAME

Full commit hash
1da8d1c894aad6d341287e334c9328a6c3966f4e
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
347
      SERVER_SAN_VALIDATED=(${VALIDATED_MAILCOW_HOSTNAME} $(echo ${VALIDATED_CONFIG_DOMAINS[*]} ${ADDITIONAL_VALIDATED_SAN[*]} | xargs -n1 | sort -u | xargs))
Open commit View diff
347 SERVER_SAN_VALIDATED=(${VALIDATED_MAILCOW_HOSTNAME} $(echo ${VALIDATED_CONFIG_DOMAINS[*]} ${ADDITIONAL_VALIDATED_SAN[*]} | xargs -n1 | sort -u | xargs))
same change 1da8d1c

[ACME] Fix wildcard certificate conflict with MAILCOW_HOSTNAME

Full commit hash
1da8d1c894aad6d341287e334c9328a6c3966f4e
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
348
    fi
Open commit View diff
348 fi
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
349
  fi
Open commit View diff
349 fi
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
350
  if [[ ! -z ${SERVER_SAN_VALIDATED[*]} ]]; then
Open commit View diff
350 if [[ ! -z ${SERVER_SAN_VALIDATED[*]} ]]; then
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
351
    CERT_NAME=${SERVER_SAN_VALIDATED[0]}
Open commit View diff
351 CERT_NAME=${SERVER_SAN_VALIDATED[0]}
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
352
    VALIDATED_CERTIFICATES+=("${CERT_NAME}")
Open commit View diff
352 VALIDATED_CERTIFICATES+=("${CERT_NAME}")
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
353
Open commit View diff
353
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
354
    # obtain server certificate if required
Open commit View diff
354 # obtain server certificate if required
FreddleSpl0it about 1 year ago ec6dbb0

[ACME] Remove deprecated ACME_CONTACT variable

Full commit hash
ec6dbb099aa4ae559b10217906a62da694c6f182
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
355
    DOMAINS=${SERVER_SAN_VALIDATED[@]} /srv/obtain-certificate.sh rsa
Open commit View diff
355 DOMAINS=${SERVER_SAN_VALIDATED[@]} /srv/obtain-certificate.sh rsa
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
356
    RETURN="$?"
Open commit View diff
356 RETURN="$?"
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
357
    if [[ "$RETURN" == "0" ]]; then # 0 = cert created successfully
Open commit View diff
357 if [[ "$RETURN" == "0" ]]; then # 0 = cert created successfully
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
358
      CERT_AMOUNT_CHANGED=1
Open commit View diff
358 CERT_AMOUNT_CHANGED=1
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
359
      CERT_CHANGED=1
Open commit View diff
359 CERT_CHANGED=1
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
360
    elif [[ "$RETURN" == "1" ]]; then # 1 = cert renewed successfully
Open commit View diff
360 elif [[ "$RETURN" == "1" ]]; then # 1 = cert renewed successfully
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
361
      CERT_CHANGED=1
Open commit View diff
361 CERT_CHANGED=1
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
362
    elif [[ "$RETURN" == "2" ]]; then # 2 = cert not due for renewal
Open commit View diff
362 elif [[ "$RETURN" == "2" ]]; then # 2 = cert not due for renewal
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
363
      :
Open commit View diff
363 :
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
364
    else
Open commit View diff
364 else
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
365
      CERT_ERRORS=1
Open commit View diff
365 CERT_ERRORS=1
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
366
    fi
Open commit View diff
366 fi
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
367
    # copy hostname certificate to default/server certificate
Open commit View diff
367 # copy hostname certificate to default/server certificate
andryyy almost 6 years ago da200db

[ACME] Add more checks, avoid cert/key mismatch on some installations, fix some output

Full commit hash
da200db2d369ec667216312eab749f35494c7e6f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
368
    # do not a key when cert is missing, this can lead to a mismatch of cert/key
Open commit View diff
368 # do not a key when cert is missing, this can lead to a mismatch of cert/key
same change da200db

[ACME] Add more checks, avoid cert/key mismatch on some installations, fix some output

Full commit hash
da200db2d369ec667216312eab749f35494c7e6f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
369
    if [[ -f ${ACME_BASE}/${CERT_NAME}/cert.pem ]]; then
Open commit View diff
369 if [[ -f ${ACME_BASE}/${CERT_NAME}/cert.pem ]]; then
same change da200db

[ACME] Add more checks, avoid cert/key mismatch on some installations, fix some output

Full commit hash
da200db2d369ec667216312eab749f35494c7e6f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
370
      cp ${ACME_BASE}/${CERT_NAME}/cert.pem ${ACME_BASE}/cert.pem
Open commit View diff
370 cp ${ACME_BASE}/${CERT_NAME}/cert.pem ${ACME_BASE}/cert.pem
same change da200db

[ACME] Add more checks, avoid cert/key mismatch on some installations, fix some output

Full commit hash
da200db2d369ec667216312eab749f35494c7e6f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
371
      cp ${ACME_BASE}/${CERT_NAME}/key.pem ${ACME_BASE}/key.pem
Open commit View diff
371 cp ${ACME_BASE}/${CERT_NAME}/key.pem ${ACME_BASE}/key.pem
same change da200db

[ACME] Add more checks, avoid cert/key mismatch on some installations, fix some output

Full commit hash
da200db2d369ec667216312eab749f35494c7e6f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
372
    fi
Open commit View diff
372 fi
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
373
  fi
Open commit View diff
373 fi
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
374
Open commit View diff
374
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
375
  # individual certificates for SNI [@]
Open commit View diff
375 # individual certificates for SNI [@]
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
376
  if [[ ${ENABLE_SSL_SNI} == "y" ]]; then
Open commit View diff
376 if [[ ${ENABLE_SSL_SNI} == "y" ]]; then
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
377
  for VALIDATED_DOMAINS in "${VALIDATED_CONFIG_DOMAINS[@]}"; do
Open commit View diff
377 for VALIDATED_DOMAINS in "${VALIDATED_CONFIG_DOMAINS[@]}"; do
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
378
    VALIDATED_DOMAINS_ARR=(${VALIDATED_DOMAINS})
Open commit View diff
378 VALIDATED_DOMAINS_ARR=(${VALIDATED_DOMAINS})
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
379
Open commit View diff
379
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
380
    unset VALIDATED_DOMAINS_SORTED
Open commit View diff
380 unset VALIDATED_DOMAINS_SORTED
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
381
    declare -a VALIDATED_DOMAINS_SORTED
Open commit View diff
381 declare -a VALIDATED_DOMAINS_SORTED
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
382
    VALIDATED_DOMAINS_SORTED=(${VALIDATED_DOMAINS_ARR[0]} $(echo ${VALIDATED_DOMAINS_ARR[@]:1} | xargs -n1 | sort -u | xargs))
Open commit View diff
382 VALIDATED_DOMAINS_SORTED=(${VALIDATED_DOMAINS_ARR[0]} $(echo ${VALIDATED_DOMAINS_ARR[@]:1} | xargs -n1 | sort -u | xargs))
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
383
Open commit View diff
383
Marcel Hofer almost 7 years ago 56bc9d4

[SSL] prevent multiple certificates with the same domain

Full commit hash
56bc9d45bbaee17507ec2b05cd84d7b59d3c9a3f
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
384
    # remove all domain names that are already inside the server certificate (SERVER_SAN_VALIDATED)
Open commit View diff
384 # remove all domain names that are already inside the server certificate (SERVER_SAN_VALIDATED)
same change 56bc9d4

[SSL] prevent multiple certificates with the same domain

Full commit hash
56bc9d45bbaee17507ec2b05cd84d7b59d3c9a3f
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
385
    for domain in "${SERVER_SAN_VALIDATED[@]}"; do
Open commit View diff
385 for domain in "${SERVER_SAN_VALIDATED[@]}"; do
same change 56bc9d4

[SSL] prevent multiple certificates with the same domain

Full commit hash
56bc9d45bbaee17507ec2b05cd84d7b59d3c9a3f
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
386
      for i in "${!VALIDATED_DOMAINS_SORTED[@]}"; do
Open commit View diff
386 for i in "${!VALIDATED_DOMAINS_SORTED[@]}"; do
same change 56bc9d4

[SSL] prevent multiple certificates with the same domain

Full commit hash
56bc9d45bbaee17507ec2b05cd84d7b59d3c9a3f
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
387
        if [[ ${VALIDATED_DOMAINS_SORTED[i]} = $domain ]]; then
Open commit View diff
387 if [[ ${VALIDATED_DOMAINS_SORTED[i]} = $domain ]]; then
same change 56bc9d4

[SSL] prevent multiple certificates with the same domain

Full commit hash
56bc9d45bbaee17507ec2b05cd84d7b59d3c9a3f
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
388
          unset 'VALIDATED_DOMAINS_SORTED[i]'
Open commit View diff
388 unset 'VALIDATED_DOMAINS_SORTED[i]'
same change 56bc9d4

[SSL] prevent multiple certificates with the same domain

Full commit hash
56bc9d45bbaee17507ec2b05cd84d7b59d3c9a3f
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
389
        fi
Open commit View diff
389 fi
same change 56bc9d4

[SSL] prevent multiple certificates with the same domain

Full commit hash
56bc9d45bbaee17507ec2b05cd84d7b59d3c9a3f
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
390
      done
Open commit View diff
390 done
same change 56bc9d4

[SSL] prevent multiple certificates with the same domain

Full commit hash
56bc9d45bbaee17507ec2b05cd84d7b59d3c9a3f
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
391
    done
Open commit View diff
391 done
same change 56bc9d4

[SSL] prevent multiple certificates with the same domain

Full commit hash
56bc9d45bbaee17507ec2b05cd84d7b59d3c9a3f
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
392
Open commit View diff
392
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
393
    if [[ ! -z ${VALIDATED_DOMAINS_SORTED[*]} ]]; then
Open commit View diff
393 if [[ ! -z ${VALIDATED_DOMAINS_SORTED[*]} ]]; then
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
394
      CERT_NAME=${VALIDATED_DOMAINS_SORTED[0]}
Open commit View diff
394 CERT_NAME=${VALIDATED_DOMAINS_SORTED[0]}
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
395
      VALIDATED_CERTIFICATES+=("${CERT_NAME}")
Open commit View diff
395 VALIDATED_CERTIFICATES+=("${CERT_NAME}")
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
396
      # obtain certificate if required
Open commit View diff
396 # obtain certificate if required
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
397
      DOMAINS=${VALIDATED_DOMAINS_SORTED[@]} /srv/obtain-certificate.sh rsa
Open commit View diff
397 DOMAINS=${VALIDATED_DOMAINS_SORTED[@]} /srv/obtain-certificate.sh rsa
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
398
      RETURN="$?"
Open commit View diff
398 RETURN="$?"
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
399
      if [[ "$RETURN" == "0" ]]; then # 0 = cert created successfully
Open commit View diff
399 if [[ "$RETURN" == "0" ]]; then # 0 = cert created successfully
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
400
        CERT_AMOUNT_CHANGED=1
Open commit View diff
400 CERT_AMOUNT_CHANGED=1
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
401
        CERT_CHANGED=1
Open commit View diff
401 CERT_CHANGED=1
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
402
      elif [[ "$RETURN" == "1" ]]; then # 1 = cert renewed successfully
Open commit View diff
402 elif [[ "$RETURN" == "1" ]]; then # 1 = cert renewed successfully
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
403
        CERT_CHANGED=1
Open commit View diff
403 CERT_CHANGED=1
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
404
      elif [[ "$RETURN" == "2" ]]; then # 2 = cert not due for renewal
Open commit View diff
404 elif [[ "$RETURN" == "2" ]]; then # 2 = cert not due for renewal
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
405
        :
Open commit View diff
405 :
André almost 9 years ago a110e2e

[ACME] Fix detection of orphaned SANs and add tini

Full commit hash
a110e2ea0f126ac5bed59dad6d30a76b12d29a0a
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
406
      else
Open commit View diff
406 else
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
407
        CERT_ERRORS=1
Open commit View diff
407 CERT_ERRORS=1
André almost 9 years ago a110e2e

[ACME] Fix detection of orphaned SANs and add tini

Full commit hash
a110e2ea0f126ac5bed59dad6d30a76b12d29a0a
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
408
      fi
Open commit View diff
408 fi
same change a110e2e

[ACME] Fix detection of orphaned SANs and add tini

Full commit hash
a110e2ea0f126ac5bed59dad6d30a76b12d29a0a
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
409
    fi
Open commit View diff
409 fi
same change a110e2e

[ACME] Fix detection of orphaned SANs and add tini

Full commit hash
a110e2ea0f126ac5bed59dad6d30a76b12d29a0a
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
410
  done
Open commit View diff
410 done
andryyy about 7 years ago 9bab650

[ACME] Allow to skip all names but MAILCOW_HOSTNAME

Full commit hash
9bab6507a73428de890967b1615ef71ce432b556
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
411
  fi
Open commit View diff
411 fi
andryyy about 9 years ago 19325ff

Validate additional SAN

Full commit hash
19325ffb2a87629abc4d3fcc5f8f496aba6b7249
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
412
Open commit View diff
412
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
413
  if [[ -z ${VALIDATED_CERTIFICATES[*]} ]]; then
Open commit View diff
413 if [[ -z ${VALIDATED_CERTIFICATES[*]} ]]; then
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
414
    log_f "Cannot validate any hostnames, skipping Let's Encrypt for 1 hour."
Open commit View diff
414 log_f "Cannot validate any hostnames, skipping Let's Encrypt for 1 hour."
André almost 9 years ago a110e2e

[ACME] Fix detection of orphaned SANs and add tini

Full commit hash
a110e2ea0f126ac5bed59dad6d30a76b12d29a0a
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
415
    log_f "Use SKIP_LETS_ENCRYPT=y in mailcow.conf to skip it permanently."
Open commit View diff
415 log_f "Use SKIP_LETS_ENCRYPT=y in mailcow.conf to skip it permanently."
andryyy over 6 years ago 1fb81f0

[ACME] Use redis master for write operations

Full commit hash
1fb81f05116f580924aa799e5b42e74a4803e323
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
416
    ${REDIS_CMDLINE} SET ACME_FAIL_TIME "$(date +%s)"
Open commit View diff
416 ${REDIS_CMDLINE} SET ACME_FAIL_TIME "$(date +%s)"
André almost 9 years ago a110e2e

[ACME] Fix detection of orphaned SANs and add tini

Full commit hash
a110e2ea0f126ac5bed59dad6d30a76b12d29a0a
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
417
    sleep 1h
Open commit View diff
417 sleep 1h
same change a110e2e

[ACME] Fix detection of orphaned SANs and add tini

Full commit hash
a110e2ea0f126ac5bed59dad6d30a76b12d29a0a
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
418
    exec $(readlink -f "$0")
Open commit View diff
418 exec $(readlink -f "$0")
same change a110e2e

[ACME] Fix detection of orphaned SANs and add tini

Full commit hash
a110e2ea0f126ac5bed59dad6d30a76b12d29a0a
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
419
  fi
Open commit View diff
419 fi
andryyy about 9 years ago 6d8438c

- More checks for acme-mailcow (verify hashes)

Full commit hash
6d8438c01c86518fef6394921ec81df86faa0713
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
420
Open commit View diff
420
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
421
  # find orphaned certificates if no errors occurred
Open commit View diff
421 # find orphaned certificates if no errors occurred
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
422
  if [[ "${CERT_ERRORS}" == "0" ]]; then
Open commit View diff
422 if [[ "${CERT_ERRORS}" == "0" ]]; then
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
423
    for EXISTING_CERT in "${EXISTING_CERTS[@]}"; do
Open commit View diff
423 for EXISTING_CERT in "${EXISTING_CERTS[@]}"; do
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
424
      if [[ ! "`printf '_%s_\n' "${VALIDATED_CERTIFICATES[@]}"`" == *"_${EXISTING_CERT}_"* ]]; then
Open commit View diff
424 if [[ ! "`printf '_%s_\n' "${VALIDATED_CERTIFICATES[@]}"`" == *"_${EXISTING_CERT}_"* ]]; then
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
425
        DATE=$(date +%Y-%m-%d_%H_%M_%S)
Open commit View diff
425 DATE=$(date +%Y-%m-%d_%H_%M_%S)
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
426
        log_f "Found orphaned certificate: ${EXISTING_CERT} - archiving it at ${ACME_BASE}/backups/${EXISTING_CERT}/"
Open commit View diff
426 log_f "Found orphaned certificate: ${EXISTING_CERT} - archiving it at ${ACME_BASE}/backups/${EXISTING_CERT}/"
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
427
        BACKUP_DIR=${ACME_BASE}/backups/${EXISTING_CERT}/${DATE}
Open commit View diff
427 BACKUP_DIR=${ACME_BASE}/backups/${EXISTING_CERT}/${DATE}
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
428
        # archive rsa cert and any other files
Open commit View diff
428 # archive rsa cert and any other files
Marcel Hofer over 6 years ago b8a12ad

[SSL] fix bug with pruning old certificates (#3272)

Full commit hash
b8a12ad192d0689a8bf3d86d2e0f6de03dc2de8b
Author
Marcel Hofer <[email protected]>
Date
over 6 years ago
Selected line
429
        mkdir -p ${ACME_BASE}/backups/${EXISTING_CERT}
Open commit View diff
429 mkdir -p ${ACME_BASE}/backups/${EXISTING_CERT}
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
430
        mv ${ACME_BASE}/${EXISTING_CERT} ${BACKUP_DIR}
Open commit View diff
430 mv ${ACME_BASE}/${EXISTING_CERT} ${BACKUP_DIR}
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
431
        CERT_CHANGED=1
Open commit View diff
431 CERT_CHANGED=1
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
432
        CERT_AMOUNT_CHANGED=1
Open commit View diff
432 CERT_AMOUNT_CHANGED=1
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
433
      fi
Open commit View diff
433 fi
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
434
    done
Open commit View diff
434 done
andryyy over 7 years ago 9f2a6f1

Merge branch 'master' of https://github.com/mailcow/mailcow-dockerized

Full commit hash
9f2a6f13a5d3bc5cdcd1e61c458cd3989bc945b0
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
435
  fi
Open commit View diff
435 fi
same change 9f2a6f1

Merge branch 'master' of https://github.com/mailcow/mailcow-dockerized

Full commit hash
9f2a6f13a5d3bc5cdcd1e61c458cd3989bc945b0
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
436
Open commit View diff
436
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
437
  # reload on new or changed certificates
Open commit View diff
437 # reload on new or changed certificates
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
438
  if [[ "${CERT_CHANGED}" == "1" ]]; then
Open commit View diff
438 if [[ "${CERT_CHANGED}" == "1" ]]; then
andryyy over 6 years ago e19e6b9

[ACME] Force renewal with force_renew file, docs will follow

Full commit hash
e19e6b9e9245ff32f662612c7381b14d60062306
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
439
    rm -f "${ACME_BASE}/force_renew" 2> /dev/null
Open commit View diff
439 rm -f "${ACME_BASE}/force_renew" 2> /dev/null
andryyy almost 6 years ago c8ce288

[ACME] Do check for restart of Postfix and Dovecot service more thoroughly

Full commit hash
c8ce28817805d95ded2905f17f44af495a51b440
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
440
    RELOAD_LOOP_C=1
Open commit View diff
440 RELOAD_LOOP_C=1
same change c8ce288

[ACME] Do check for restart of Postfix and Dovecot service more thoroughly

Full commit hash
c8ce28817805d95ded2905f17f44af495a51b440
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
441
    while [[ "${POSTFIX_CERT_SERIAL}" == "${POSTFIX_CERT_SERIAL_NEW}" ]] || [[ "${DOVECOT_CERT_SERIAL}" == "${DOVECOT_CERT_SERIAL_NEW}" ]] || [[ ${#POSTFIX_CERT_SERIAL_NEW} -ne 36 ]] || [[ ${#DOVECOT_CERT_SERIAL_NEW} -ne 36 ]]; do
Open commit View diff
441 while [[ "${POSTFIX_CERT_SERIAL}" == "${POSTFIX_CERT_SERIAL_NEW}" ]] || [[ "${DOVECOT_CERT_SERIAL}" == "${DOVECOT_CERT_SERIAL_NEW}" ]] || [[ ${#POSTFIX_CERT_SERIAL_NEW} -ne 36 ]] || [[ ${#DOVECOT_CERT_SERIAL_NEW} -ne 36 ]]; do
same change c8ce288

[ACME] Do check for restart of Postfix and Dovecot service more thoroughly

Full commit hash
c8ce28817805d95ded2905f17f44af495a51b440
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
442
      log_f "Reloading or restarting services... (${RELOAD_LOOP_C})"
Open commit View diff
442 log_f "Reloading or restarting services... (${RELOAD_LOOP_C})"
same change c8ce288

[ACME] Do check for restart of Postfix and Dovecot service more thoroughly

Full commit hash
c8ce28817805d95ded2905f17f44af495a51b440
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
443
      RELOAD_LOOP_C=$((RELOAD_LOOP_C + 1))
Open commit View diff
443 RELOAD_LOOP_C=$((RELOAD_LOOP_C + 1))
same change c8ce288

[ACME] Do check for restart of Postfix and Dovecot service more thoroughly

Full commit hash
c8ce28817805d95ded2905f17f44af495a51b440
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
444
      CERT_AMOUNT_CHANGED=${CERT_AMOUNT_CHANGED} /srv/reload-configurations.sh
Open commit View diff
444 CERT_AMOUNT_CHANGED=${CERT_AMOUNT_CHANGED} /srv/reload-configurations.sh
same change c8ce288

[ACME] Do check for restart of Postfix and Dovecot service more thoroughly

Full commit hash
c8ce28817805d95ded2905f17f44af495a51b440
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
445
      log_f "Waiting for containers to settle..."
Open commit View diff
445 log_f "Waiting for containers to settle..."
same change c8ce288

[ACME] Do check for restart of Postfix and Dovecot service more thoroughly

Full commit hash
c8ce28817805d95ded2905f17f44af495a51b440
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
446
      sleep 10
Open commit View diff
446 sleep 10
same change c8ce288

[ACME] Do check for restart of Postfix and Dovecot service more thoroughly

Full commit hash
c8ce28817805d95ded2905f17f44af495a51b440
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
447
      until nc -z dovecot 143; do
Open commit View diff
447 until nc -z dovecot 143; do
same change c8ce288

[ACME] Do check for restart of Postfix and Dovecot service more thoroughly

Full commit hash
c8ce28817805d95ded2905f17f44af495a51b440
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
448
        sleep 1
Open commit View diff
448 sleep 1
same change c8ce288

[ACME] Do check for restart of Postfix and Dovecot service more thoroughly

Full commit hash
c8ce28817805d95ded2905f17f44af495a51b440
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
449
      done
Open commit View diff
449 done
same change c8ce288

[ACME] Do check for restart of Postfix and Dovecot service more thoroughly

Full commit hash
c8ce28817805d95ded2905f17f44af495a51b440
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
450
      until nc -z postfix 25; do
Open commit View diff
450 until nc -z postfix 25; do
same change c8ce288

[ACME] Do check for restart of Postfix and Dovecot service more thoroughly

Full commit hash
c8ce28817805d95ded2905f17f44af495a51b440
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
451
        sleep 1
Open commit View diff
451 sleep 1
same change c8ce288

[ACME] Do check for restart of Postfix and Dovecot service more thoroughly

Full commit hash
c8ce28817805d95ded2905f17f44af495a51b440
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
452
      done
Open commit View diff
452 done
same change c8ce288

[ACME] Do check for restart of Postfix and Dovecot service more thoroughly

Full commit hash
c8ce28817805d95ded2905f17f44af495a51b440
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
453
      POSTFIX_CERT_SERIAL_NEW="$(echo | openssl s_client -connect postfix:25 -starttls smtp 2>/dev/null | openssl x509 -inform pem -noout -serial | cut -d "=" -f 2)"
Open commit View diff
453 POSTFIX_CERT_SERIAL_NEW="$(echo | openssl s_client -connect postfix:25 -starttls smtp 2>/dev/null | openssl x509 -inform pem -noout -serial | cut -d "=" -f 2)"
same change c8ce288

[ACME] Do check for restart of Postfix and Dovecot service more thoroughly

Full commit hash
c8ce28817805d95ded2905f17f44af495a51b440
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
454
      DOVECOT_CERT_SERIAL_NEW="$(echo | openssl s_client -connect dovecot:143 -starttls imap 2>/dev/null | openssl x509 -inform pem -noout -serial | cut -d "=" -f 2)"
Open commit View diff
454 DOVECOT_CERT_SERIAL_NEW="$(echo | openssl s_client -connect dovecot:143 -starttls imap 2>/dev/null | openssl x509 -inform pem -noout -serial | cut -d "=" -f 2)"
same change c8ce288

[ACME] Do check for restart of Postfix and Dovecot service more thoroughly

Full commit hash
c8ce28817805d95ded2905f17f44af495a51b440
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
455
      if [[ ${RELOAD_LOOP_C} -gt 3 ]]; then
Open commit View diff
455 if [[ ${RELOAD_LOOP_C} -gt 3 ]]; then
same change c8ce288

[ACME] Do check for restart of Postfix and Dovecot service more thoroughly

Full commit hash
c8ce28817805d95ded2905f17f44af495a51b440
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
456
        log_f "Some services do return old end dates, something went wrong!"
Open commit View diff
456 log_f "Some services do return old end dates, something went wrong!"
same change c8ce288

[ACME] Do check for restart of Postfix and Dovecot service more thoroughly

Full commit hash
c8ce28817805d95ded2905f17f44af495a51b440
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
457
        ${REDIS_CMDLINE} SET ACME_FAIL_TIME "$(date +%s)"
Open commit View diff
457 ${REDIS_CMDLINE} SET ACME_FAIL_TIME "$(date +%s)"
same change c8ce288

[ACME] Do check for restart of Postfix and Dovecot service more thoroughly

Full commit hash
c8ce28817805d95ded2905f17f44af495a51b440
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
458
        break;
Open commit View diff
458 break;
same change c8ce288

[ACME] Do check for restart of Postfix and Dovecot service more thoroughly

Full commit hash
c8ce28817805d95ded2905f17f44af495a51b440
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
459
      fi
Open commit View diff
459 fi
same change c8ce288

[ACME] Do check for restart of Postfix and Dovecot service more thoroughly

Full commit hash
c8ce28817805d95ded2905f17f44af495a51b440
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
460
    done
Open commit View diff
460 done
andryyy over 7 years ago 37964d9

[ACME] Try to reload services after certificate changes instead of restarting

Full commit hash
37964d9dd1ffdef6ae572030e5467668f9d4bdb7
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
461
  fi
Open commit View diff
461 fi
same change 37964d9

[ACME] Try to reload services after certificate changes instead of restarting

Full commit hash
37964d9dd1ffdef6ae572030e5467668f9d4bdb7
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
462
Open commit View diff
462
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
463
  case "$CERT_ERRORS" in
Open commit View diff
463 case "$CERT_ERRORS" in
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
464
    0) # all successful
Open commit View diff
464 0) # all successful
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
465
      if [[ "${CERT_CHANGED}" == "1" ]]; then
Open commit View diff
465 if [[ "${CERT_CHANGED}" == "1" ]]; then
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
466
        if [[ "${CERT_AMOUNT_CHANGED}" == "1" ]]; then
Open commit View diff
466 if [[ "${CERT_AMOUNT_CHANGED}" == "1" ]]; then
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
467
          log_f "Certificates successfully requested and renewed where required, sleeping one day"
Open commit View diff
467 log_f "Certificates successfully requested and renewed where required, sleeping one day"
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
468
        else
Open commit View diff
468 else
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
469
          log_f "Certificates were successfully renewed where required, sleeping for another day."
Open commit View diff
469 log_f "Certificates were successfully renewed where required, sleeping for another day."
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
470
        fi
Open commit View diff
470 fi
andryyy over 7 years ago 9f2a6f1

Merge branch 'master' of https://github.com/mailcow/mailcow-dockerized

Full commit hash
9f2a6f13a5d3bc5cdcd1e61c458cd3989bc945b0
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
471
      else
Open commit View diff
471 else
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
472
        log_f "Certificates were successfully validated, no changes or renewals required, sleeping for another day."
Open commit View diff
472 log_f "Certificates were successfully validated, no changes or renewals required, sleeping for another day."
André almost 9 years ago a110e2e

[ACME] Fix detection of orphaned SANs and add tini

Full commit hash
a110e2ea0f126ac5bed59dad6d30a76b12d29a0a
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
473
      fi
Open commit View diff
473 fi
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
474
      sleep 1d
Open commit View diff
474 sleep 1d
André almost 9 years ago a110e2e

[ACME] Fix detection of orphaned SANs and add tini

Full commit hash
a110e2ea0f126ac5bed59dad6d30a76b12d29a0a
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
475
      ;;
Open commit View diff
475 ;;
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
476
    *) # non-zero
Open commit View diff
476 *) # non-zero
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
477
      log_f "Some errors occurred, retrying in 30 minutes..."
Open commit View diff
477 log_f "Some errors occurred, retrying in 30 minutes..."
andryyy over 6 years ago 1fb81f0

[ACME] Use redis master for write operations

Full commit hash
1fb81f05116f580924aa799e5b42e74a4803e323
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
478
      ${REDIS_CMDLINE} SET ACME_FAIL_TIME "$(date +%s)"
Open commit View diff
478 ${REDIS_CMDLINE} SET ACME_FAIL_TIME "$(date +%s)"
André almost 9 years ago a110e2e

[ACME] Fix detection of orphaned SANs and add tini

Full commit hash
a110e2ea0f126ac5bed59dad6d30a76b12d29a0a
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
479
      sleep 30m
Open commit View diff
479 sleep 30m
same change a110e2e

[ACME] Fix detection of orphaned SANs and add tini

Full commit hash
a110e2ea0f126ac5bed59dad6d30a76b12d29a0a
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
480
      exec $(readlink -f "$0")
Open commit View diff
480 exec $(readlink -f "$0")
same change a110e2e

[ACME] Fix detection of orphaned SANs and add tini

Full commit hash
a110e2ea0f126ac5bed59dad6d30a76b12d29a0a
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
481
      ;;
Open commit View diff
481 ;;
same change a110e2e

[ACME] Fix detection of orphaned SANs and add tini

Full commit hash
a110e2ea0f126ac5bed59dad6d30a76b12d29a0a
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
482
  esac
Open commit View diff
482 esac
andryyy about 9 years ago ef62f6b

Acme tool checks for valid autodiscover and autoconfig A records and skips non-existing names

Full commit hash
ef62f6b38315b8e8cea2741bd2642b6b17cd0375
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
483
Open commit View diff
483
same change ef62f6b

Acme tool checks for valid autodiscover and autoconfig A records and skips non-existing names

Full commit hash
ef62f6b38315b8e8cea2741bd2642b6b17cd0375
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
484
done
Open commit View diff
484 done