From 804f6bd76330f1e8ad29ff412a8f86b954ae4e20 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Wed, 2 Jan 2019 21:03:54 +0100 Subject: certs/theos: Move smtpd over to copide certs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg --- theos/certs/theos_kyriasis_com.sls | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) (limited to 'theos') diff --git a/theos/certs/theos_kyriasis_com.sls b/theos/certs/theos_kyriasis_com.sls index 127caeb..a822ce0 100644 --- a/theos/certs/theos_kyriasis_com.sls +++ b/theos/certs/theos_kyriasis_com.sls @@ -13,15 +13,21 @@ theos.kyriasis.com: - require_in: - service: nginx_service -smtpd-access-theos: - acl.present: - - name: /etc/letsencrypt/archive/theos.kyriasis.com/ - - acl_type: user - - acl_name: smtpd - - perms: r-x - - recurse: True - - require_in: - - acme: theos.kyriasis.com + +/etc/smtpd/certs/fullchain.pem: + file.managed: + - source: /etc/letsencrypt/live/matrix.kyriasis.com/fullchain.pem + - user: smtpd + - group: smtpd + - mode: 600 + +/etc/smtpd/certs/privkey.pem: + file.managed: + - source: /etc/letsencrypt/live/matrix.kyriasis.com/privkey.pem + - user: smtpd + - group: smtpd + - mode: 600 + ldap-access-theos: acl.present: -- cgit v1.2.3-70-g09d2