FreeBSDでPostfix


  1. インストール
    # cd /usr/ports/mail/postfix-current
    # make
    # make install
    # make replace
    /etc/mail/mailer.confの修正をしてくれる
    # make clean
  2. 設定
    以下のポリシーで設定してみる。
    • 基本的にデフォルト(open relay対策はこれでもOK)
    • MailはMaildir形式で保存
    alias_maps = hash:/etc/mail/aliases
    command_directory = /usr/local/sbin
    daemon_directory = /usr/local/libexec/postfix
    debug_peer_level = 2
    default_destination_concurrency_limit = 10
    default_privs = nobody
    home_mailbox = Maildir/
    inet_interfaces = all
    local_destination_concurrency_limit = 2
    mail_owner = postfix
    mydestination = $myhostname, localhost.$mydomain, $mydomain
    mydomain = TEST.JP
    myhostname = NS.TEST.JP
    myorigin = $mydomain
    queue_directory = /var/spool/postfix
  3. Maildir形式対応POP Server

戻る / OFUG