-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
30 lines (22 loc) · 945 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM ubuntu
MAINTAINER Derk Muenchhausen <[email protected]>
RUN apt-get update && apt-get install -y \
dovecot-core \
dovecot-imapd \
nfs-common \
inotify-tools
RUN echo "mail_location = maildir:~/Maildir" >> /etc/dovecot/conf.d/10-mail.conf && \
echo "ssl = no" > /etc/dovecot/conf.d/10-ssl.conf && \
echo "log_path = /dev/stderr" >> /etc/dovecot/conf.d/10-logging.conf && \
echo "auth_verbose = yes" >> /etc/dovecot/conf.d/10-logging.conf && \
echo "disable_plaintext_auth = no" >> /etc/dovecot/conf.d/10-auth.conf && \
echo "auth_mechanisms = plain" >> /etc/dovecot/conf.d/10-auth.conf
RUN useradd -m mailarchive -p mailarchive -s /bin/false && \
echo "mailarchive:mailarchive"|chpasswd && \
mkdir /home/mailarchive/Maildir && \
chown mailarchive:mailarchive /home/mailarchive/Maildir/
ADD dovecotnfs.sh /usr/local/bin/dovecotnfs
ENV NFS_REMOTETARGET ""
ENTRYPOINT ["dovecotnfs"]
CMD ["--help"]
EXPOSE 143