Unsolicited email is illegal. However, if you leave your address on a mailing list, notifications you receive may no longer qualify as spam. It’s very easy to get added to a spamming list, as people tend to leave their addresses on various sign-up services, newsletters, etc.