I am scanning email for spam before it hits my cpanel servers, email found to be spam is tagged in the header with: X-Spam-Flag: YES. I would like to create a folder in all email accounts called Junk. And then make sure all email with that header value get delivered automatically into that folder. Would be even better to figure out a cron job to empty it every 30 days or so. I know SA already does something like this, but I am not going to be running SA on my cpanel servers. Any suggestions are appreciated. I 100% understand this isnt the norm and is something were going to code up. Note, I am using dovecot on my servers.
Last edited: