Custom handling of spam emails

Hi! I have a lot of email addresses (I generally use when I sign up for things) that were in credential dumps over the years and so they receive a lot of spam email. Until a few months ago I used my current provider to filter spam and then forward it to another system for analysis (I work in infosec), but somewhere around December they beefed up their SPAM filtering and now those emails are totally filtered instead of just showing up in my SPAM folder.

Is there anything I can do in MIAB to forward only SPAM emails to another system (a simple IMAP server I have set up, not something like gmail where it’s going to affect my IP/domain’s reputation) while also keeping them in my SPAM folder in my account?

Thanks in advance!

Look into getting a spam filter instead: securence