Personal tools
You are here: Home サーバー PostfixとQpopper Postfixの基本設定
Navigation

今の天気
  14℃ 41% 1025hPa W 1m
福岡地方の今の天気
« November 2008 »
Su Mo Tu We Th Fr Sa
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30
最近のログイン

Papasan
2008/11/22 11:45

Guest
2008/11/12 15:50

seko
2008/11/11 20:05

Reiko
2008/11/02 16:58

hage88
2008/10/19 17:39

Peter
2008/10/06 21:22

猫さん。
2008/10/06 04:19

 
Document Actions

Postfixの基本設定

by Papasan last modified 2008-11-19 16:36

SMTP、POP3のベーシック設定。

  1. Postfixの設定

    /etc/postfix/main.cfを編集します。

    • 次の項目を変更します。:
        myhostname = papasan.org
        mydomain = papasan.org
        mydestination = $myhostname, localhost.$mydomain, $mydomain
        mynetworks = 192.168.0.0/24 127.0.0.0/8
        allow_percent_hach = yes
      
    • 以下の項目を設定ファイルの最後に追記します。:
        smtpd_helo_required = yes
        swap_bangpath = yes
        disable_vrfy_command = yes
        smtpd_client_restrictions = permit_mynetworks, reject_unknown_client, permit
        smtpd_recipient_restrictions = permit_mynetworks, reject_sender_login_mismatch, check_relay_domains
        smtpd_helo_restrictions = permit_mynetworks, reject_invalid_hostname, reject_unknown_client, permit
        smtpd_sender_restrictions = reject_unknown_sender_domain, reject_sender_login_mismatch
        smtpd_etrn_restrictions = permit_mynetworks, reject_invalid_hostname
      
    • Postfixの再起動:
        # /etc/rc.d/init.d/postfix restart
      
  2. 不正中継の拒否テスト

    NETWORK ABUSE CLEARINGHOUSE にてテストを行います。 17項目に及ぶテストがありますが、最後に次のように表示されれば取り敢えずは合格でしょう。:

      Relay test result
      All tests performed, no relays accepted.
    

  3. Pop3のサービスを有効にする。

    /etc/inetd.confの「Pop and imap mail services et al」の部分でpop3がコメントアウトされていれば有効にする。:

      # vi /etc/inetd.conf
    
      pop-3 stream tcp nowait root /usr/sbin/tcpd in.qpopper
    
      # /etc/rc.d/init.d/inet restart