Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F56381519
update-smtp-certificates
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
868 B
Referenced Files
None
Subscribers
None
update-smtp-certificates
View Options
#!/bin/sh
# -------------------------------------------------------------
# Deploy mail certificate to SMTP server
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Created: 2016-11-03
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
:
${
CONTAINER_NAME
=
'mailserver'
}
:
${
CERT_DIR
=
'/data/letsencrypt/etc/live/mail.nasqueron.org-0001'
}
:
${
CONTAINER_DIR
=
"/var/lib/lxc/
$CONTAINER_NAME
/rootfs"
}
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
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
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Sat, Nov 7, 15:26 (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4240555
Default Alt Text
update-smtp-certificates (868 B)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment