【Linux主機+架站+維護教學+遠端協助】專案 網路開展事業或在網路賺錢第一步: 【架設24小時賺錢網站主機】比網頁設計更優先! 你還在租用虛擬主機嗎? (租用不如自有主機!自己當家作主才是:王道!) 因租用會:限制空間大小、流量、PHP.ini修改、特定語法使用... 綁手綁腳,你還能有多出眾的作為? 替你架設Linux主機伺服器+影片教你維護 (還有遠端技術協助)讓你自己當家作主! 為協助學員快速架站(隨心所欲展開網路事業)總教頭特別規劃: 替你架設Linux主機專案 並教如何成為網管高手! 聰明的網站經營者都選擇架設Linux主機伺服器做為網站運作平台,因功能完整又強大,免費架站程式超多! 參加了本專案,您無須再自我摸索曠日廢時→快速打通任都二脈 還有配套『加盟專案』,你可以現學現做,自然的實現:『事少、錢多、離家近!』的成功境界。

Modoboa 是一個用於 Linux 的開源信件伺服器託管和管理平台。
它是用 Python 編寫的,使用 Postfix 和 Dovecot 來傳送和接收電子信件。
它使用 Nginx 網路伺服器和 MySQL/PostgreSQL 資料庫。
它容許您建立無限的信箱和無限的信件功能變數。
它可以與 Let’s Encrypt 整合以加密您的電子信件伺服器和外部網路之間的所有通信。
它帶有一個基於 Web 的管理面板,用於管理功能變數、信箱、別名等。

先決條件:
運行 Debian 10 的伺服器。
指向您的伺服器 IP 的有效功能變數名。
在伺服器上配置了 root 密碼。

入門:
在開始之前,使用以下指令將您的系統包更新到最新版本:

apt-get update -y

接下來,使用以下命令安裝其他所需的依賴項:

apt-get install git curl gnupg2 wget -y

接下來,使用以下命令設置系統主機名稱:

hostnamectl set-hostname modoboa.example.com

安裝 Modoboa
接下來,使用以下命令下載最新版本的 Modoboa:

git clone https://github.com/modoboa/modoboa-installer

 

下載完成後,將目錄更改為 Modoboa 並使用以下命令檢查配置:

 

cd modoboa-installer
./run.py --stop-after-configfile-check example.com

這將在您當前的工作目錄中創建一個新的配置文件 installer.cfg。

接下來,使用以下命令編輯配置文件:

nano installer.cfg

 

更改以下幾行:

 

[certificate] 
generate = true 
type =letsencrypt 

[letsencrypt] 
email = hitjethva@gmail.com 

[database] 
engine = postgres 
host = 127.0.0.1 
install = true

保存並關閉文件,然後使用以下命令開始安裝:

./run.py --interactive example.com

安裝完成後,您應該得到以下輸出:

Welcome to Modoboa installer!

Warning:
Before you start the installation, please make sure the following DNS records exist for domain 'modoboa.example.com':
  mail IN A   
       IN MX  modoboa.example.com.

Your mail server will be installed with the following components:
modoboa automx amavis clamav dovecot nginx razor postfix postwhite spamassassin uwsgi radicale opendkim
Do you confirm? (Y/n) Y
The process can be long, feel free to take a coffee and come back later ;)
Starting...
Generating new certificate using letsencrypt
Installing amavis
Installing spamassassin
Installing razor
Installing clamav
Installing modoboa
Installing automx
Installing radicale
Installing uwsgi
Installing nginx
Installing opendkim
Installing postfix
Installing postwhite
Installing dovecot
Congratulations! You can enjoy Modoboa at https://modoboa.example.com (admin:password)

訪問 Modoboa Web 界面
現在,打開您的 Web 瀏覽器並輸入 URL https://modoboa.example.com。您應該會看到 Modoboa 登錄頁面:

提供預設使用者名:admin,密碼:password 然後點擊登入按鈕。您將被重導至以下頁面上的 Modoboa 控制台:

結論
在上面的文章中,您學習瞭如何在 Linux 伺服器上安裝 Modoboa。
您現在可以加入您的第一個功能變數並開始向其他電子信件位址傳送信件。