how to put emails not in contacts to a junk folder

Right-click on the message and choose Move to Junk, then choose the option that best describes what you want to do.