環境
- OS: NetBSD 3.1
- sendmail: 8.14.3
- milter-greylist: 4.1.6
http://hcpnet.free.fr/milter-greylist/から milter-greylist-4.1.6.tgz をダウンロードします。
% tar zxvf milter-greylist-4.1.6.tgz
% cd milter-greylist-4.1.6
% ./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