差異處
這裏顯示兩個版本的差異處。
兩邊的前次修訂版 前次修改 下次修改 | 前次修改 | ||
tech:mailu [2023/08/20 19:08] – [安裝程序] jonathan | tech:mailu [2025/01/16 12:49] (目前版本) – [安裝程序] jonathan | ||
---|---|---|---|
行 1: | 行 1: | ||
- | ====== 安裝設定 | + | ====== 安裝設定 |
- | * 安裝環境 : OS: | + | * 安裝環境 : OS: |
* 設定資訊 : Exp. | * 設定資訊 : Exp. | ||
* DNS : | * DNS : | ||
- | * mail01.ichiayi.com. | + | * mail01.ichiayi.com. |
* mail01.ichiayi.com. | * mail01.ichiayi.com. | ||
* Reverse DNS : | * Reverse DNS : | ||
- | * 140.82.11.111 -> mail01.ichiayi.com | + | * 45.76.145.111 -> mail01.ichiayi.com |
* DKIM/SPF & DMARC Entries | * DKIM/SPF & DMARC Entries | ||
* 等安裝好 MailU 再透過 admin 生成相關資訊到 DNS 進行設定 | * 等安裝好 MailU 再透過 admin 生成相關資訊到 DNS 進行設定 | ||
行 16: | 行 16: | ||
<note important> | <note important> | ||
**如果要使用 Let's Encrypt 免費憑證必須要** | **如果要使用 Let's Encrypt 免費憑證必須要** | ||
- | - DNS 內 A Record 需要有 hostname 並指向 Mail Server 的 IP Exp. mail01.ichiayi.com -> 140.82.11.111 | + | - DNS 內 A Record 需要有 hostname 並指向 Mail Server 的 IP Exp. mail01.ichiayi.com -> 45.76.145.111 |
- hostname 就是 Mail Server 名稱 Exp. mail01.ichiayi.com | - hostname 就是 Mail Server 名稱 Exp. mail01.ichiayi.com | ||
- | |||
</ | </ | ||
- | ====== 安裝程序 ===== | + | |
- | - [[tech/ | + | ===== 安裝程序 ===== |
+ | - [[tech/ | ||
- 開啟主機防火牆< | - 開啟主機防火牆< | ||
ufw allow proto tcp from any to any port 25, | ufw allow proto tcp from any to any port 25, | ||
ufw allow proto udp from any to any port 161 comment 'Open SNMP ports' | ufw allow proto udp from any to any port 161 comment 'Open SNMP ports' | ||
</ | </ | ||
- | - 使用 https:// | + | - 使用 https:// |
- | - Version : 2.0 | + | - Version : 2024.06 |
- Step1: | - Step1: | ||
- Mailu storage path: /mailu | - Mailu storage path: /mailu | ||
行 38: | 行 38: | ||
- Website name : mail01 for ichiayi.com | - Website name : mail01 for ichiayi.com | ||
- Linked Website URL : https:// | - Linked Website URL : https:// | ||
- | - Enable the admin UI : /admin | + | - Enable the admin UI : [V] |
- Step 2 - Pick some features | - Step 2 - Pick some features | ||
- Enable Web email client : none | - Enable Web email client : none | ||
+ | - Enable oletools : [ ] | ||
- Step 3 - expose Mailu to the world | - Step 3 - expose Mailu to the world | ||
- IPv4 listen address : 0.0.0.0 | - IPv4 listen address : 0.0.0.0 | ||
- Subnet of the docker network : 192.168.203.0/ | - Subnet of the docker network : 192.168.203.0/ | ||
- | - Public hostnames : ichiayi-mailu.ichiayi.com | + | |
- | - 依照 https:// | + | |
+ | - 依照 https:// | ||
- Step 1 - Download your configuration files< | - Step 1 - Download your configuration files< | ||
mkdir /mailu | mkdir /mailu | ||
cd /mailu | cd /mailu | ||
- | wget https:// | + | wget https:// |
- | wget https:// | + | wget https:// |
</ | </ | ||
- Step 2 - Review the configuration : 確認 docker-compose.yml 與 mailu.env 內容是否正常 | - Step 2 - Review the configuration : 確認 docker-compose.yml 與 mailu.env 內容是否正常 | ||
行 58: | 行 60: | ||
</ | </ | ||
* 等啟動 MailU 服務後, 設定管理者密碼 Exp. My_12345Password <cli> | * 等啟動 MailU 服務後, 設定管理者密碼 Exp. My_12345Password <cli> | ||
- | docker compose -p mailu exec admin flask mailu admin admin mail01.ichiayi.com My_12345Password | + | docker compose -p mailu exec admin flask mailu admin admin mail01.ichiayi.com |
</ | </ | ||
* 連上 Web 管理介面 https:// | * 連上 Web 管理介面 https:// | ||
- | * Administration -> Mail domains -> Actions -> Details 可以看到 DNS SPF entries / DNS TLSA entry / DNS client auto-configuration entries 的設定資訊 | + | * Administration -> Mail domains -> Actions -> Details 可以看到 DNS SPF entries / DNS TLSA entry / DNS client auto-configuration entries 的設定資訊 |
+ | |||
+ | ===== Mailu 管理介面 - Antispam ===== | ||
+ | * Status : \\ {{: | ||
+ | * Throughput : \\ {{: | ||
+ | * History : \\ {{: | ||
+ | |||
+ | ===== Mailu 更版升級 ===== | ||
+ | * 只要執行以下命令就可以直接更版 < | ||
+ | docker compose pull && docker compose up -d | ||
+ | </ | ||
+ | * 查看啟動過程 Logs < | ||
+ | docker compose logs -f | ||
+ | </ | ||
+ | |||
+ | ===== 常見問題 ===== | ||
+ | - postfix 紀錄出現 Sender address rejected: not owned by user 無法寄出信件問題 | ||
+ | * 只要在管理介面將寄信者帳號的 Allow the user to spoof the sender (send email as anyone) 打勾即可 | ||
+ | * Administration -> Mail domain -> Manage -> Users -> Actions -> Edit \\ {{: | ||
+ | - 寄信錯誤訊息出現 4.2.1 : SASL login name rejected: You are sending too many emails too fast. | ||
+ | * 參考 - https:// | ||
+ | * Mailu 預設每個用戶每日寄信上限為 200 封, 超過就會出現這訊息 | ||
+ | * 可以透過修改 mailu.env 內的 MESSAGE_RATELIMIT 數值或是將寄信帳號加入 MESSAGE_RATELIMIT_EXEMPTION | ||
+ | * 重啟 docker compose 來讓新的設定生效 | ||
+ | |||
+ | <note warning> | ||
+ | * **這問題已經在 2.0.22(2023/ | ||
+ | |||
+ | ---- | ||
+ | * **2.0.20(2023/ | ||
+ | * 可參考 https:// | ||
+ | listen = * | ||
+ | </ | ||
+ | </ | ||
===== 參考網址 ===== | ===== 參考網址 ===== | ||
* https:// | * https:// |