[RT-admin] Check if spam filter script is running
According to RT service documentation, there are some maintenance actions happening like spam training in RT. Since we're receiving a lot of spam, we should verify if spam filter is actually running.
Spam training Every mail sent to RT is also sent to the rtmailarchive account. This is required to be able to train SpamAssassin as it can only learn from unaltered email messages. A three steps cronjob is run daily. Step 1: Every mail in Maildir/.help* is checked against the RT. For each message, we look up a matching ticket using the Message-Id header. If the ticket is in a help* queue and has status resolved, we move it to the ham training folder. If the ticket in in the spam queue and has status resolved, we move it to the spam training folder. If the file is more than 100 days old, we delete it. Step 2: SpamAssassin is fed with the content of the ham and spam training folder. After the process, the message is moved to the corresponding learned folder. Step 3: Message in the learned folders are deleteed.