mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
Working image.
This commit is contained in:
parent
f97eaee38c
commit
22a54827ff
|
@ -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
|
||||
|
|
20
README.md
20
README.md
|
@ -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"
|
||||
- "username2@my-domain.com|username2password"
|
||||
|
||||
# wanna help?
|
||||
|
||||
Fork, improve and PR. ;-)
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue