HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   Spam Email Move and then Delete after X Amount of Days (http://www.howtoforge.com/forums/showthread.php?t=21850)

b00gz 31st March 2008 19:23

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.

b00gz 4th April 2008 17:21

No one has done this before?

till 4th April 2008 18:00

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.

b00gz 5th April 2008 00:07

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?

falko 5th April 2008 22:01

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.


All times are GMT +2. The time now is 12:18.

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