奇怪的iredmail安装脚本之一

源码安装

wget  https://github.com/iredmail/iRedMail/archive/1.2.1.tar.gz  -O -|tar xz
cd  iRedMail-*
bash iRedMail.sh

Docker安装

docker volume create iRedMail
docker run \
    --rm \
    --name iredmail \
    --env-file /iredmail/iredmail-docker.conf \
    --hostname Your-domian..com \
    -p 80:80 \
    -p 443:443 \
    -p 110:110 \
    -p 995:995 \
    -p 143:143 \
    -p 993:993 \
    -p 25:25 \
    -p 465:465 \
    -p 587:587 \
    -v /iredmail/data/backup:/var/vmail/backup \
    -v /iredmail/data/mailboxes:/var/vmail/vmail1 \
    -v /iredmail/data/mlmmj:/var/vmail/mlmmj \
    -v /iredmail/data/mlmmj-archive:/var/vmail/mlmmj-archive \
    -v /iredmail/data/imapsieve_copy:/var/vmail/imapsieve_copy \
    -v /iredmail/data/custom:/opt/iredmail/custom \
    -v /iredmail/data/ssl:/opt/iredmail/ssl \
    -v /iredmail/data/mysql:/var/lib/mysql \
    -v /iredmail/data/clamav:/var/lib/clamav \
    -v /iredmail/data/sa_rules:/var/lib/spamassassin \
    iredmail/mariadb:nightly

添加新评论 »