1
2

More than 5 years have passed since last update.

Postfixのインストール(ソースから)

Last updated at Posted at 2018-06-29

試しにやってみたのでメモ

手順

  1. 必要なパッケージをインストール

    # yum -y install gcc libdb-devel
    
  2. sendmailや古いPostfixをアンインストール

    # yum -y remove postfix
    
  3. ソースをダウンロード

    # curl -LkvOf ftp://ftp.riken.jp/net/postfix/postfix-release/official/postfix-3.3.1.tar.gz
    
  4. ダウンロードしたソースを展開

    # tar -zxf postfix-3.3.1.tar.gz
    # cd postfix-3.3.1
    
  5. コンパイルを実行

    # make
    
  6. sendmailバイナリのバックアップ

    # mv /usr/sbin/sendmail /usr/sbin/sendmail.OFF
    # mv /usr/bin/newaliases /usr/bin/newaliases.OFF
    # mv /usr/bin/mailq /usr/bin/mailq.OFF
    # chmod 755 /usr/sbin/sendmail.OFF /usr/bin/newaliases.OFF /usr/bin/mailq.OFF
    
  7. ユーザとグループを作成

    # useradd -M -s /sbin/nologin postfix
    # groupadd postdrop
    
  8. インストール

    # make install
    

あとで postfixadmin/postfixadmin のインストールもやれたらやってみよう

参考

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2