Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 24th November 2009, 16:20
pbrille pbrille is offline
Junior Member
 
Join Date: Sep 2009
Posts: 21
Thanks: 1
Thanked 0 Times in 0 Posts
Default spamfilter -> move to folder

Hi,

My ISPconfig 3 / Ubuntu Server already acts as a Mailserver. With the help of spamassassin it's possible for the client to detect which mail might be spam.

I'm wondering if this is possible:
The Mailserver puts the spam-marked mails into a special folder within the imap account so the mailclient doesn't need to do it.

This leads to my next question:
How can I arrange that every newly created mailbox automatically creates specific folders like "spam, sent, drafts, etc" within the imap inbox folder.

Thx a lot!
Reply With Quote
Sponsored Links
  #2  
Old 25th November 2009, 13:40
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,820
Thanks: 821
Thanked 5,340 Times in 4,189 Posts
Default

Set the spamfilter to rewrite the subject of the email to e.g. **SPAM*** and then use the filters in the mail account settings to move the emails to a maildir of your choice.

Quote:
How can I arrange that every newly created mailbox automatically creates specific folders like "spam, sent, drafts, etc" within the imap inbox folder.
You will have to change the sourcecode of the email plugin in the server part.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 25th November 2009, 19:58
pbrille pbrille is offline
Junior Member
 
Join Date: Sep 2009
Posts: 21
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till View Post
You will have to change the sourcecode of the email plugin in the server part.
I'm not sure if you got it right. I want the spams to be move server side, not by the mailclient.
Rewriting the email plugin sourcecode? Am I the first one who is wishing such a feature? Is there any documentation regarding this?
Reply With Quote
  #4  
Old 26th November 2009, 07:43
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,820
Thanks: 821
Thanked 5,340 Times in 4,189 Posts
Default

I had understand your question and what I described above moves the emails on the server side and not the client.

Quote:
Rewriting the email plugin sourcecode? Am I the first one who is wishing such a feature? Is there any documentation regarding this?
All available info is in the developer forum.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 26th November 2009, 09:41
pbrille pbrille is offline
Junior Member
 
Join Date: Sep 2009
Posts: 21
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till View Post
I had understand your question and what I described above moves the emails on the server side and not the client.
All available info is in the developer forum.
Maybe I did not get it. On the one hand you're saying that it needs to be setup in the mailbox settings, on the other hand you're saying that the mail mailplugin needs to be modified.

I looked at "Email - Global Filters - Content Filter" but I have no idea how to do this accordingly.
Reply With Quote
  #6  
Old 26th November 2009, 09:48
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,820
Thanks: 821
Thanked 5,340 Times in 4,189 Posts
Default

You asked 2 different questions and I gave you 2 answers.

The first one answers the question about Filtering of spam and the second one answers your question about createing new maildirs automatically on account creation.

Quote:
I looked at "Email - Global Filters - Content Filter" but I have no idea how to do this accordingly.
Add a new filter that filters for ***SPAM*** in the ubject tab and select to move them to the spam filter. Adding these filters works similarily like doing it in any email client like thunderbird.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 26th November 2009, 10:04
pbrille pbrille is offline
Junior Member
 
Join Date: Sep 2009
Posts: 21
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till View Post
You asked 2 different questions and I gave you 2 answers.

The first one answers the question about Filtering of spam and the second one answers your question about createing new maildirs automatically on account creation.



Add a new filter that filters for ***SPAM*** in the ubject tab and select to move them to the spam filter. Adding these filters works similarily like doing it in any email client like thunderbird.
I see, I'm sorry I did not get that.
Regarding Spamfilter:
I set it up the following way:
Filter: Header Filter
RegExp: ***SPAM***
Data: <<empty>>
Action: Filter

But how does ispconfig know which folder it has to move in?
Reply With Quote
  #8  
Old 3rd December 2009, 14:39
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,820
Thanks: 821
Thanked 5,340 Times in 4,189 Posts
 
Default

Quote:
But how does ispconfig know which folder it has to move in?
You have to enter the foldername in the data field. E.g. "Junk"
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to move text files to parent folder PatrickMc Programming/Scripts 5 15th July 2009 08:19
How to move files from multiples folder to their parent directoy nura235 Programming/Scripts 1 24th June 2009 06:10
Move junk mail to a folder instead of deleting grant Tips/Tricks/Mods 20 22nd October 2008 23:09
Move email to different folder rusty Server Operation 1 20th May 2008 15:42
Rename folder -> create new folder equals contents of old folder BlueStream General 20 15th December 2006 03:32


All times are GMT +2. The time now is 09:20.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.