基于Sendmail和Perl的邮件附件过滤系统(3)
其中 INPUT_MAIL_FILTER行是MIMEDefang所必需的。
sh Build sendmail.cf
sh Build install-cf
cd ../..
cd sendmail
sh Build install
cd ../libmilter
sh Build sendmail.cf
sh Build install-cf
cd ../..
cd sendmail
sh Build install
cd ../libmilter
sh Build install (创建libmilter库文件供MIMEDefang使用)
对其它的各种应用程序目录,同样用sh Build install安装。
d. 编译MIMEDefang
cd sendmail-8.12.1
mkdir -p /usr/local/include/sendmail
cp -R include/* /usr/local/include/sendmail
cp -R sendmail/*.h /usr/local/include/sendmail
mkdir -p /usr/local/lib
cp obj.Linux.2.4.9-7smp.i686/*/*.a /usr/local/lib
注:用你的obj.Linux.xxxxx平台的文件代替上面的obj.Linux.2.4.9-7smp.i686
cd mimedefang-2.1
./configure
make
make install
e. 设置过滤器规则
在mimedefang-2.1/example下面有各种预定义的规则,你需要拷贝一个到 /etc/mimedefang-filter,下面是我用的规则
顶(0)
踩(0)
- 最新评论