From b32589a00c9f0e7fc47c4c54d571462e0bb5dd2e Mon Sep 17 00:00:00 2001 From: Ubergeek Date: Mon, 18 Feb 2019 17:24:11 +0000 Subject: [PATCH] Adding dkim signing and dcss --- roles/shell/files/etc/postfix/main.cf | 6 ++++++ roles/shell/files/usr/local/bin/dcss | 10 ++++++++++ roles/shell/tasks/packages.yml | 8 ++++++++ 3 files changed, 24 insertions(+) create mode 100644 roles/shell/files/usr/local/bin/dcss diff --git a/roles/shell/files/etc/postfix/main.cf b/roles/shell/files/etc/postfix/main.cf index 52d30d3..304ca24 100644 --- a/roles/shell/files/etc/postfix/main.cf +++ b/roles/shell/files/etc/postfix/main.cf @@ -49,3 +49,9 @@ smtpd_sasl_auth_enable = yes smtpd_sasl_security_options = noanonymous smtpd_sasl_local_domain = $myhostname smtpd_recipient_restrictions = permit_mynetworks,permit_auth_destination,permit_sasl_authenticated,reject + +milter_protocol = 2 +milter_default_action = accept + +smtpd_milters = inet:localhost:12301 +non_smtpd_milters = inet:localhost:12301 diff --git a/roles/shell/files/usr/local/bin/dcss b/roles/shell/files/usr/local/bin/dcss new file mode 100644 index 0000000..e3e441d --- /dev/null +++ b/roles/shell/files/usr/local/bin/dcss @@ -0,0 +1,10 @@ +#!/bin/sh + +SOURCEKEY="https://crawl.tildeverse.org/dcss.key" +MYKEY="${HOME}/.ssh/dcss.key" +if [ ! -f "$MYKEY" ]; then + mkdir -p "${HOME}/.ssh" + curl -s "$SOURCEKEY" > "$MYKEY" + chmod 600 "$MYKEY" +fi +ssh -i "$MYKEY" dcss@crawl.tildeverse.org diff --git a/roles/shell/tasks/packages.yml b/roles/shell/tasks/packages.yml index 905e355..969c246 100644 --- a/roles/shell/tasks/packages.yml +++ b/roles/shell/tasks/packages.yml @@ -174,3 +174,11 @@ owner: root group: root mode: 0755 + +- name: Install remote DCSS + copy: + src: ../files/usr/local/bin/dcss + dest: /usr/local/bin/dcss + owner: root + group: root + mode: 0755