automatically delete (spam) email after x duration

Discussion in 'Server Operation' started by tfboy, Nov 16, 2015.

  1. tfboy

    tfboy Member

    I'm using a perfect server build on Ubuntu 14 LTS. All is working fine.
    I set up spamassassin and it's working great, but I really do get an awful lot of genuine spam arriving (like over 100 every day).
    Is it possible to set up a filter / script / tool so that all email in the spam folder is automatically deleted after x hours/days ?
    I know I can set up a retention policy on my client (I'm using Thunderbird) to do it, but obviously, it would be far better if the server did it on its own as part of a job.
    Any ideas?
    Thanks :)

Share This Page