flagflag  
2: 2011-03-22 (Tue) 03:22:41 iseki source 3: 2019-08-16 (Fri) 14:23:47 iseki source
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


Front page   New List of Pages Search Recent changes   Help   RSS of recent changes (RSS 1.0) RSS of recent changes (RSS 2.0) RSS of recent changes (RSS Atom)

Site Search

Login

Username:

Password:


Lost Password?
Register now!!

Sub Menu

mini Calendar

Last MonthMay 2024Next Month
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 31
Today

Who's Online

88 user(s) are online (25 user(s) are browsing xpwiki)

Members: 0
Guests: 88

more...

Access Counter

Today : 5221522152215221
Yesterday : 1185711857118571185711857
Total : 2361694823616948236169482361694823616948236169482361694823616948
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com