From f18559f1c115e610999f67b313d730bc882bef79 Mon Sep 17 00:00:00 2001 From: Thomas VIAL Date: Sat, 12 Sep 2015 10:54:30 +0200 Subject: [PATCH] Fixed #18 => moved from fam to gamin and added a 'docker' user with id '5000' --- Dockerfile | 3 ++- start-mailserver.sh | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 05bdbd23..2ce0bcba 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ MAINTAINER Thomas VIAL # Packages RUN apt-get update -q --fix-missing RUN apt-get -y upgrade -RUN DEBIAN_FRONTEND=noninteractive apt-get -y install vim postfix sasl2-bin courier-imap courier-imap-ssl courier-authdaemon supervisor libfam0 fam amavisd-new spamassassin clamav-daemon libnet-dns-perl libmail-spf-perl pyzor razor arj bzip2 cabextract cpio file gzip nomarch pax unzip zip zoo rsyslog +RUN DEBIAN_FRONTEND=noninteractive apt-get -y install vim postfix sasl2-bin courier-imap courier-imap-ssl courier-authdaemon supervisor gamin amavisd-new spamassassin clamav clamav-daemon libnet-dns-perl libmail-spf-perl pyzor razor arj bzip2 cabextract cpio file gzip nomarch p7zip pax unzip zip zoo rsyslog --no-install-recommends RUN apt-get autoclean # Configures Saslauthd @@ -23,6 +23,7 @@ RUN sed -i -r 's/^(CRON|ENABLED)=0/\1=1/g' /etc/default/spamassassin RUN sed -i -r 's/#(@| \\%)bypass/\1bypass/g' /etc/amavis/conf.d/15-content_filter_mode RUN adduser clamav amavis RUN adduser amavis clamav +RUN useradd -u 5000 -d /home/docker -s /bin/bash -p $(echo docker | openssl passwd -1 -stdin) docker # Enables Clamav RUN chmod 644 /etc/clamav/freshclam.conf diff --git a/start-mailserver.sh b/start-mailserver.sh index d43c81ba..a03d2fb9 100644 --- a/start-mailserver.sh +++ b/start-mailserver.sh @@ -85,7 +85,6 @@ cp /tmp/spamassassin/rules.cf /etc/spamassassin/ echo "Starting daemons" cron /etc/init.d/rsyslog start -/etc/init.d/fam start /etc/init.d/saslauthd start /etc/init.d/courier-authdaemon start /etc/init.d/courier-imap start