Not all email hosting services filter spam and viruses, but most of the providers on my list do. This means that spam is isolated from the rest of your mailbox, while viruses are blocked before they can cause any damage. That said, it’s also up to you to make sure that you’re following best practices in terms of email security. For instance, you can better secure your email if you use a strong password. Some hosts also give you the option to enable two-factor authentication.