It's not spam, you've accepted the terms when registering. Now, you need to shut it off in Linkedin itself, not in the e-mail provider.
Real spammers don't give you an option to opt out, some even include fake "unsubscribe" option, which in reality, only confirms to them that the e-mail is active and valid.