環境
- OS: NetBSD 3.1
- sendmail: 8.14.4
- milter-greylist: 4.2.3
http://hcpnet.free.fr/milter-greylist/から milter-greylist-4.2.3.tgz をダウンロードします。
% tar zxvf milter-greylist-4.2.3.tgz
% cd milter-greylist-4.2.3
% ./configure --with-libGeoIP=/usr/local
% make
% su
# make install
/etc/mail/greylist.confは以前の設定に加えて GeoIPの設定を加えます
# DBの指定(必須です)
geoipdb "/usr/local/share/GeoIP/GeoIP.dat"
# 日本(JP)のIPアドレスからのものをwhitelistにする例
acl whitelist geoip "JP"
% su
# /etc/rc.d/miltergreylist restart
# /etc/rc.d/sendmail restart