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
阅读(1266) | 评论(0) | 转发(0) |