File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,8 @@ echo -e "\n ##### configuring the containers \n"
148
148
149
149
# create a non-root user
150
150
pct exec $CLIENTID -- useradd -m -s /bin/bash -G sudo $NONROOTUSER
151
- pct exec $CLIENTID -- bash -c " echo -e '$NONROOTPASSWD \n$NONROOTPASSWD \n' | passwd $NONROOTUSER "
151
+ # pct exec $CLIENTID -- bash -c "echo -e '$NONROOTPASSWD\n$NONROOTPASSWD\n' | passwd $NONROOTUSER"
152
+ pct exec $CLIENTID -- bash -c " echo '$NONROOTUSER :$NONROOTPASSWD ' | chpasswd"
152
153
153
154
# push dhcp settings to avoid routing over the ingress interface
154
155
pct push $CLIENTID exc-client/dhclient.conf /etc/dhcp/dhclient.conf
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ docker compose create
55
55
# copy certificates to the docker cert volume
56
56
docker cp /etc/certificates/${DOMAIN} /imap_fullchain.crt imap:/etc/ssl/certs/ssl-cert-imap.pem
57
57
docker cp /etc/certificates/${DOMAIN} /imap.key imap:/etc/ssl/private/ssl-cert-imap.key
58
+ docker cp /etc/certificates/${DOMAIN} /rootCA.crt imap:/etc/ssl/certs/rootCA.pem
58
59
59
60
# bring up the mail server
60
61
docker compose up -d
@@ -65,6 +66,7 @@ sleep 10
65
66
# just fix the certificate location for postfix
66
67
docker exec imap postconf -e smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-imap.pem
67
68
docker exec imap postconf -e smtpd_tls_key_file=/etc/ssl/private/ssl-cert-imap.key
69
+ docker exec imap postconf -e smtp_tls_CApath=/etc/ssl/certs/rootCA.pem
68
70
docker exec imap /etc/init.d/postfix reload
69
71
70
72
# last but not least let's enable root ssh access with username and password.
You can’t perform that action at this time.
0 commit comments