Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: sal1504 on April 04, 2008, 04:34:42 PM

Title: automatic deletion of email trash file
Post by: sal1504 on April 04, 2008, 04:34:42 PM
We have a SMEServer 7.3 server we are using for a mail server with roughly 150 email accounts at our business. Most of the users are good about checking and cleaning there email trash can, but we have a few that just can't seem to fine the time to clean there mail. Is there any way to automatically clean the email trash can after 7 to 10 days? The email is setup as an IMAP and we are using GroupOffice as the web interface for the mail.
Title: Re: automatic deletion of email trash file
Post by: stephen noble on April 05, 2008, 11:56:50 AM
sit with them and show them how to tick the box in there email client that says, 'empty trash on exit'

or
there is a script that auto deletes mail in junkmail after a set time
modify that, or hire someone to do it for you
Title: Re: automatic deletion of email trash file
Post by: sal1504 on April 06, 2008, 03:10:32 AM
snoble

Sometimes, no matter how much time you spend with a person it just doesn't sink in. What's the saying "It's hard to soar with eagles when you work with turkeys." Anyway, you mention a script that auto deletes the junkmail. Where is this script located and what is it called. I can't seem to find it.
Title: Re: automatic deletion of email trash file
Post by: stephen noble on April 06, 2008, 04:23:40 AM
/etc/cron.d/purge_junkmail
/etc/e-smith/events/actions/purge-junkmail-folders

default is to delete after 90 days
[root@kiwi smb.conf]#  config show spamassassin
spamassassin=service
    DNSAvailable=yes
    MessageRetentionTime=90

[root@kiwi smb.conf]#  config setprop spamassassin MessageRetentionTime 7
[root@kiwi smb.conf]#  config show spamassassin
spamassassin=service
    DNSAvailable=yes
    MessageRetentionTime=7

now 7 days


Title: Re: automatic deletion of email trash file
Post by: sal1504 on April 06, 2008, 05:40:15 AM
snoble

thanks for the quick answer i will give it a try.