Skip to content

twpDesigner/ewomail

 
 

Repository files navigation

Docker Image

EwoMail 官方文档

EwoMail-Admin版本为1.05

rainloop 版本为1.11.1

运行docker

mail.ewomail.com 换成自己的域名

docker-compose方式

  mail:
    image: bestwu/ewomailserver
    hostname: mail.ewomail.com
    container_name: ewomail
    restart: always
    ports:
      - "25:25"
      - "143:143"
      - "587:587"
      - "993:993"
      - "109:109"
      - "110:110"
      - "465:465"
      - "995:995"
      - "80:80"
      - "8080:8080"
    volumes:
      - ./mysql:/ewomail/mysql/data
      - ./vmail:/ewomail/mail
      - ./rainloop:/ewomail/www/rainloop/data
      - ./ssl/certs/:/etc/ssl/certs/
      - ./ssl/private/:/etc/ssl/private/
      - ./ssl/dkim/:/ewomail/dkim/

docker run  -d -h mail.ewomail.com --restart=always \
  -p 25:25 \
  -p 109:109 \
  -p 110:110 \
  -p 143:143 \
  -p 465:465 \
  -p 587:587 \
  -p 993:993 \
  -p 995:995  \
  -p 80:80 \
  -p 8080:8080 \
  -v `pwd`/mysql/:/ewomail/mysql/data/ \
  -v `pwd`/vmail/:/ewomail/mail/ \
  -v `pwd`/ssl/certs/:/etc/ssl/certs/ \
  -v `pwd`/ssl/private/:/etc/ssl/private/ \
  -v `pwd`/rainloop:/ewomail/www/rainloop/data \
  -v `pwd`/ssl/dkim/:/ewomail/dkim/ \
  --name ewomail bestwu/ewomailserver

可配置参数

  • MYSQL_ROOT_PASSWORD mysql数据库root密码,默认:mysql
  • MYSQL_MAIL_PASSWORD mysql数据库ewomail密码,默认:123456
  • URL 网站链接,后面不要加/线
  • WEBMAIL_URL 邮件系统链接,后面不要加/线
  • TITLE 用户邮统标题
  • COPYRIGHT 邮箱管理后台网站版权
  • ICP 邮箱管理后台网站备案号
  • LANGUAGE 语言选择,默认:zh_CN

自定义证书

映射 /etc/ssl/certs/dovecot.pem,/etc/ssl/private/dovecot.pem,/ewomail/dkim/mail.pem

运行成功后访问

邮箱管理后台http://localhost:8080

默认用户: admin

默认密码: ewomail123

Rainloop 管理端 http://localhost/?admin

默认用户: admin

默认密码: 12345

Rainloop 用户端 http://localhost

设置域名DNS

这里使用万网DNS为参考

将mail.ewomail.cn 改成你的域名

spf记录:v=spf1 include:ewomail.cn -all

红色部分请改为你的服务器IP

DKIM设置

DKIM是电子邮件验证标准,域名密钥识别邮件标准,主要是用来防止被判定为垃圾邮件。

每个域名都需要添加一个dkim的key,EwoMail默认安装后已自动添加主域名dkim,只需要设置好dkim的dns即可。

获取dkim key

执行查看代码

docker exec ewomail amavisd showkeys

若安装成功会输出以下信息:

; key#1, domain ewomail.com, /ewomail/dkim/mail.pem
dkim._domainkey.ewomail.com.	3600 TXT (
  "v=DKIM1; p="
  "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC09HcLpwcdgWtzkrZDBRBYfQo5"
  "prSRyedA72wiD3vFGXLWHyy0KOXp+uwvkNzaBpvU2DDKNTTPdo1pNWtl/LkpRCVq"
  "+uRG+LhZBuic0GpDJnD7HckUbwsyGktb/6g5ogScNtPWB+pegENFDl8BuFn3zDiD"
  "nnGxbpj3emSxDlskzwIDAQAB")

整理后,设置DNS

域名 记录类型 主机记录 记录值
ewomail.com TXT dkim._domainkey v=DKIM1;p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC09HcLpwcdgWtzkrZDBRBYfQo5prSRyedA72wiD3vFGXLWHyy0KOXp+uwvkNzaBpvU2DDKNTTPdo1pNWtl/LkpRCVq+uRG+LhZBuic0GpDJnD7HckUbwsyGktb/6g5ogScNtPWB+pegENFDl8BuFn3zDiDnnGxbpj3emSxDlskzwIDAQAB

等待10分钟后测试是否设置正确。

docker exec ewomail amavisd testkeys
TESTING#1: dkim._domainkey.ewomail.com       => pass

显示pass则正确。

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 63.9%
  • JavaScript 26.7%
  • CSS 5.3%
  • HTML 3.1%
  • Yacc 0.4%
  • Smarty 0.3%
  • Other 0.3%