Nowadays there are over 1,500 TLDs, I would be lucky if 50 of them were the source of legetimate emails we receive, so how do I block 1,500 TLDs I don't wish receive spam from?
In sendmail I just add a single line for each TLD or domain into /etc/mail/access and make a hash db from it.
eg...