> I know that there are spam filters out there like Spam fighter and
> spam killer but those are passive ways to fight spam. It doesnt stop
> the spam its just stops you from seeing them in your inbox. Could
> there be a way to shutdown the spam relays? I'm learning C+ now and
> was learning about how email works to see if I could write such a
> program. RadarG
Do you run your own mail server? If you have your own domain and are
accepting mail from the world then there is an excellent option: real-time
blocklists, also called RBLs. There are several organizations around the
world that maintain lists of IP netblock that are spamming; many of these
lists are made public and can be queries using DNS.
The beauty is that mail servers like sendmail and postfix already support
using these DNSBLs directly. For instance, in postfix I use the following
configuration option to block lots of junk mail. And my server never even
accepts the mail, so I save tons of bandwidth.
smtpd_client_restrictions =
reject_rbl_client sbl.spamhaus.org
reject_rbl_client blackholes.easynet.nl
reject_rbl_client relays.ordb.org
reject_rbl_client list.dsbl.org
reject_rbl_client ipwhois.rfc-ignorant.org
The way this works is: when a mail relay connects to your host on port 25
and starts issuing commands to begin the SMTP mail transfer, your mail
server does a parallel check to these services. If it finds that the host
is listed in any of them, it returns an error to the connecting host. If a
legitimate user sent that email, s/he will see an error message indicating
which list blocked their email and how they can resolve the issue.
--
Jem Berkes
http://www.sysdesign.ca/