免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: bulletming
打印 上一主题 下一主题

[Mail] 小奉献:filter垃圾邮件自定义过滤 for igenus [复制链接]

论坛徽章:
0
1 [报告]
发表于 2004-04-02 17:54 |显示全部楼层

小奉献:filter垃圾邮件自定义过滤 for igenus

楼主真是搞邮件的,竟然想到把文件转换为邮件明文贴出来!高!

我搞maildrop是可以过滤,但使用maildrop做filter后用户的空间限制就没了,不知道怎么回事!

请教各位高人指导!

论坛徽章:
0
2 [报告]
发表于 2004-04-02 22:28 |显示全部楼层

小奉献:filter垃圾邮件自定义过滤 for igenus

哪位大侠有maildrop做空间限制的配置例子啊?求救!

论坛徽章:
0
3 [报告]
发表于 2004-04-07 14:52 |显示全部楼层

小奉献:filter垃圾邮件自定义过滤 for igenus

没有了空间限制,邮件系统有过滤功能有什么用?

唉,要是这个php写的filter能融入maildrop的空间限制就好了!
期待ing....

论坛徽章:
0
4 [报告]
发表于 2004-04-07 14:55 |显示全部楼层

小奉献:filter垃圾邮件自定义过滤 for igenus

有空试一下!

[vchkpw] maildrop & quota & forward & autoresponder

--------------------------------------------------------------------------------

From: master
Subject: [vchkpw] maildrop & quota & forward & autoresponder
Date: Thu, 18 Mar 2004 08:58:41 -0800

Hi i have the following maildrop file to put spam on different folders :
SHELL="/bin/sh"
VHOME="/usr/local/vpopmail/domains/$USER/$EXT/Maildir"

if ( $SIZE < 262144 )
{
exception {
       xfilter "/usr/local/bin/spamassassin"
          }

}

if (/^X-Spam-Status: *Yes/)
{
    # try to deliver to the spam folder
    exception {
        xfilter "/usr/local/bin/deliverquota $VHOME/.Spam"
        exit
    }
}
  # default delivery
   exception {
      xfilter "/usr/local/bin/deliverquota $VHOME"
    }

### check if our message was deliverd - returncode 77 means that out maildir
was overquota - bouce mail
   if( $RETURNCODE == 77)
   {
      to "|/var/qmail/bin/bouncesaying 'user is over quota'"
   }



for the spam it seem to work well but when my user is over quota the mail is
rejected (that s great) but i don t get the email bounce back
so what s the problem in :
was overquota - bouce mail
   if( $RETURNCODE == 77)
   {
      to "|/var/qmail/bin/bouncesaying 'user is over quota'"
   }


in my log i have : delivery 1484: deferral:
user_is_over_quota/maildrop:_error_writing_to_mailbox.//usr/local/bin/maildr
op:_Unable_to_deliver_to_mailbox./
but nothing send back to me

and my others questions how with this configuration can we make work the
.qmail file inside the directory ? to make feature from qmailadmin worked
(the autorespond , the forwaders etc)
thanks

论坛徽章:
0
5 [报告]
发表于 2004-04-07 14:57 |显示全部楼层

小奉献:filter垃圾邮件自定义过滤 for igenus

see the maildrop script in my post 'Re: [vchkpw] possible bug in vdelivermail' of March 4. It should be possible to solve your problem with a line
to "| /path/to/vdelivermail '' bounce-no-mailbox"
that starts standard vpopmail/qmail delivery and takes the .qmail file in the mailuser home into account. However, in my case it doesnt work properly. It does all qmailadmin features fine except forwarding! I was not able to solve the issue and so far nobody came up with a solution. It seems not to be a maildrop problem as some .qmail features work. From looking at the vdelivermail source I see no obvious bug as well. So my guess is some interaction thing, a system wide parameter that is lost while using maildrop (that is maybe also the answer to your other question). At the moment I found no better way than to scan the .qmail file from maildrop and check for a forward address and do the forwrd thing from within maildrop (yuck!).

andrej
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP