Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 31st March 2008, 18:23
b00gz b00gz is offline
Member
 
Join Date: Dec 2006
Posts: 55
Thanks: 1
Thanked 0 Times in 0 Posts
Default Spam Email Move and then Delete after X Amount of Days

What I would like to do is move all incoming mail that is marked as spam for all users to a Junk imap folder and then after 30 days if the email is still there delete it. It would be cool if there was someway on the day before the mail was going to be deleted if the users would get a message that says you have X amount of junk mail messages that are going to be deleted.
Reply With Quote
Sponsored Links
  #2  
Old 4th April 2008, 16:21
b00gz b00gz is offline
Member
 
Join Date: Dec 2006
Posts: 55
Thanks: 1
Thanked 0 Times in 0 Posts
Default

No one has done this before?
Reply With Quote
  #3  
Old 4th April 2008, 17:00
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,202
Thanks: 829
Thanked 5,420 Times in 4,262 Posts
Default

To move the spam mails to a folder, you can modify the spamassassin procmail recipe. The templates for the procmail recipes are in /root/ispconfig/isp/conf

To delete the mails and send a warning message, you will have to write a script that goes daily trough all user spam directories, sends a warning and deletes the mails one day later. I'am not aware of such a script for ISPConfig.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #4  
Old 4th April 2008, 23:07
b00gz b00gz is offline
Member
 
Join Date: Dec 2006
Posts: 55
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Where can I setup new variables like {PREFS_FILE} ? I want to create one called {JUNK_EMAIL}

Also How can I automatically create a Junk Email Imap Folder during the creation of the user?
Reply With Quote
  #5  
Old 5th April 2008, 21:01
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by b00gz
Where can I setup new variables like {PREFS_FILE} ? I want to create one called {JUNK_EMAIL}
You'd have to modify the source code of the files in /root/ispconfig/scripts/lib/classes.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
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


All times are GMT +2. The time now is 22:49.


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