Postfix/Dovecot SpamAssassin/Amavisd-new deleting spam
I've setup my server with the above packages, along with Clamav and Clamav-daemon. (See my signiature for a complete list of packages I've installed.)
All the spam mail I'm receiving (about 10 mails/day) has the Subject prepended with '***SPAM***'. In my Outlook client, this is not a problem as I have a rule that moves them to a seperate folder and I manage them there. However my iPhone doesn't do this, so my display is cluttered with past spam messages.
Today I set "Move Spam Emails to Junk directory" ON in my ISPConfig for the mail accounts I'm monitoring on the iPhone. I'm hoping this will fix the clutter problem on my iPhone.
By moving the spam to the Junk folder, I'm worried that eventually my mail server will be overloaded with junk mail.
I understand that I can setup webmail (IMAP) and manage the Junk mail that way, but with lots of email accounts to check, this is not really satisfactory.
Can I setup SpamAssassin to delete mail in the junk folder after X days?
My VPS system:
(Ubuntu 10.04 LTS, Kernel 3.4.2-linode44, Apache 2.2.14, MySQL 5.1.63, PHP 5.3.2, ISPConfig 184.108.40.206, Webmin, PureFTP & Quota, phpMyAdmin, postfix, dovecot, clamav, spamassassin, awstats, fail2ban, Jailkit, bind9, vlogger, webalizer)