下载包:
解压libsnert包
进入lib目录执行命令:
./configure --with-db=/usr #检查berkeley db支持
make build
make install
进入目录执行命令:
/configure --enable-run-user=postfix --enable-run-group=postfix
make build
make install
安装成功,再你的/usr/local/sbin目录下应该能看到milter-limit
启动milter-limit:
/usr/local/sbin/milter-limit verbose=all policy=later -start
May 17 20:38:19 inshir milter-limit[6592]: failed to open "/etc/mail/access.db"
安装db4-devel即可
yum install db4-devel