Koozali.org: home of the SME Server

automatic deletion of email trash file

Offline sal1504

  • ***
  • 149
  • +0/-0
automatic deletion of email trash file
« 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.

Offline stephen noble

  • *
  • 607
  • +1/-0
    • Dungog
Re: automatic deletion of email trash file
« Reply #1 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

Offline sal1504

  • ***
  • 149
  • +0/-0
Re: automatic deletion of email trash file
« Reply #2 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.

Offline stephen noble

  • *
  • 607
  • +1/-0
    • Dungog
Re: automatic deletion of email trash file
« Reply #3 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


« Last Edit: April 06, 2008, 04:27:21 AM by snoble »

Offline sal1504

  • ***
  • 149
  • +0/-0
Re: automatic deletion of email trash file
« Reply #4 on: April 06, 2008, 05:40:15 AM »
snoble

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