![]() |
Move junk mail to a folder instead of deleting
With SpamAssassin turned on, the default spam strategy options let you either leave junk mail in your inbox (accept), or delete it completely (discard).
I hate having my mail deleted for me. I rarely have false positives, but I'd rather see the junk mail I'm getting to be able to make sure. These changes allow you to change the behavior to either:
This guide also assumes that your clients are using IMAP to access their mail, or at least have access to a web client that is using IMAP, so they can see the Junk folder. It also assumes that you are using Maildirs. First change the behavior of spamassassin. Edit /root/ispconfig/isp/conf/spamassassin.rc.master. Find the line: PHP Code:
PHP Code:
Now make sure that the Junk folders are created automatically. We can't move mail to a folder that doesn't exist. Edit /root/ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php. Find the line (around 107) that reads: PHP Code:
PHP Code:
Edit /home/admispconfig/ispconfig/web/isp_manager/lib/lang/en.lng Find the lines: PHP Code:
PHP Code:
Find the lines: PHP Code:
PHP Code:
|
That is exaclty what i looking for :) thanks :)
Any idea how to add this in listbox and extend default configuration? accept discard move to junk ? |
Quote:
Very useful mod, thanks. Exactly what I was alluding to in my original thread. |
Re Not Working
Hello, I have followed Step By Step
But i still have no luck with moving spam to junk folder, Even "Junk" folder is not created on webmail, in Admin page i do see , it is changed from Accpect lo leaveg in inbox and move to junk , but when i make it move junk that spam message jst get deleted nothing comes in Junk folder even if i create Junk folder by my self what could be worng ? I really like the idea , and i would like it to work i'm using 2.18 of ispconfig and i just followed setting that was put by ispconfig site to install the ispconfig thanks |
Works like a charm (ISPConfig 2.2.18, squirreloutlook 1.4.8)! Had to subscribe new folders in squirreloutlook user interface after login and setup them (deleted mails -> trash, sent mails -> sent).
Big thanks! |
JUNK Folder No Luck
Thanks for reply ,
I do see sent, trash, inbox, and i see its in user infer.. but there is no option for junk folder, 1) when i make new email account, Junk folder is not created 2) when i choice option to move spam to junk folder, rather then redirect mail to junk it just delete it message, (as it should do according to ISP setup, either mail in inbox or delete it ) Is there something wrong in my setup , or i'm missing something thanks Raman:confused: |
Quote:
Quote:
Also check twice steps described in posts above and make edited files backup first;) |
Auto Remove Junk Older than 14 Days
I have implemented the move spam to Junk, and ran into a problem :
Users getting their mail with pop3 don't see all the spam in .Junk Folder. The size of the junk folder will soon exeed the users disk quota. So i found a little script on the net, and modified it a bit for use with ISPConfig. It will remove Messages older than 14 days from users .Junk folder. I run it daily via cron. cat /etc/cron.daily/purge.junk Code:
#!/bin/shYou might want to add : /etc/init.d/dovecot restart to the script, to make dovecot rebuild message indexes. /Mark |
Hello,
unfortunately there are no tmpwatch rpm for SuSe Linux and tmpwatch sources are hard to find. My way for SuSe 10.1 is to replace Code:
tmpwatch -m $HOURS $user/Maildir/.Junk/{cur,new}Code:
find $user/Maildir/.Spam/cur -mtime +30 -exec rm {} \;Greets from Germany Grafzahl |
To install tmpwatch from source :
Code:
cd /usr/src/Mark |
| All times are GMT +2. The time now is 07:08. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.