summaryrefslogtreecommitdiff
path: root/public/fs
diff options
context:
space:
mode:
authorroot@culturestrings <root@culturestrings>2020-08-29 00:27:13 +0000
committerroot@culturestrings <root@culturestrings>2020-08-29 00:27:13 +0000
commit319898b7f6496aeaf38b14f7b3a54147a3dfb75c (patch)
tree3147a7d5a38ec9434ed1558a5446d542854258ac /public/fs
parent3b041f0c000d1d732d482561fe887e6b99c20273 (diff)
downloadculturestrings-319898b7f6496aeaf38b14f7b3a54147a3dfb75c.tar.bz2
culturestrings-319898b7f6496aeaf38b14f7b3a54147a3dfb75c.tar.xz
opendkim: added the submission service (strict sign or reject).
Diffstat (limited to 'public/fs')
-rw-r--r--public/fs/etc/opendkim/submission.conf10
-rw-r--r--public/fs/etc/systemd/system/submission.service14
-rw-r--r--public/fs/etc/systemd/system/submission.service.d/override.conf3
3 files changed, 27 insertions, 0 deletions
diff --git a/public/fs/etc/opendkim/submission.conf b/public/fs/etc/opendkim/submission.conf
new file mode 100644
index 0000000..a546b73
--- /dev/null
+++ b/public/fs/etc/opendkim/submission.conf
@@ -0,0 +1,10 @@
+KeyTable file:/etc/dkimkeys/keytable
+SigningTable refile:/etc/dkimkeys/signingtable
+InternalHosts refile:/etc/dkimkeys/certclients
+ExternalIgnoreList refile:/etc/dkimkeys/certclients
+
+Mode sv
+Umask 0002
+Socket local:/var/spool/postfix/opendkim/submission.sock
+
+On-Default reject
diff --git a/public/fs/etc/systemd/system/submission.service b/public/fs/etc/systemd/system/submission.service
new file mode 100644
index 0000000..130a091
--- /dev/null
+++ b/public/fs/etc/systemd/system/submission.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=DomainKeys Identified Mail (DKIM) Submission Port Milter
+Documentation=man:opendkim(8) man:opendkim.conf(5) man:opendkim-genkey(8) man:opendkim-genzone(8) man:opendkim-testadsp(8) man:opendkim-testkey http://www.opendkim.org/docs.html
+After=local-fs.target network.target syslog.target
+
+[Service]
+Type=simple
+PIDFile=/var/run/opendkim/submission.pid
+ExecStart=/usr/sbin/opendkim -f -x /etc/opendkim/submission.conf
+ExecReload=/bin/kill -USR1 $MAINPID
+NonBlocking=yes
+
+[Install]
+WantedBy=multi-user.target
diff --git a/public/fs/etc/systemd/system/submission.service.d/override.conf b/public/fs/etc/systemd/system/submission.service.d/override.conf
new file mode 100644
index 0000000..24d8bed
--- /dev/null
+++ b/public/fs/etc/systemd/system/submission.service.d/override.conf
@@ -0,0 +1,3 @@
+[Service]
+User=opendkim
+Group=postfix