Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5376500
  • 博文数量: 1144
  • 博客积分: 11974
  • 博客等级: 上将
  • 技术积分: 12312
  • 用 户 组: 普通用户
  • 注册时间: 2005-04-13 20:06
文章存档

2017年(2)

2016年(14)

2015年(10)

2014年(28)

2013年(23)

2012年(29)

2011年(53)

2010年(86)

2009年(83)

2008年(43)

2007年(153)

2006年(575)

2005年(45)

分类: LINUX

2006-11-21 08:41:15

It's work fine but how to make this config by default for all of my customers ?

Some customer have this .qmail-default file :

| /home/vpopmail/bin/vdelivermail '' /home/vpopmail/domains/customerdomain.com/postmaster

Thanks for your help,

ManFred

-----Message d'origine-----
De : Júlio Olivares [mailto:olivares@jmo.biz]
Envoyé : mercredi 15 novembre 2006 15:57
À :
Objet : Re: [toaster] Spam

It's easy:

- Install maildrop
- Create the /etc/bounce-no-mailbox file:
---
VPOP="| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox"
VHOME=`/home/vpopmail/bin/vuserinfo -d `

if (/^X-Spam-Flag: *YES/)
{
        # then try delivering it to a Spam folder
        exception {
                to $VHOME/Maildir/.Spam/
        }
        # ah well, I guess they'll just have to live with disappointment
        exception {
                `/usr/local/bin/maildirmake $VHOME/Maildir/.Spam`
                to $VHOME/Maildir/.Spam/
        }
}
else
{
        exception {
                to $VHOME/Maildir/
        }
}
---


- Edit .qmail-default:
| /var/qmail/bin/preline -f /usr/local/bin/maildrop /etc/bounce-no-mailbox

You're done.

So, message is checked at simscan level and it's moved to .Spam folder at
delivery level.
I use to reject at smtp level messages with more than 20 points and move the
others to .Spam folder.

Regards,
Julio




----- Original Message -----
From: "Frédéric Heynen" <>
To: <>
Sent: Wednesday, November 15, 2006 2:37 PM
Subject: RE : [toaster] Spam


How to use maildrop with simscan ?



________________________________

De: Júlio Olivares [mailto:olivares@jmo.biz]
Date: mar. 14/11/2006 13:33
À:
Objet : Re: [toaster] Spam



Sure. I use maildrop:


---
VPOP="| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox"
VHOME=`/home/vpopmail/bin/vuserinfo -d `

if (/^X-Spam-Flag: *YES/)
{
        exception {
                to $VHOME/Maildir/.Spam/
        }
        # create the user spam folder
        exception {
                `/usr/local/bin/maildirmake $VHOME/Maildir/.Spam`
                to $VHOME/Maildir/.Spam/
        }
}
else
{
        exception {
                to $VHOME/Maildir/
        }
}
---




----- Original Message -----
From: "Frédéric Heynen" <>
To: <>
Sent: Tuesday, November 14, 2006 9:33 AM
Subject: [toaster] Spam


Hi,

How is it possible to save all spam in one folder ? Or To save all spam in
user spam directory ?

Thanks for your help,

ManFred



阅读(1271) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~