Software installed in a computer to avoid spam emails

Everyday I got emails on my inbox and on my spam.
Lots of emails on my spam box but still there are emails on my inbox where I could say that they belong to a spam messages. What will be the software that I have to install on my PC to detect spam mails and automatically blocked.
I don't like to received emails on my spam box.
Please let me know.
