Working image.

This commit is contained in:
Thomas VIAL 2015-03-28 16:44:40 +01:00
parent f97eaee38c
commit 22a54827ff
3 changed files with 19 additions and 6 deletions

View file

@ -19,7 +19,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 echo "/dev/shm /var/lib/amavis tmpfs defaults,noexec,nodev,nosuid,size=150m,mode=750,uid=$(id -u amavis),gid=$(id -g clamav) 0 0" >> /etc/fstab
# RUN echo "/dev/shm /var/lib/amavis tmpfs defaults,noexec,nodev,nosuid,size=150m,mode=750,uid=$(id -u amavis),gid=$(id -g clamav) 0 0" >> /etc/fstab
# Enables Clamav
RUN mkdir -p /var/log/clamav && chown -R clamav:root /var/log/clamav

View file

@ -1,8 +1,19 @@
# docker-mailserver
A fullstack but simple mailserver (smtp, imap, antispam, antivirus...)
Includes:
- postfix
- courier-imap
- spamassasin
- clamav
- amavis
Only config files, no *sql database required.
## installation
TODO when automatic build will be enabled.
docker pull tvial/docker-mailserver
## build
@ -25,6 +36,11 @@ TODO when automatic build will be enabled.
- ./configs/spamassassin:/etc/spamassassin
environment:
docker_mail_domain: "my-domain.com"
# format is user@domain.tld|clear_password
docker_mail_users:
- "username1@my-domain.com|username1password"
- "username2@my-domain.com|username2password"
# wanna help?
Fork, improve and PR. ;-)

View file

@ -33,9 +33,6 @@ chown -R 5000:5000 /var/mail
echo "Creating /etc/mailname"
echo $docker_mail_domain > /etc/mailname
# echo "Mouting /var/lib/amavis as tmpfs"
# mount /var/lib/amavis
echo "Starting daemons"
/etc/init.d/fam start
/etc/init.d/saslauthd start