「mail.cf」の編集履歴(バックアップ)一覧はこちら
「mail.cf」(2008/03/06 (木) 14:51:07) の最新版変更点
追加された行は緑色になります。
削除された行は赤色になります。
<html>
<title>mailconfig設定の胆</title>
<body>
<meta http-equiv="Content-type" content="text/html; charset=Shift_JIS">
<b>
実習ではpostfixを使ったのでまとめてみようと思いましたでそうろう<br>
まず起動してから大概うまくいかないことづくし<br>
<a href="postfix.main.cf">HTMLバージョンmain.cf</a><br>
<a href="main.cf"><div title="右クリックで保存">main.cfテキストバージョン</div></a><br>
<font color=white></font>
うまくいかないと思ったらまず見るのが/var/log/maillog</b><br>
</b>
</font>
<pre>
Feb 20 11:47:54 neteng18 postfix/smtpd[5196]: connect from neteng18.dom06.localdomain[192.168.128.212]
ここから下制限条件restriction
Feb 20 11:47:54 neteng18 postfix/smtpd[5196]: warning: unknown smtpd restriction: "reject_permit_mynetworks"
Feb 20 11:47:54 neteng18 postfix/smtpd[5196]: NOQUEUE: reject: RCPT from neteng18.dom06.localdomain[192.168.128.212]: 451 4.3.5 Server configuration error; from=<root@neteng18.dom06.localdomain> to=<root@neteng17.dom06.localdomain> proto=ESMTP helo=<[192.168.128.212]>
Feb 20 11:47:54 neteng18 postfix/cleanup[5200]: 5DB84BF1D9: message-id=<20080220024754.5DB84BF1D9@neteng18.dom06.localdomain>
Feb 20 11:47:54 neteng18 postfix/qmgr[4917]: 5DB84BF1D9: from=<double-bounce@neteng18.dom06.localdomain>, size=921, nrcpt=1 (queue active)
Feb 20 11:47:54 neteng18 postfix/smtpd[5196]: disconnect from neteng18.dom06.localdomain[192.168.128.212]
Feb 20 11:47:54 neteng18 postfix/local[5202]: 5DB84BF1D9: to=<root@dom06.localdomain>, orig_to=<postmaster>, relay=local, delay=0.03, delays=0.01/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
Feb 20 11:47:54 neteng18 postfix/qmgr[4917]: 5DB84BF1D9: removed
許可が先で否定は後これはアクセスリスト
smtpd_client_restrictions =
permit_mynetworks, reject_unknown_client
smtpd_sender_restrictions =
reject_non_fqdn_sender,
reject_unknown_sender_domain,
reject_invalid_hostname
#fgdnで書いてない送り主はお断り
#ようわからんドメインの送り主はお断り
#ホストネームが正しくないのもお断り
smtpd_recipient_restrictions =
permit_mynetworks
reject_non_fqdn_recipient,
reject_unauth_destination,
smtpd_recipient_limit = 2
message_size_limit = 10000
#smtpd_recipient_limit = 送ることのできる相手の数
#unauth_destination 許す配達範囲ではないとこは省く
#message_size_limit = バイト単位で指定
mynetworks = 192.168.128.208/28, 127.0.0.0/8, [fd00::0]/64, [::1]
</pre>
</body>
</html>