Move spams from inbox to spamfolder to get spamfilter learing

Hello,

i have here an Ubuntu 16.04 with virtualmin. Is there a way to configure virtualmin this way that i can move some spam from the inbox to spamfolder and the spamsystem on virtualmin is learing for automaticly? What ist with the dovecot-antispam-packages? Maybe is is an option? Or can i confiugre Virtualmin without this?

Thanks a lot!
Best Regards