mailfiter 过滤ip

just posted @ 2011年4月06日 13:53 in 脚本 with tags qmail .mailfilter 过滤ip , 1308 阅读

 

#--------ip filter------------
if(/^Received: from (.*) by (.*)/)
{
   FROMIP=$MATCH1
   if($FROMIP ne "")
   {
       if (lookup($FROMIP, ".blockip"))
       {
          echo "[block ip]::$FROMIP::F:$SENDER,T:$EXT@$HOST,drop letter"
          to /dev/null
          exit
       }

   }
}

 

  • 无匹配
temple run 说:
2018年12月22日 15:39

Great article. I would love to read your article. with lots of interesting information.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter