このページの2つのバージョン間の差分を表示します。
次のリビジョン | 前のリビジョン | ||
01_linux:03_mail:03_postfix_postgrey [2015/11/25 06:20] – 作成 matsui | 01_linux:03_mail:03_postfix_postgrey [2016/06/06 01:08] (現在) – matsui | ||
---|---|---|---|
行 1: | 行 1: | ||
+ | ====== 03 Postfix + Postgrey ====== | ||
+ | ===== インストール ===== | ||
+ | ==== 1.34 ==== | ||
+ | < | ||
+ | # wget http:// | ||
+ | # rpm -ivh --nomd5 postgrey-1.34-1.rf.src.rpm | ||
+ | # cd / | ||
+ | # tar zxvf postgrey-1.34.tar.gz | ||
+ | # cd postgrey-1.34 | ||
+ | # wget http:// | ||
+ | # patch -p0 < targrey-0.31-postgrey-1.34.patch | ||
+ | # cd .. | ||
+ | # rm -f postgrey-1.34.tar.gz && tar czvf postgrey-1.34.tar.gz postgrey-1.34 | ||
+ | # rm -rf postgrey-1.34 | ||
+ | # rpmbuild -bb --clean / | ||
+ | # yum -y install postgrey && rpm -e postgrey | ||
+ | # rpm -ivh / | ||
+ | # rm -f / | ||
+ | # rpmbuild --rmsource --rmspec / | ||
+ | # rm -f postgrey-1.34-1.rf.src.rpm | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== 1.32 ==== | ||
+ | |||
+ | < | ||
+ | # wget http:// | ||
+ | # rpm -ivh postgrey-1.32-1.rf.src.rpm | ||
+ | # cd / | ||
+ | # tar zxvf postgrey-1.32.tar.gz | ||
+ | # cd postgrey-1.32 | ||
+ | # wget http:// | ||
+ | # patch -p0 < targrey-0.31-postgrey-1.32.patch | ||
+ | # cd .. | ||
+ | # rm -f postgrey-1.32.tar.gz && tar czvf postgrey-1.32.tar.gz postgrey-1.32 | ||
+ | # rm -rf postgrey-1.32 | ||
+ | # rpmbuild -bb --clean / | ||
+ | # yum -y install postgrey && rpm -e postgrey | ||
+ | # rpm -ivh / | ||
+ | # rm -f / | ||
+ | # rpmbuild --rmsource --rmspec / | ||
+ | # rm -f postgrey-1.32-1.rf.src.rpm | ||
+ | </ | ||
+ | |||
+ | ===== Postfix設定ファイル編集 ===== | ||
+ | |||
+ | < | ||
+ | # vi / | ||
+ | smtpd_recipient_restrictions = | ||
+ | permit_mynetworks | ||
+ | permit_sasl_authenticated | ||
+ | reject_unauth_destination | ||
+ | --追加(ここから)-- | ||
+ | check_recipient_access hash: | ||
+ | check_client_access | ||
+ | check_client_access | ||
+ | check_policy_service | ||
+ | permit | ||
+ | |||
+ | smtpd_data_restrictions = | ||
+ | permit_mynetworks | ||
+ | permit_sasl_authenticated | ||
+ | reject_unauth_destination | ||
+ | check_recipient_access hash: | ||
+ | check_client_access | ||
+ | check_client_access | ||
+ | check_policy_service | ||
+ | permit | ||
+ | --追加(ここまで)-- | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== taRgrey用Postfix設定ファイルダウンロード ===== | ||
+ | < | ||
+ | # wget http:// | ||
+ | # tar zxvf postfix.conf.2.tar.gz | ||
+ | # cp postfix.conf.2/ | ||
+ | # cp postfix.conf.2/ | ||
+ | # cp postfix.conf.2/ | ||
+ | # rm -rf postfix.conf.2 | ||
+ | # rm -f postfix.conf.2.tar.gz | ||
+ | # postmap / | ||
+ | # postmap / | ||
+ | </ | ||
+ | |||
+ | ===== Postgrey起動スクリプト編集 ===== | ||
+ | |||
+ | < | ||
+ | # vi / | ||
+ | OPTIONS=" | ||
+ | ↓ | ||
+ | OPTIONS=" | ||
+ | </ | ||
+ | |||
+ | ===== Postgrey起動 ===== | ||
+ | < | ||
+ | # chkconfig postgrey on | ||
+ | # / | ||
+ | </ | ||
+ | |||
+ | ===== Postfix再起動(Postgrey連携有効化) ===== | ||
+ | |||
+ | < | ||
+ | # / | ||
+ | </ | ||
+ | |||
+ | ===== ログ ===== | ||
+ | |||
+ | === ◆遅延応答ログ === | ||
+ | |||
+ | < | ||
+ | # grep " | ||
+ | </ | ||
+ | |||
+ | === ◆遅延を待たずにDATAを送ってきたログ === | ||
+ | < | ||
+ | # grep " | ||
+ | </ | ||
+ | |||
+ | === ◆遅延を待たずに切断したログ === | ||
+ | |||
+ | < | ||
+ | # grep " | ||
+ | </ | ||
+ | |||
+ | {{tag> |