mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 17:04:39 +03:00
mox!
This commit is contained in:
2
testdata/integration/Dockerfile.dns
vendored
Normal file
2
testdata/integration/Dockerfile.dns
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
FROM alpine:3.17
|
||||
RUN apk add unbound bind-tools mailx
|
4
testdata/integration/Dockerfile.moxmail
vendored
Normal file
4
testdata/integration/Dockerfile.moxmail
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
FROM golang:1-alpine AS build
|
||||
WORKDIR /mox
|
||||
RUN apk add make bind-tools bash
|
||||
env GOPROXY=off
|
2
testdata/integration/Dockerfile.postfix
vendored
Normal file
2
testdata/integration/Dockerfile.postfix
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
FROM alpine:3.17
|
||||
RUN apk add postfix bind-tools mailx
|
5
testdata/integration/dkim/mox1dkim0-key.pem
vendored
Normal file
5
testdata/integration/dkim/mox1dkim0-key.pem
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
-----BEGIN PRIVATE KEY-----
|
||||
Note: ed25519 private key for use with DKIM, generated by mox
|
||||
|
||||
MC4CAQAwBQYDK2VwBCIEIAVskzmutHg8DvS8jaxYMHuoV1z9tNZmSC8+iI84WlTm
|
||||
-----END PRIVATE KEY-----
|
5
testdata/integration/dkim/mox2dkim0-key.pem
vendored
Normal file
5
testdata/integration/dkim/mox2dkim0-key.pem
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
-----BEGIN PRIVATE KEY-----
|
||||
Note: ed25519 private key for use with DKIM, generated by mox
|
||||
|
||||
MC4CAQAwBQYDK2VwBCIEINAds0VrnXkd/cUnAT4eQDKQoViHC1q6dBPEqG8SJxnz
|
||||
-----END PRIVATE KEY-----
|
5
testdata/integration/dkim/mox3dkim0-key.pem
vendored
Normal file
5
testdata/integration/dkim/mox3dkim0-key.pem
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
-----BEGIN PRIVATE KEY-----
|
||||
Note: ed25519 private key for use with DKIM, generated by mox
|
||||
|
||||
MC4CAQAwBQYDK2VwBCIEIPXYWvzg39zC8pkPzYZbTKCAk4TjIICZzaklMrOyADW+
|
||||
-----END PRIVATE KEY-----
|
5
testdata/integration/dkim/postfix-key.pem
vendored
Normal file
5
testdata/integration/dkim/postfix-key.pem
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
-----BEGIN PRIVATE KEY-----
|
||||
Note: ed25519 private key for use with DKIM, generated by mox
|
||||
|
||||
MC4CAQAwBQYDK2VwBCIEIOjHYD/iIvN8F46H6kk/km7g4FNfS0ZwV3dRDGrtMLb8
|
||||
-----END PRIVATE KEY-----
|
9
testdata/integration/dkim/readme.txt
vendored
Normal file
9
testdata/integration/dkim/readme.txt
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
These files are generated with:
|
||||
|
||||
mox dkim gened25519 >$file
|
||||
|
||||
And the corresponding DNS entry is:
|
||||
|
||||
mox dkim txt <$file
|
||||
|
||||
Which is added to ../example.zone
|
83
testdata/integration/domains.conf
vendored
Normal file
83
testdata/integration/domains.conf
vendored
Normal file
@ -0,0 +1,83 @@
|
||||
Domains:
|
||||
mox1.example:
|
||||
LocalpartCaseSensitive: false
|
||||
LocalpartCatchallSeparator: +
|
||||
mox2.example:
|
||||
LocalpartCaseSensitive: false
|
||||
LocalpartCatchallSeparator: +
|
||||
DKIM:
|
||||
Selectors:
|
||||
mox2dkim0:
|
||||
Hash: sha256
|
||||
DontSealHeaders: false
|
||||
Headers:
|
||||
- From
|
||||
- To
|
||||
- Subject
|
||||
PrivateKeyFile: dkim/mox2dkim0-key.pem
|
||||
Sign:
|
||||
- mox2dkim0
|
||||
# todo: DMARC:
|
||||
# todo: MTASTS:
|
||||
# todo: TLSRPT:
|
||||
mox3.example:
|
||||
LocalpartCaseSensitive: false
|
||||
LocalpartCatchallSeparator: +
|
||||
DKIM:
|
||||
Selectors:
|
||||
mox3dkim0:
|
||||
Hash: sha256
|
||||
DontSealHeaders: false
|
||||
Headers:
|
||||
- From
|
||||
- To
|
||||
- Subject
|
||||
PrivateKeyFile: dkim/mox3dkim0-key.pem
|
||||
Sign:
|
||||
- mox3dkim0
|
||||
Accounts:
|
||||
moxtest1:
|
||||
Domain: mox1.example
|
||||
Destinations:
|
||||
moxtest1: nil
|
||||
JunkFilter:
|
||||
Threshold: 0.9999
|
||||
Params:
|
||||
Onegrams: true
|
||||
Twograms: true
|
||||
Threegrams: false
|
||||
MaxPower: .01
|
||||
TopWords: 10
|
||||
IgnoreWords: .1
|
||||
RareWords: 1
|
||||
moxtest2:
|
||||
Domain: mox2.example
|
||||
Destinations:
|
||||
moxtest2: nil
|
||||
JunkFilter:
|
||||
Threshold: 0.9999
|
||||
Params:
|
||||
Onegrams: true
|
||||
Twograms: true
|
||||
Threegrams: false
|
||||
MaxPower: .01
|
||||
TopWords: 10
|
||||
IgnoreWords: .1
|
||||
RareWords: 1
|
||||
moxtest3:
|
||||
Domain: mox3.example
|
||||
Destinations:
|
||||
moxtest3: nil
|
||||
SubjectPass:
|
||||
Period: 1h
|
||||
RejectsMailbox: rejects
|
||||
JunkFilter:
|
||||
Threshold: 0.9999
|
||||
Params:
|
||||
Onegrams: true
|
||||
Twograms: true
|
||||
Threegrams: false
|
||||
MaxPower: .01
|
||||
TopWords: 10
|
||||
IgnoreWords: .1
|
||||
RareWords: 1
|
32
testdata/integration/example.zone
vendored
Normal file
32
testdata/integration/example.zone
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
$ORIGIN example.
|
||||
$TTL 5m
|
||||
|
||||
@ IN SOA dns.example. webmaster.example. (1 0m 0m 0m 5m)
|
||||
|
||||
@ NS dns.example.
|
||||
|
||||
moxmail1.mox1 IN A 172.28.1.10
|
||||
moxmail2.mox2 IN A 172.28.2.10
|
||||
moxmail3.mox3 IN A 172.28.3.10
|
||||
postfixmail.postfix IN A 172.28.1.20
|
||||
dns IN A 172.28.1.30
|
||||
|
||||
mox1 MX 10 moxmail1.mox1.example.
|
||||
mox2 MX 10 moxmail2.mox2.example.
|
||||
mox3 MX 10 moxmail3.mox3.example.
|
||||
postfix MX 10 postfixmail.postfix.example.
|
||||
|
||||
mox1dkim0._domainkey.mox1 IN TXT "v=DKIM1;h=sha256;t=s;k=ed25519;p=nNs/2BSurEunCKJjfE61p0r2C4OMv/S8IDU/p7nL91c="
|
||||
mox2dkim0._domainkey.mox2 IN TXT "v=DKIM1;h=sha256;t=s;k=ed25519;p=gVAOjqEeNS2e6jjGX1c61zhCOPXMcX6o5If/AVI5STk="
|
||||
mox3dkim0._domainkey.mox3 IN TXT "v=DKIM1;h=sha256;t=s;k=ed25519;p=vzv50BpMhk6moYWq9jBNR+oHmlZcL2LARgL9144nJfk="
|
||||
postfixdkim0._domainkey.postfix IN TXT "v=DKIM1;h=sha256;t=s;k=ed25519;p=a4IsBTuMsSQjU+xVyx8KEd8eObis4FrCiV72OaEkvDY="
|
||||
|
||||
mox1 IN TXT "v=spf1 ip4:172.28.1.10 ip4:172.28.1.20 -all"
|
||||
mox2 IN TXT "v=spf1 ip4:172.28.2.10 ip4:172.28.3.10 -all" ; 172.28.3.10 because that's where connections from mox to mox3 are going from. perhaps linux prefers to use same source ip if possible?
|
||||
mox3 IN TXT "v=spf1 ip4:172.28.3.10 -all"
|
||||
postfix IN TXT "v=spf1 ip4:172.28.1.20 -all"
|
||||
|
||||
_dmarc.mox1 IN TXT "v=DMARC1; p=reject; rua=mailto:dmarc-reports@mox1.example"
|
||||
_dmarc.mox2 IN TXT "v=DMARC1; p=reject; rua=mailto:dmarc-reports@mox2.example"
|
||||
_dmarc.mox3 IN TXT "v=DMARC1; p=reject; rua=mailto:dmarc-reports@mox3.example"
|
||||
; _dmarc.mox4 IN TXT "v=DMARC1; p=reject; rua=mailto:dmarc-reports@postfix.example"
|
66
testdata/integration/mox.conf
vendored
Normal file
66
testdata/integration/mox.conf
vendored
Normal file
@ -0,0 +1,66 @@
|
||||
DataDir: ./run
|
||||
LogLevel: info
|
||||
Hostname: moxmail1.mox1.example
|
||||
TLS:
|
||||
CA:
|
||||
CertFiles:
|
||||
- tls/ca.pem
|
||||
Listeners:
|
||||
mox1:
|
||||
IPs:
|
||||
- 172.28.1.10
|
||||
Hostname: moxmail1.mox1.example
|
||||
SMTP:
|
||||
Enabled: true
|
||||
NoSTARTTLS: true
|
||||
Submission:
|
||||
Enabled: true
|
||||
NoRequireSTARTTLS: true
|
||||
mox2:
|
||||
IPs:
|
||||
- 172.28.2.10
|
||||
Hostname: moxmail2.mox2.example
|
||||
TLS:
|
||||
KeyCerts:
|
||||
-
|
||||
CertFile: tls/moxmail2.pem
|
||||
KeyFile: tls/moxmail2-key.pem
|
||||
SMTP:
|
||||
Enabled: true
|
||||
Submission:
|
||||
Enabled: true
|
||||
NoRequireSTARTTLS: true
|
||||
Submissions:
|
||||
Enabled: true
|
||||
IMAP:
|
||||
Enabled: true
|
||||
IMAPS:
|
||||
Enabled: true
|
||||
AdminHTTP:
|
||||
Enabled: true
|
||||
AdminHTTPS:
|
||||
Enabled: true
|
||||
MetricsHTTP:
|
||||
Enabled: true
|
||||
AutoconfigHTTPS:
|
||||
Enabled: true
|
||||
MTASTSHTTPS:
|
||||
Enabled: true
|
||||
mox3:
|
||||
IPs:
|
||||
- 172.28.3.10
|
||||
Hostname: moxmail3.mox3.example
|
||||
TLS:
|
||||
KeyCerts:
|
||||
-
|
||||
CertFile: tls/moxmail3.pem
|
||||
KeyFile: tls/moxmail3-key.pem
|
||||
SMTP:
|
||||
Enabled: true
|
||||
Submission:
|
||||
Enabled: true
|
||||
NoRequireSTARTTLS: true
|
||||
|
||||
Postmaster:
|
||||
Account: moxtest1
|
||||
Mailbox: postmaster
|
1
testdata/integration/resolv.conf
vendored
Normal file
1
testdata/integration/resolv.conf
vendored
Normal file
@ -0,0 +1 @@
|
||||
nameserver 172.28.1.30
|
10
testdata/integration/reverse.zone
vendored
Normal file
10
testdata/integration/reverse.zone
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
$ORIGIN 28.172.in-addr.arpa.
|
||||
$TTL 5m
|
||||
|
||||
@ IN SOA dns.example. hostmaster.example. (1 0m 0m 0m 5m)
|
||||
|
||||
10.1 IN PTR moxmail1.mox1.example.
|
||||
10.2 IN PTR moxmail2.mox2.example.
|
||||
10.3 IN PTR moxmail3.mox3.example.
|
||||
20.1 IN PTR postfixmail.postfix.example.
|
||||
30.1 IN PTR dns.example.
|
6
testdata/integration/tls/Makefile
vendored
Normal file
6
testdata/integration/tls/Makefile
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
default:
|
||||
cfssl genkey -initca cfssl-ca-csr.json | cfssljson -bare ca
|
||||
echo '{}' | cfssl gencert -ca ca.pem -ca-key ca-key.pem -hostname moxmail1.mox1.example - | cfssljson -bare moxmail1
|
||||
echo '{}' | cfssl gencert -ca ca.pem -ca-key ca-key.pem -hostname moxmail2.mox2.example - | cfssljson -bare moxmail2
|
||||
echo '{}' | cfssl gencert -ca ca.pem -ca-key ca-key.pem -hostname moxmail3.mox3.example - | cfssljson -bare moxmail3
|
||||
echo '{}' | cfssl gencert -ca ca.pem -ca-key ca-key.pem -hostname postfixmail.postfix.example - | cfssljson -bare postfixmail
|
5
testdata/integration/tls/ca-key.pem
vendored
Normal file
5
testdata/integration/tls/ca-key.pem
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
-----BEGIN EC PRIVATE KEY-----
|
||||
MHcCAQEEIN97sFIQvlyDdhL+pOAef4m+N8Zfd2pnEerVO6Q/6lZZoAoGCCqGSM49
|
||||
AwEHoUQDQgAE7tPhHDjRBEA9mx7sDr+XJwWncOzgP/mL9ytOP3RkltySAlhai3DG
|
||||
ew9zHAZGQXy/a7X9OH345ZRjbU8HYXwosQ==
|
||||
-----END EC PRIVATE KEY-----
|
7
testdata/integration/tls/ca.csr
vendored
Normal file
7
testdata/integration/tls/ca.csr
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
-----BEGIN CERTIFICATE REQUEST-----
|
||||
MIHRMHgCAQAwFjEUMBIGA1UEAxMLbW94IHRlc3QgY2EwWTATBgcqhkjOPQIBBggq
|
||||
hkjOPQMBBwNCAATu0+EcONEEQD2bHuwOv5cnBadw7OA/+Yv3K04/dGSW3JICWFqL
|
||||
cMZ7D3McBkZBfL9rtf04ffjllGNtTwdhfCixoAAwCgYIKoZIzj0EAwIDSQAwRgIh
|
||||
AKunSJ1xcXiLcHLfGAM6bUvHfENwrvWzYaQN+5ykggbBAiEA0s5VRd7H9+2fjcI8
|
||||
CzIa97rwFKeTVowcRdaPg63m+ao=
|
||||
-----END CERTIFICATE REQUEST-----
|
10
testdata/integration/tls/ca.pem
vendored
Normal file
10
testdata/integration/tls/ca.pem
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIIBbzCCARagAwIBAgIUEMP01440qIjpWLU0HRVeJgC0LVEwCgYIKoZIzj0EAwIw
|
||||
FjEUMBIGA1UEAxMLbW94IHRlc3QgY2EwHhcNMjIwNzE2MTAyMTAwWhcNMjcwNzE1
|
||||
MTAyMTAwWjAWMRQwEgYDVQQDEwttb3ggdGVzdCBjYTBZMBMGByqGSM49AgEGCCqG
|
||||
SM49AwEHA0IABO7T4Rw40QRAPZse7A6/lycFp3Ds4D/5i/crTj90ZJbckgJYWotw
|
||||
xnsPcxwGRkF8v2u1/Th9+OWUY21PB2F8KLGjQjBAMA4GA1UdDwEB/wQEAwIBBjAP
|
||||
BgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBRR0sv3suD7vFwQZGy0rbNvqrI0+zAK
|
||||
BggqhkjOPQQDAgNHADBEAiB0PgtHNkdHHRAFessYbdDZ9RviDFP57WEHnIn7kNcS
|
||||
0QIgdfPb0TOlpOfF3HcUu0F0rXZzzV1lLzKhbosaJF4WH6M=
|
||||
-----END CERTIFICATE-----
|
7
testdata/integration/tls/cfssl-ca-csr.json
vendored
Normal file
7
testdata/integration/tls/cfssl-ca-csr.json
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"CN": "mox test ca",
|
||||
"key": {
|
||||
"algo": "ecdsa",
|
||||
"size": 256
|
||||
}
|
||||
}
|
5
testdata/integration/tls/moxmail1-key.pem
vendored
Normal file
5
testdata/integration/tls/moxmail1-key.pem
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
-----BEGIN EC PRIVATE KEY-----
|
||||
MHcCAQEEIMCay45qmjn2bA3kPGYugT2yZDeDDfFjvGCYK/JTIYW4oAoGCCqGSM49
|
||||
AwEHoUQDQgAERRAPZyVWeoVqJyo2+OxWjo9oFRy/NGjDvcRjstZMFIJCn6DQUA+i
|
||||
Yf/dn1wPqv50UIIKOL1LxykuwRt8OYya/w==
|
||||
-----END EC PRIVATE KEY-----
|
8
testdata/integration/tls/moxmail1.csr
vendored
Normal file
8
testdata/integration/tls/moxmail1.csr
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
-----BEGIN CERTIFICATE REQUEST-----
|
||||
MIHvMIGVAgEAMAAwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAARFEA9nJVZ6hWon
|
||||
Kjb47FaOj2gVHL80aMO9xGOy1kwUgkKfoNBQD6Jh/92fXA+q/nRQggo4vUvHKS7B
|
||||
G3w5jJr/oDMwMQYJKoZIhvcNAQkOMSQwIjAgBgNVHREEGTAXghVtb3htYWlsMS5t
|
||||
b3gxLmV4YW1wbGUwCgYIKoZIzj0EAwIDSQAwRgIhAPyDmstt5ukiS81O0uitofi7
|
||||
UYd/4qBJSyT8HQYnTON/AiEAw5GGRwkhu1aQv5vEOsgwSKvxVPKPKEVxY26Isfzv
|
||||
D5M=
|
||||
-----END CERTIFICATE REQUEST-----
|
12
testdata/integration/tls/moxmail1.pem
vendored
Normal file
12
testdata/integration/tls/moxmail1.pem
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIIBvjCCAWSgAwIBAgIUJLRcyx8Hd2aaLBaeR/rIg09mH1swCgYIKoZIzj0EAwIw
|
||||
FjEUMBIGA1UEAxMLbW94IHRlc3QgY2EwHhcNMjIwNzE2MTAyMTAwWhcNMjMwNzE2
|
||||
MTAyMTAwWjAAMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAERRAPZyVWeoVqJyo2
|
||||
+OxWjo9oFRy/NGjDvcRjstZMFIJCn6DQUA+iYf/dn1wPqv50UIIKOL1LxykuwRt8
|
||||
OYya/6OBpTCBojAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEG
|
||||
CCsGAQUFBwMCMAwGA1UdEwEB/wQCMAAwHQYDVR0OBBYEFCW6u2WYBTHKIuzzax/N
|
||||
OqbttiXqMB8GA1UdIwQYMBaAFFHSy/ey4Pu8XBBkbLSts2+qsjT7MCMGA1UdEQEB
|
||||
/wQZMBeCFW1veG1haWwxLm1veDEuZXhhbXBsZTAKBggqhkjOPQQDAgNIADBFAiEA
|
||||
9/3OrGeip/sUL+aKlFCicBJqD7B4jR+wFCVffwU3RoUCIFSIvYKafCjW9U1c+6Ua
|
||||
7wodN2znLa/oAdIW3KoF/hsO
|
||||
-----END CERTIFICATE-----
|
5
testdata/integration/tls/moxmail2-key.pem
vendored
Normal file
5
testdata/integration/tls/moxmail2-key.pem
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
-----BEGIN EC PRIVATE KEY-----
|
||||
MHcCAQEEIH8kxf1fX7q/v+dFi4Fkc18Dxp3Hy9LOh+TZOY7nRV/BoAoGCCqGSM49
|
||||
AwEHoUQDQgAEKwVAXfCUjaV74FjXYg7dt1/7uizAoGd689doLTDk1BZNb1vEY7BV
|
||||
8KCCaTC6alltxtd1DSvG17xl3WvsXaNRXA==
|
||||
-----END EC PRIVATE KEY-----
|
8
testdata/integration/tls/moxmail2.csr
vendored
Normal file
8
testdata/integration/tls/moxmail2.csr
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
-----BEGIN CERTIFICATE REQUEST-----
|
||||
MIHvMIGVAgEAMAAwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQrBUBd8JSNpXvg
|
||||
WNdiDt23X/u6LMCgZ3rz12gtMOTUFk1vW8RjsFXwoIJpMLpqWW3G13UNK8bXvGXd
|
||||
a+xdo1FcoDMwMQYJKoZIhvcNAQkOMSQwIjAgBgNVHREEGTAXghVtb3htYWlsMi5t
|
||||
b3gyLmV4YW1wbGUwCgYIKoZIzj0EAwIDSQAwRgIhANm6nfTakv+oPR/0Z+BgAB7k
|
||||
mt7UbguZMhkZlAw/45UVAiEAsGPIdA3zBCZMHps/7W1UN1nLWpx8OXXREDMWPumX
|
||||
Je8=
|
||||
-----END CERTIFICATE REQUEST-----
|
12
testdata/integration/tls/moxmail2.pem
vendored
Normal file
12
testdata/integration/tls/moxmail2.pem
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIIBvzCCAWSgAwIBAgIUJllD6/XKNEF58y5UXkI8w3re+SAwCgYIKoZIzj0EAwIw
|
||||
FjEUMBIGA1UEAxMLbW94IHRlc3QgY2EwHhcNMjIwNzE2MTAyMTAwWhcNMjMwNzE2
|
||||
MTAyMTAwWjAAMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEKwVAXfCUjaV74FjX
|
||||
Yg7dt1/7uizAoGd689doLTDk1BZNb1vEY7BV8KCCaTC6alltxtd1DSvG17xl3Wvs
|
||||
XaNRXKOBpTCBojAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEG
|
||||
CCsGAQUFBwMCMAwGA1UdEwEB/wQCMAAwHQYDVR0OBBYEFGYtrzw5pf2uDj4kUvlj
|
||||
yPtdl6FMMB8GA1UdIwQYMBaAFFHSy/ey4Pu8XBBkbLSts2+qsjT7MCMGA1UdEQEB
|
||||
/wQZMBeCFW1veG1haWwyLm1veDIuZXhhbXBsZTAKBggqhkjOPQQDAgNJADBGAiEA
|
||||
7YsZE1oe1/p8PslI2pfs9QltAZfyGoYOKO37Lubu1/0CIQDiZ9StnIXkpGLubUlR
|
||||
jYFYIyygmAVYZSAS1MLvr5u6Tw==
|
||||
-----END CERTIFICATE-----
|
5
testdata/integration/tls/moxmail3-key.pem
vendored
Normal file
5
testdata/integration/tls/moxmail3-key.pem
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
-----BEGIN EC PRIVATE KEY-----
|
||||
MHcCAQEEILnvFp9ddZFt6gOxamZuyZqn6BiWlYIjJMxv2aIQrVEJoAoGCCqGSM49
|
||||
AwEHoUQDQgAEFvGEz2ldoB343IbseoOGsnjrq7yV3nYYcnu6L4kbk45pHCxGbGa0
|
||||
vR1vtWojURukkpG7gPR3HsSpyVv6ZHolow==
|
||||
-----END EC PRIVATE KEY-----
|
8
testdata/integration/tls/moxmail3.csr
vendored
Normal file
8
testdata/integration/tls/moxmail3.csr
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
-----BEGIN CERTIFICATE REQUEST-----
|
||||
MIHuMIGVAgEAMAAwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQW8YTPaV2gHfjc
|
||||
hux6g4ayeOurvJXedhhye7oviRuTjmkcLEZsZrS9HW+1aiNRG6SSkbuA9HcexKnJ
|
||||
W/pkeiWjoDMwMQYJKoZIhvcNAQkOMSQwIjAgBgNVHREEGTAXghVtb3htYWlsMy5t
|
||||
b3gzLmV4YW1wbGUwCgYIKoZIzj0EAwIDSAAwRQIgE/PSrIEJDKX7de96b4K0Vk4p
|
||||
pvrHf6X50EUnjf6y2hYCIQDEr7Im+mpap4OcXTUVV8j3IUpJhw3UqzEXNzC0xk5+
|
||||
IA==
|
||||
-----END CERTIFICATE REQUEST-----
|
12
testdata/integration/tls/moxmail3.pem
vendored
Normal file
12
testdata/integration/tls/moxmail3.pem
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIIBvjCCAWSgAwIBAgIUfYDKj2P7yS//08rg8YXJh0P4jXowCgYIKoZIzj0EAwIw
|
||||
FjEUMBIGA1UEAxMLbW94IHRlc3QgY2EwHhcNMjIwNzE2MTAyMTAwWhcNMjMwNzE2
|
||||
MTAyMTAwWjAAMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEFvGEz2ldoB343Ibs
|
||||
eoOGsnjrq7yV3nYYcnu6L4kbk45pHCxGbGa0vR1vtWojURukkpG7gPR3HsSpyVv6
|
||||
ZHolo6OBpTCBojAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEG
|
||||
CCsGAQUFBwMCMAwGA1UdEwEB/wQCMAAwHQYDVR0OBBYEFCGg1KDcMlMm6KsjuWW6
|
||||
FusCLoqEMB8GA1UdIwQYMBaAFFHSy/ey4Pu8XBBkbLSts2+qsjT7MCMGA1UdEQEB
|
||||
/wQZMBeCFW1veG1haWwzLm1veDMuZXhhbXBsZTAKBggqhkjOPQQDAgNIADBFAiEA
|
||||
6BDw+F8j74ly6FJEtzcHuphuKbVTUCz+QlX00QnyhgICICFy3luHpEPDkXAgaWwz
|
||||
ZYUcDL4UJTAIyOv9NJ1v7Vl1
|
||||
-----END CERTIFICATE-----
|
5
testdata/integration/tls/postfixmail-key.pem
vendored
Normal file
5
testdata/integration/tls/postfixmail-key.pem
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
-----BEGIN EC PRIVATE KEY-----
|
||||
MHcCAQEEIBeCaoSdSuIBd7W9Xy57nO73JUxBe5b5a/XFwKl8CAGKoAoGCCqGSM49
|
||||
AwEHoUQDQgAEoqNvotlvH19KiTPxW20F8cptN9JygjLfiTTdHW99dmGYNXLHo5BU
|
||||
V5qJHYfJFZKSAlDnaCmsnKp3PoZOwpYEqA==
|
||||
-----END EC PRIVATE KEY-----
|
8
testdata/integration/tls/postfixmail.csr
vendored
Normal file
8
testdata/integration/tls/postfixmail.csr
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
-----BEGIN CERTIFICATE REQUEST-----
|
||||
MIHzMIGbAgEAMAAwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAASio2+i2W8fX0qJ
|
||||
M/FbbQXxym030nKCMt+JNN0db312YZg1csejkFRXmokdh8kVkpICUOdoKaycqnc+
|
||||
hk7ClgSooDkwNwYJKoZIhvcNAQkOMSowKDAmBgNVHREEHzAdghtwb3N0Zml4bWFp
|
||||
bC5wb3N0Zml4LmV4YW1wbGUwCgYIKoZIzj0EAwIDRwAwRAIgEWB2wVEam2qq/cwZ
|
||||
JL35+Wg/cL15aA+WQW86kaA8D5MCIFxH3MfVMnPtueIHe7YKvPLT+yA5Svm5UbKq
|
||||
QGSLk4O1
|
||||
-----END CERTIFICATE REQUEST-----
|
12
testdata/integration/tls/postfixmail.pem
vendored
Normal file
12
testdata/integration/tls/postfixmail.pem
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIIBxTCCAWqgAwIBAgIUYoJspZbvWHZRn9O5nxAL3iT+UvgwCgYIKoZIzj0EAwIw
|
||||
FjEUMBIGA1UEAxMLbW94IHRlc3QgY2EwHhcNMjIwNzE2MTAyMTAwWhcNMjMwNzE2
|
||||
MTAyMTAwWjAAMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEoqNvotlvH19KiTPx
|
||||
W20F8cptN9JygjLfiTTdHW99dmGYNXLHo5BUV5qJHYfJFZKSAlDnaCmsnKp3PoZO
|
||||
wpYEqKOBqzCBqDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEG
|
||||
CCsGAQUFBwMCMAwGA1UdEwEB/wQCMAAwHQYDVR0OBBYEFIE2NgvzsLPl6qP5gtIE
|
||||
mBSFgE8hMB8GA1UdIwQYMBaAFFHSy/ey4Pu8XBBkbLSts2+qsjT7MCkGA1UdEQEB
|
||||
/wQfMB2CG3Bvc3RmaXhtYWlsLnBvc3RmaXguZXhhbXBsZTAKBggqhkjOPQQDAgNJ
|
||||
ADBGAiEAy0Tem3hHoBB2Ypms9Zkvzk+8NBfezcAqub0uuhazHmkCIQC5XToV12Vd
|
||||
llBpYGmEg8YGybJxveT+pgGRcTYOJv0v/Q==
|
||||
-----END CERTIFICATE-----
|
12
testdata/integration/tls/readme.txt
vendored
Normal file
12
testdata/integration/tls/readme.txt
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
For TLS, keys are generated using https://github.com/cloudflare/cfssl
|
||||
These private keys are published online, don't use them for anything other than local testing.
|
||||
|
||||
Commands:
|
||||
|
||||
# Generate CA
|
||||
cfssl genkey -initca cfssl-ca-csr.json | cfssljson -bare ca
|
||||
|
||||
echo '{}' | cfssl gencert -ca ca.pem -ca-key ca-key.pem -hostname moxmail1.mox1.example - | cfssljson -bare moxmail1
|
||||
echo '{}' | cfssl gencert -ca ca.pem -ca-key ca-key.pem -hostname moxmail2.mox2.example - | cfssljson -bare moxmail2
|
||||
echo '{}' | cfssl gencert -ca ca.pem -ca-key ca-key.pem -hostname moxmail3.mox3.example - | cfssljson -bare moxmail3
|
||||
echo '{}' | cfssl gencert -ca ca.pem -ca-key ca-key.pem -hostname postfixmail.postfix.example - | cfssljson -bare postfixmail
|
15
testdata/integration/unbound.conf
vendored
Normal file
15
testdata/integration/unbound.conf
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
server:
|
||||
interface: 172.28.1.30
|
||||
access-control: 0.0.0.0/0 allow
|
||||
logfile: /dev/stdout
|
||||
use-syslog: no
|
||||
domain-insecure: "example"
|
||||
local-zone: "28.172.in-addr.arpa." nodefault
|
||||
|
||||
auth-zone:
|
||||
name: "example"
|
||||
zonefile: "/etc/unbound/example.zone"
|
||||
|
||||
auth-zone:
|
||||
name: "28.172.in-addr.arpa"
|
||||
zonefile: "/etc/unbound/reverse.zone"
|
Reference in New Issue
Block a user