View Full Version : Spam folder
admins
5th February 2010, 16:35
Hi all
What must I do, that if sa tagges a mail as spam, it moves to a spamfolder in the mailbox?
If the spams older than 30days it should delete it.
How could I configure this?
Thanks
admins
till
6th February 2010, 19:11
1) Configure the spamfilter policy to tag the subject with ***SPAM***
2) Add a mail filter to the mailbox that moves these emails to the spam folder.
3) Write a script that deltes old emails from time to time and run it as cronjob or use the according function of your mail client, e.g. in thunderbird you can configure that emails older then x days get deleted from a folder.
admins
7th February 2010, 10:53
Hi Till
point 1. done
point 2. How could I configure that all ***SPAM*** will move to "SPAM" Folder in the receivers mailbox?
point 3: Has anyone a sample?
I found this:
Sieve: Filtering out spam
You already have a fully functioning mail server that even tags spam. But so far you left the actual task of sorting out the tagged spam to the user. We can do better by setting up server-side filters. The task ahead is to move all spam emails to a "Spam" folder of each user. We are using the raw power of the Sieve_ plugin which is a mail filter like procmail (which is not useful for virtual mailboxes). Sieve has a simple scripting language that allows us to forward all emails that are tagged by Spamassassin to a "spam" folder automatically. Somewhere above we defined a protocol lda and there set global_script_path = /home/vmail/globalsieverc. So that file will be the filter that is executed whenever an email is delivered to a virtual user. A basic recipe will do that. Create a /home/vmail/globalsieverc file containing these lines:
require ["fileinto"];
# Move spam to spam folder
if header :contains "X-Spam-Flag" ["YES"] {
fileinto "spam";
stop;
}
Are the path true, can I apply this?
Thanks
admins
till
7th February 2010, 16:13
ISPConfig is using maildrop and not sieve. Why so complicated,creating a filter rule is really easy (just a few clicks). Go to the mailbox settings in ispconfig, mailfilter tab, add new filter:
name: spam filter rule
subject contains: ***SPAM***
Move to: Junk
Thats all.
admins
7th February 2010, 22:25
Hi till
thanks. thats a way for each mailbox manually.
May if you've a few mailboxes 100 or thousend you can't do this.
How could I do this filter globally?
thanks
admins
till
7th February 2010, 22:40
Add a filter rule in the global .mailfilter file which is in /var/vmail/
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.