Plug-in for SA to retrieve uncorrect SPAM mail?

pluk

Verified User
Joined
May 13, 2004
Messages
223
Does anyone have a plugin or something that can let the domain client see the list of spam mail online instead of goign into the SPAM box and retireve the mail if it was incorrectly tagged?

Then of course, after 30days, it would remove it. That would be cool!

Thanks!
 
In directadmin user spamassassin setup => use spamassassin option 'Send the spam to the appropriate users's spam folder'

use squirellmail to look the spam folder
user can decide to move to inbox so he can receive as usually.
 
The problem using this is that most don't look at it. So I want to get an automation to remove every 30 days let's say. Also, only inbox is possible to download so to view the rest of the fodlers, we need to use webmail or IMAP I guess.

Any other solutions?
 
pluk said:
The problem using this is that most don't look at it. So I want to get an automation to remove every 30 days let's say. Also, only inbox is possible to download so to view the rest of the fodlers, we need to use webmail or IMAP I guess.

Any other solutions?

If you want to cleam user_spam periodically, you can use this i believe. Not tested yet.

PHP:
#!/bin/sh
for i in `ls /usr/local/directadmin/data/users`; do
{
     for j in `ls /home/$i/.spamassassin/user_spam`; do
     {
          echo "" > /home/$i/.spamassassin/user_spam/$j;
     };
     done;
};
done;
exit 0;

Run it with cron.
 
Last edited:
Note that the provided code completelly deletes the content of the box.

Anyone care to write a script that will look at individual email addresses and delete any thirty days old or older?

That could be run nightly in cron.daily.

:)

Jeff
 
That's something I was curious about too. Question, you need to go into it and remove right?

Just a parallel question, Dovecot would save every message into a DB or independant file? WOuld that be easier to maintain then?
 
Actually, i put that code to run monthly. Isn't that the same effect with less overhead?
 
It'll delete all the email in the box, including the email that came in a minute before the script ran.

That's not quite what everyone wants :) .

Jeff
 
Ah.. i got your point. It shouldn't be too difficult with maildir as mails are kept separately but for mailbox may be we need a perl wizard or similar.
 
Back
Top