[root@centos ~]# vi /etc/postfix/main.cf ← Postfix設定ファイル編集
smtpd_recipient_restrictions =
permit_mynetworks
permit_sasl_authenticated
reject_unauth_destination
−−追加(ここから)−−
check_recipient_access hash:$config_directory/whitelist_recipient
check_client_access hash:$config_directory/whitelist_client
check_client_access regexp:$config_directory/permit_client_nots25r
check_policy_service inet:60000
permit
smtpd_data_restrictions =
permit_mynetworks
permit_sasl_authenticated
reject_unauth_destination
check_recipient_access hash:$config_directory/whitelist_recipient
check_client_access hash:$config_directory/whitelist_client
check_client_access regexp:$config_directory/permit_client_nots25r
check_policy_service inet:60000
permit
−−追加(ここまで)−−
[root@centos ~]# wget http://k2net.hakuba.jp/spam/postfix.conf.2.tar.gz ← taRgrey用Postfix設定ファイルダウンロード
[root@centos ~]# tar zxvf postfix.conf.2.tar.gz ← taRgrey用Postfix設定ファイル展開
[root@centos ~]# cp postfix.conf.2/whitelist_recipient /etc/postfix/ ← whitelist_recipientコピー
[root@centos ~]# cp postfix.conf.2/whitelist_client /etc/postfix/ ← whitelist_clientコピー
[root@centos ~]# cp postfix.conf.2/permit_client_nots25r /etc/postfix/ ← permit_client_nots25rコピー
[root@centos ~]# rm -rf postfix.conf.2 ← taRgrey用Postfix設定ファイル展開先ディレクトリを削除
[root@centos ~]# rm -f postfix.conf.2.tar.gz ← ダウンロードしたファイルを削除
[root@centos ~]# postmap /etc/postfix/whitelist_recipient ← whitelist_recipientのDB化
[root@centos ~]# postmap /etc/postfix/whitelist_client ← whitelist_clientのDB化
|