summaryrefslogtreecommitdiffstats
path: root/opendkim
diff options
context:
space:
mode:
authorGeorg2021-10-24 23:43:37 +0200
committerGeorg2021-10-24 23:43:37 +0200
commit8930fb602e13610213853ffb5254772ceaf4d259 (patch)
tree3f2e27405a01b64f93d3363168543de3737b02db /opendkim
parent98fa66b5ad13c8f203fcfe40d42240417951f218 (diff)
downloademail-8930fb602e13610213853ffb5254772ceaf4d259.tar.gz
email-8930fb602e13610213853ffb5254772ceaf4d259.tar.bz2
email-8930fb602e13610213853ffb5254772ceaf4d259.zip
Init Modoboa + OpenDKIM-DockerHEADmaster
Signed-off-by: Georg <georg@lysergic.dev>
Diffstat (limited to 'opendkim')
-rw-r--r--opendkim/OpenDKIM-Docker/Dockerfile53
-rw-r--r--opendkim/OpenDKIM-Docker/opendkim.conf9
-rw-r--r--opendkim/OpenDKIM-Docker/sources/2.11.0-Beta2.tar.gzbin0 -> 792991 bytes
-rw-r--r--opendkim/OpenDKIM-Docker/sources/opendbx-1.4.6.tar.gzbin0 -> 587514 bytes
-rw-r--r--opendkim/OpenDKIM-Docker/syscid-ca.crt32
5 files changed, 94 insertions, 0 deletions
diff --git a/opendkim/OpenDKIM-Docker/Dockerfile b/opendkim/OpenDKIM-Docker/Dockerfile
new file mode 100644
index 0000000..9d48332
--- /dev/null
+++ b/opendkim/OpenDKIM-Docker/Dockerfile
@@ -0,0 +1,53 @@
+FROM alpine:3.14
+
+COPY sources/* /opt/OpenDKIM-Docker/
+COPY opendkim.conf /etc/opendkim/opendkim.conf
+ADD syscid-ca.crt /usr/local/share/ca-certificates/syscid.crt
+
+
+RUN apk add --no-cache \
+ alpine-sdk \
+ ca-certificates \
+ curl \
+ automake \
+ autoconf \
+ db-dev \
+ libtool \
+ mariadb-dev \
+ readline-dev \
+ gettext \
+ && cd /opt/OpenDKIM-Docker \
+ && tar xzf opendbx-1.4.6.tar.gz \
+ && cd opendbx-1.4.6/ \
+ && CPPFLAGS="-I/usr/include/mysql" ./configure --with-backends="mysql" \
+ && make -j4 \
+ && make install
+
+RUN apk add --no-cache \
+ openssl-dev \
+ libmilter-dev \
+ && cd /opt/OpenDKIM-Docker/ \
+ && tar xzf 2.11.0-Beta2.tar.gz \
+ && cd OpenDKIM-2.11.0-Beta2 \
+ && autoreconf -vif \
+ && CPPFLAGS="-I/usr/include/openssl" ./configure \
+ --sysconfdir=/etc/opendkim \
+ --with-odbx \
+ --with-openssl \
+ --with-sql-backend \
+ && make -j4 \
+ && make install
+
+RUN mkdir /run/opendkim \
+ mkdir /var/lib/opendkim \
+ && addgroup -S opendkim && adduser -S opendkim -h /var/lib/opendkim -G opendkim \
+ && chown opendkim:opendkim /run/opendkim \
+ && chown opendkim:opendkim /var/lib/opendkim \
+ && chown opendkim:opendkim /etc/opendkim
+
+RUN update-ca-certificates
+
+EXPOSE 8960
+
+ENTRYPOINT ["/usr/local/sbin/opendkim"]
+CMD ["-f", "-v", "-x", "/etc/opendkim/opendkim.conf"]
diff --git a/opendkim/OpenDKIM-Docker/opendkim.conf b/opendkim/OpenDKIM-Docker/opendkim.conf
new file mode 100644
index 0000000..f8a7ec2
--- /dev/null
+++ b/opendkim/OpenDKIM-Docker/opendkim.conf
@@ -0,0 +1,9 @@
+KeyTable dsn:mysql://$dbuser:$dbsec@$dbhost/$db/table=dkim?keycol=id?datacol=domain_name,selector,private_key_path
+PidFile /run/opendkim/opendkim.pid
+Selector default
+SigningTable dsn:mysql://$dbuser:$dbsec@$dbhost/$db/table=dkim?keycol=domain_name?datacol=id
+Socket local:/run/opendkim/opendkim.sock
+Socket inet:8960@127.0.0.1
+Syslog Yes
+UMask 002
+UserID opendkim:opendkim
diff --git a/opendkim/OpenDKIM-Docker/sources/2.11.0-Beta2.tar.gz b/opendkim/OpenDKIM-Docker/sources/2.11.0-Beta2.tar.gz
new file mode 100644
index 0000000..0575267
--- /dev/null
+++ b/opendkim/OpenDKIM-Docker/sources/2.11.0-Beta2.tar.gz
Binary files differ
diff --git a/opendkim/OpenDKIM-Docker/sources/opendbx-1.4.6.tar.gz b/opendkim/OpenDKIM-Docker/sources/opendbx-1.4.6.tar.gz
new file mode 100644
index 0000000..ffc4eb4
--- /dev/null
+++ b/opendkim/OpenDKIM-Docker/sources/opendbx-1.4.6.tar.gz
Binary files differ
diff --git a/opendkim/OpenDKIM-Docker/syscid-ca.crt b/opendkim/OpenDKIM-Docker/syscid-ca.crt
new file mode 100644
index 0000000..3ac52fa
--- /dev/null
+++ b/opendkim/OpenDKIM-Docker/syscid-ca.crt
@@ -0,0 +1,32 @@
+-----BEGIN CERTIFICATE-----
+MIIFfzCCA2egAwIBAgIUUtCa6jguJLt20qzq/MR82JX/6JQwDQYJKoZIhvcNAQEL
+BQAwTzEUMBIGA1UECgwLTGliZXJ0YUNhc2ExEzARBgNVBAMMCnN5c2NpZC5jb20x
+IjAgBgkqhkiG9w0BCQEWE3N5c3RlbUBseXNlcmdpYy5kZXYwHhcNMjEwODEwMDAy
+MjM2WhcNMjIwODEwMDAyMjM2WjBPMRQwEgYDVQQKDAtMaWJlcnRhQ2FzYTETMBEG
+A1UEAwwKc3lzY2lkLmNvbTEiMCAGCSqGSIb3DQEJARYTc3lzdGVtQGx5c2VyZ2lj
+LmRldjCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAO0m7lpEZwGB1pxo
+24RESADjbnk6iGmH783cuMo7jzio6P5vZk8FRD0/8Gmli/sOe8oZ2hGE5sNx4RKK
+4g7kDVnYznHS6k5zpBzU4FP9wVMho/TcfaXlCdSwj6Ih0mLxDYzvX0l12Gi1K9gg
+0HxdG2XPfslQbk6py1jQYVkRjwZIj2ya7t7/fNyn6S7flVUIvvcvZd3eNvAlg4ZU
+wDV1H5mF3s42Iv5TOEYi88n7yXUex5I9xi5NqG/qOuYuC69yYobI/WjfId7bUDPT
+UjZJFD5wHUHwtBmjp2bdyzdl9Z9iJp24jhR3Syi4h/BjYFwUG793PjP8DZBWtrOC
+jHoOwkCyYFfOTa8n+Knb8i2FSuX4TgMZeFwcLpSs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