|
如下:
- <?
- $QMAILDUID='id -u qmaild';
- $NOFILESGID='id -g qmaild';
- if(!file_exists("/home/vpopmail/etc/tcp.smtp.cdb"))
- {
- echo "file not exist<br>";
- exit();
- }
- else
- {
- $result=exec("/usr/local/bin/softlimit -m 2000000 \
- /usr/local/bin/tcpserver -v -p -x /home/vpopmail/etc/tcp.smtp.cdb -c 5 \
- -u $QMAILDUID -g $NOFILESGID 0 smtp /var/qmail/bin/rblsmtpd \
- /var/qmail/bin/qmail-smtpd 2>&1");
- echo "result: $result<br>";
- }
- $file=fopen("/var/qmail/control/badmailfrom","r");
- if($file)
- {
- $IPtext=file("/var/qmail/control/badmailfrom");
- for($i=0;$i<count(IPtext);$i++)
- {
- //echo ("<p>$IPtext[$i]</p>");
- $rblresult=exec("/var/qmail/bin/rblsmtpd $IPtext[$i]");
- echo "filter result: $rblresult<br>");
- $rbladd=exec("/var/qmail/bin/rblsmtpd -r relays.orbs.org -r rbl.maps.vix.com");
- echo "add result: $rbladd<br>");
- }
- //$respond="no this mailbox";
- //passthru("/home/vpopmail/bin/vdelivermail '' bounce-no-mailbox");
- }
- else
- echo "open file fail<br>";
- fclose($file);
- ?>
复制代码
麻烦提供一个意见,说明错处,让我修改。我感觉垃圾邮件过滤程序无法确定是对还是错,所以贴出来。
谢谢! |
|