SMTPサーバの構築まずはSMTPサーバを構築するために、postfixをインストールします。 $ sudo yum install postfixpostfixの設定ファイルである/etc/postfix/main.cfを編集していきます。 メールサーバの名前を設定します。 myhostname = mainmx.example.comメールを受信するドメインの指定をします。 Mydomain = example.comすべての送信元からのメールを受け付ける指定をします。 inet_interfaces = all受信アドレスの指定をします。デフォルトの設定に$mydomainを追加します。これにより、メールのループを防ぎます。 mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain送信先のアドレス検索
![研修でメールサーバを構築しました。 | SIOS Tech. Lab](https://cdn-ak-scissors.b.st-hatena.com/image/square/6f74ec40ff284b9539903e5cafbe6cda16b0aab6/height=288;version=1;width=512/https%3A%2F%2Ftech-lab.sios.jp%2Fwp-content%2Fuploads%2F2018%2F12%2Fjob_programmer.png)