Pop Before SMTP

Pop-before-smtp Home から pop-before-smtp-1.35.tar.gz をダウンロードし,適当なところで展開する。

/etc/pop-before-smtp-conf.pl の次の行の頭の # を外す。

#$file_tail{'name'} = '/var/log/maillog';

qpopper を使っている場合には次の3行の2行目と3行目の頭の # を外す。

# For Qpopper POP/APOP Server (matches in.qpopper, qpopper, and popper).
#$pat = '^(... .. ..:..:..) \S+ (?:in\.q|q)?popper\[\d+\]: Stats: \S+ ' .
#    '\d+ \d+ \d+ \d+ (?:\S+ )?(\d+\.\d+\.\d+\.\d+)';

別のPOPサーバの場合は該当のところの # を外す。 リストされていない銘柄の場合は自分で $pat を書かなければならない。

テストのため

./pop-before-smtp --config=./pop-before-smtp-conf.pl --debug --nowrite --reprocess

と打ち込んで様子を見る。 もし Perl モジュールが不足していれば,

perl -MCPAN -e 'install Date::Parse'
perl -MCPAN -e 'install Net::Netmask'

のようにしてインストールする。

うまくいくようであれば,次のようにしてファイルを移動する。

cp pop-before-smtp.init /etc/rc.d/init.d/pop-before-smtp
cp pop-before-smtp /usr/sbin/
cp pop-before-smtp-conf.pl /etc

デーモンとして起動する。

/etc/rc.d/init.d/pop-before-smtp start

Postfix 側の設定

/etc/postfix/main.cf に次のように書く。

smtpd_recipient_restrictions = permit_mynetworks,reject_non_fqdn_recipient,
      check_client_access hash:/etc/postfix/pop-before-smtp,
      reject_unauth_destination

main.cf を書き換えたら postfix reload と打ち込んでおく。


奥村晴彦

Last modified: 2004-04-15 09:30:57