Did you know that on our managed servers you can empty the trash and the spam folder automatically?
Just open the mailbox in ISPConfig and then you can set the duration how long mails should stay in the trash or in the spam folder under Mail Filter.