flagflag  If you want to see English page, please click "English" Button at Left.
2: 2011-03-22 (火) 03:22:41 iseki ソース 3: 2019-08-16 (金) 14:23:47 iseki ソース
Line 1: Line 1:
* Postfix [#v565bc6c] * Postfix [#v565bc6c]
-** for CentOS [#n4ac1e04]+** CentOS [#n4ac1e04] 
*** Install [#l28b20db] *** Install [#l28b20db]
- yum install postfix - yum install postfix
Line 7: Line 8:
*** Setting [#h14f179c] *** Setting [#h14f179c]
-- /etc/postfix/main.cf  +**** /etc/postfix/main.cf [#yb5c96bb] 
- inet_interfaces = all +- ''inet_interfaces = all'' が必要 (localhost のみの場合,locahost 以外の名前で接続できない) 
-が必要 (localhost のみの場合,locahost 以外の名前で接続できない)+- ブラックリスト 
 + smtpd_client_restrictions = permit_mynetworks, 
 +     reject_invalid_hostname, 
 +     reject_rbl_client all.rbl.jp, 
 +     reject_rbl_client bl.spamcop.net, 
 + #    reject_rbl_client zen.spamhaus.org, 
 +     permit 
 + 
 +*** Submission port (587) with STARTTLS [#iab6fcd3] 
 +**** sasl [#jed4de18] 
 +- [[sasl>Cryrus SASL]] が必要 
 +#br 
 + 
 +**** STARTTLS [#fc318451] 
 +- STARTTLS を使用するために秘密鍵とサーバ証明書が必要 
 +- [[OpenSSL]] で作成する (例:private.key, server.crt) 
 + openssl req -new -newkey rsa:2048 -days 3650 -nodes -keyout private.key -out server.csr 
 + openssl x509 -in server.csr -days 3650 -req -signkey private.key -out server.crt 
 + 
 +**** /etc/postfix/main.cf [#j00f8ef7] 
 + smtpd_tls_key_file  = /etc/postfix/tls/private.key 
 + smtpd_tls_cert_file = /etc/postfix/tls/server.crt 
 + 
 + # 
 + # 
 + # SASL 
 + smtpd_sasl_auth_enable = yes 
 + smtpd_sasl_security_options = noanonymous 
 + #smtpd_sasl_local_domain = $mydomain 
 + smtpd_recipient_restrictions = 
 +     permit_mynetworks, 
 +     permit_sasl_authenticated, 
 +     reject_unauth_destination 
 + 
 +**** /etc/postfix/master.cf [#m373862e] 
 + submission inet n      -      n      -      -      smtpd 
 +   -o smtpd_tls_security_level=encrypt 
 +   -o smtpd_sasl_auth_enable=yes 
 +   -o smtpd_recipient_restrictions=permit_sasl​_authenticated,reject 
 +- smtpd_tls_security_level=may とすると TLSを使用しないモードも使用可能(危険) 
 +#br 
 + 
 +**** firewalld [#vbb8556a] 
 +- firewall-cmd --add-service=smtp --permanent 
 +- firewall-cmd --add-service=smtp-submission --permanent 
 +- firewall-cmd --reload 
 +#br


トップ   新規 ページ一覧 単語検索 最終更新   ヘルプ   最終更新のRSS 1.0 最終更新のRSS 2.0 最終更新のRSS Atom

サイト内 検索

ログイン

ユーザー名:

パスワード:


パスワード紛失
新規登録

サブ メニュー

ミニカレンダー

前月2024年 4月翌月
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
<今日>

オンライン状況

79 人のユーザが現在オンラインです。 (19 人のユーザが xpwiki を参照しています。)

登録ユーザ: 0
ゲスト: 79

もっと...

アクセスカウンタ

今日 : 1051010510105101051010510
昨日 : 1529415294152941529415294
総計 : 2340521023405210234052102340521023405210234052102340521023405210
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com