以下、自宅のサーバにメールサーバを構築したときの記録です。SMTPはPostFix?,POP/IMAP4はDovecotを用いています。
使っているサーバはCentOS5.2ですが、標準ではSendmailが動いているようなので、デフォルトのMTAも変更しています。手順は以下の通り。
[root@centos ~]# yum -y install postfix Downloading Packages: (1/1): postfix-2.3.3-2.1. 100% |=========================| 3.6 MB 00:04 Running Transaction Installing: postfix ######################### [1/1] Installed: postfix.i386 2:2.3.3-2.1.el5_2 Complete! [root@centos ~]# /sbin/service sendmail stop sm-client を停止中: [ OK ] sendmail を停止中: [ OK ] [root@centos ~]# chkconfig sendmail off [root@centos ~]# chkconfig --list sendmail sendmail 0:off 1:off 2:off 3:off 4:off 5:off 6:off [root@centos ~]# alternatives --config mta 2 プログラムがあり 'mta' を提供します。 選択 コマンド ----------------------------------------------- *+ 1 /usr/sbin/sendmail.sendmail 2 /usr/sbin/sendmail.postfix Enter を押して現在の選択 [+] を保持するか、選択番号を入力します:2 [root@centos ~]# alternatives --config mta 2 プログラムがあり 'mta' を提供します。 選択 コマンド ----------------------------------------------- * 1 /usr/sbin/sendmail.sendmail + 2 /usr/sbin/sendmail.postfix <-変更された Enter を押して現在の選択 [+] を保持するか、選択番号を入力します: [root@centos ~]#
この記事は
現在のアクセス:5039