How do I prevent the spam mail coming to my mailbox using filter. are there any commands that I have to give?

Go to keyword spam settings, or better yet on the bottom of your email box there is a blue underlined word that says spam filtering. Either way it sets up a spam folder for all unwanted mail. To get there just click on spam folder at bottom of mailbox.