CodyBlog

使用 Poste.io 快速搭建邮件服务器

2022-06-03  226字  1 分钟 

快速搭建
SMTP + IMAP + POP3 + Antispam + Antivirus
Web administration + Web email
在你的服务器上

新建 docker-compose.yml

version: '2'

services:
  posteio:
    image: analogic/poste.io
    container_name: posteio
    restart: always
    hostname: cody.ee
    network_mode: "host"
    volumes:
      - ./data:/data
    ports:
      - "1080:80"
      - "1443:443"
      - "25:25"
      - "110:110"
      - "143:143"
      - "465:465"
      - "587:587"
      - "993:993"
      - "995:995"
      - "4190:4190"
    environment:
      - TZ=Asia/Shanghai

启动 docker

docker-compose up -d

在防火墙开放以下端口

均可在 docker-compose.yml 中自行修改

Port number Purpose
25 SMTP - mostly processing incoming mails
80 HTTP - redirect to https (see options) and authentication for Let’s encrypt service
110 POP3 - standard protocol for accessing mailbox, STARTTLS is required before client auth
143 IMAP - standard protocol for accessing mailbox, STARTTLS is required before client auth
443 HTTPS - access to administration or webmail client
465 SMTPS - Legacy SMTPs port
587 MSA - SMTP port used primarily for email clients after STARTTLS and auth
993 IMAPS - alternative port for IMAP encrypted since connection
995 POP3S - encrypted POP3 since connections
4190 Sieve - remote sieve settings


跟着配置走