Modoboaは、Linux用のオープンソースのメールサーバーホスティングおよび管理プラットフォームです。 Pythonで書かれており、PostfixとDovecotを使用してメールを送受信します。 NginxWebサーバーとMySQL/PostgreSQLデータベースを使用します。それはあなたが無制限のメールボックスと無制限のメールドメインを作成することを可能にします。 Let’s Encryptと統合して、メールサーバーと外部ネットワーク間のすべての通信を暗号化できます。ドメイン、メールボックス、エイリアスなどを管理するためのWebベースの管理パネルが付属しています。
このチュートリアルでは、Debian10サーバーにModoboaをインストールする方法を紹介します。
- Debian10を実行しているサーバー。
- サーバー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 = [email protected] [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 AIN 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)
ModoboaWebインターフェイスにアクセスする
次に、Webブラウザーを開き、URL https://modoboa.example.comを入力します。 。 Modoboaログインページが表示されます:
デフォルトのユーザー名:admin、パスワード:passwordを入力し、ログインをクリックします。 ボタン。次のページのModoboaダッシュボードにリダイレクトされます:
現在、Modoboaインストーラーには、このガイドが最初に作成およびテストされた後に導入されたBUGがあります。症状は、ModoboaGUIにログインした後の「内部サーバーエラー」メッセージです。この問題の解決策は、ファイル/srv/modoboa/instance/instance/settings.py
を編集することです。nano /srv/modoboa/instance/instance/settings.py
設定:
USE_TZ = False
その後、uwsgiを再起動します
service uwsgi restart
Modoboa Issue Trackerからの参照:https://github.com/modoboa/modoboa/issues/2286
上記の投稿では、Debian10サーバーにModoboaをインストールする方法を学びました。これで、最初のドメインを追加して、他のメールアドレスへのメール送信を開始できます。