Postfix + Qpopper + DRAC で行います
【DRACインストール】
ここ http://pocketstudio.jp/drac-ja/index.html から
Dynamic Relay Authorization Control アーカイブをダウンロード後、展開
tar xvzf drac.tar.Z
INSTSLLにしたがってMakefileの以下の部分を変更
---------------------------
INSTALL = install
DEFS = -DSOCK_RPC -DFCNTL_LOCK -DGETHOST -DDASH_C
CFLAGS = $(DEFS) -g
LDLIBS = -ldb
RPCGENFLAGS = -C -I
MANADM = 8
--------------------------
make
make install
モジュールをライブラリディレクトリにコピー
cp libdrac.a /usr/lib
起動スクリプト設定
vi /etc/rc.d/initd/dracd
-----------------------------------
# dracd-setup
# Source function library.
. /etc/rc.d/init.d/functions
# See how we were called.
case "$1" in
start)
echo -n "Starting rpc.dracd daemon: "
daemon /usr/local/sbin/rpc.dracd -i -e 30&
echo
touch /var/lock/subsys/rpc.dracd
;;
stop)
echo -n "Stopping rpc.dracd daemon: "
killproc /usr/local/sbin/rpc.dracd
echo
rm -f /var/lock/subsys/rpc.dracd
;;
*)
echo "Usage: dracd {start|stop}"
exit 1
esac
exit 0
-------------------------------------
chmod 755 /etc/rc.d/initd/dracd
設定ファイル作成
vi dracd.allow-sample の 255.255.255.255 192.168.16.8 をコメントアウトする
cp dracd.allow-sample /etc/mail/dracd.allow
テスト *portmap が起動していること
/etc/rc.d/init.d/dracd start
解凍したディレクトリにある testing を起動
./testing localhost 192.168.1.1 (なんでもいい)
Dracのデータベースに保存されているか確認
db_dump -p /etc/mail/dracd.db
こんな風に出てくればOK
VERSION=3
format=print
type=btree
db_pagesize=512
HEADER=END
192.168.1.1 <-- testing で使用した IP が記述されいれば成功
1120372480
DATA=END
テストが終わったら初期化
./rpc.dracd -i
read more