Neither postfix nor ispconfig has such a function builtin.
You will have to write script that goes trogh all email folders in /var/vmail to remove the olr mails and forward spam mails to spamassassin, e.g. as a cronjob.
Seee e.g. here for a script that removes old mails from maildir: