Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F4020359
D836.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
768 B
Referenced Files
None
Subscribers
None
D836.diff
View Options
diff --git a/roles/mailserver/certificates/files/update-smtp-certificates b/roles/mailserver/certificates/files/update-smtp-certificates
--- a/roles/mailserver/certificates/files/update-smtp-certificates
+++ b/roles/mailserver/certificates/files/update-smtp-certificates
@@ -15,8 +15,9 @@
cp $CERT_DIR/fullchain.pem $CONTAINER_DIR/etc/ssl/certs/mailserver.crt
cp $CERT_DIR/privkey.pem $CONTAINER_DIR/etc/ssl/private/mailserver.key
-# postfix runs as root
+# Mail servers can read the certificate as root before dropping privileges
chown 0:0 $CONTAINER_DIR/etc/ssl/private/mailserver.key
chmod 400 $CONTAINER_DIR/etc/ssl/private/mailserver.key
lxc-attach -n $CONTAINER_NAME -- service postfix restart
+lxc-attach -n $CONTAINER_NAME -- service dovecot restart
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 20, 04:39 (13 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2361577
Default Alt Text
D836.diff (768 B)
Attached To
Mode
D836: Restart IMAP server too when deploying new mail SSL certificate
Attached
Detach File
Event Timeline
Log In to Comment