在 Ubuntu 上架設郵件伺服器

Ping-Lun Liao
Jul 13, 2021

If you like this post, please click the ads on the blog or buy me a coffee. Thank you very much.

安裝指令為 sudo apt install postfix

設定伺服器接收哪些網域的Mail,並轉寄給User

Reply mail IP 設定,使用預設值即可

信箱大小,用 0 表示無上限

使用預設的 +

選擇 all,這樣 ipv4 與 ipv6 皆可使用

使用 telnet 與 mail server 建立連線

輸入底下指令設定寄件者與收件者:
mail from: 寄件者信箱

輸入 data 指令,編輯信件內容。使用獨立一行的 . 符號表示來結束內容編輯。輸入 quit 指令結束 telnet。

Originally published at https://yunlinsong.blogspot.com.

--

--