更新系统 apt update -y && apt upgrade -y && apt install -y curl wget sudo socat htop amavisd-new 安装 Docker 有了咱就就不装了 curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh curl -L "https://github.com/docker/compose/releases/download/v2.16.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose 创建所需目录 mkdir /iredmail cd /iredmail mkdir -p data/{backup-mysql,clamav,custom,imapsieve_copy,mailboxes,mlmmj,mlmmj-archive,mysql,sa_rules,ssl,postfix_queue} 配置文件 nano iredmail-docker.conf HOSTNAME=mail.kjlion.ga FIRST_MAIL_DOMAIN=kjlion.ga FIRST_MAIL_DOMAIN_ADMIN_PASSWORD=kejilionWWDS MLMMJADMIN_API_TOKEN=KEJILION ROUNDCUBE_DES_KEY=KEJILION123 DNS各种解析 A记录 MX记录 TXT记录1 参数 v=spf1 mx -all TXT记录2 执行amavisd-new查看 Docker部署 docker run \ -d \ --name iredmail \ --env-file /iredmail/iredmail-docker.conf \ --hostname mail.kjlion...