update maddy and cyrus
This commit is contained in:
parent
44ca458c5c
commit
1531600fd0
3 changed files with 5 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
||||||
FROM debian:buster
|
FROM debian:sid
|
||||||
|
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
RUN apt update && \
|
RUN apt update && \
|
||||||
|
@ -6,7 +6,7 @@ RUN apt update && \
|
||||||
echo "admins: cyrus" >> /etc/imapd.conf && \
|
echo "admins: cyrus" >> /etc/imapd.conf && \
|
||||||
touch /var/lib/cyrus/tls_sessions.db && \
|
touch /var/lib/cyrus/tls_sessions.db && \
|
||||||
chown cyrus:mail /var/lib/cyrus/tls_sessions.db && \
|
chown cyrus:mail /var/lib/cyrus/tls_sessions.db && \
|
||||||
mkdir /run/cyrus && \
|
mkdir -p /run/cyrus && \
|
||||||
chown -R cyrus:mail /run/cyrus
|
chown -R cyrus:mail /run/cyrus
|
||||||
|
|
||||||
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||||
|
|
|
@ -4,7 +4,7 @@ WORKDIR /root
|
||||||
RUN apt-get update && apt-get install -y openssl && \
|
RUN apt-get update && apt-get install -y openssl && \
|
||||||
openssl req -nodes -new -x509 -subj "/C=DW/ST=Sto/L=Ankh-Morpork /O=Unseen University/OU=Library/CN=Ook/emailAddress=ook@ook.ook" -keyout privkey.pem -out fullchain.pem
|
openssl req -nodes -new -x509 -subj "/C=DW/ST=Sto/L=Ankh-Morpork /O=Unseen University/OU=Library/CN=Ook/emailAddress=ook@ook.ook" -keyout privkey.pem -out fullchain.pem
|
||||||
|
|
||||||
FROM foxcpp/maddy:0.6.2
|
FROM foxcpp/maddy:0.7.0
|
||||||
|
|
||||||
COPY --from=builder /root/privkey.pem /data/tls/privkey.pem
|
COPY --from=builder /root/privkey.pem /data/tls/privkey.pem
|
||||||
COPY --from=builder /root/fullchain.pem /data/tls/fullchain.pem
|
COPY --from=builder /root/fullchain.pem /data/tls/fullchain.pem
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
maddy -config /data/maddy.conf run &
|
maddy -config /data/maddy.conf run &
|
||||||
|
|
||||||
sleep 2
|
sleep 2
|
||||||
maddyctl creds create --password pass test@example.com
|
maddy creds create --password pass test@example.com
|
||||||
maddyctl imap-acct create test@example.com
|
maddy imap-acct create test@example.com
|
||||||
|
|
||||||
wait
|
wait
|
||||||
|
|
Loading…
Reference in a new issue