SpamAssissan Block List

Bob Richards bob at
Tue Aug 15 22:33:17 BST 2006

On Tuesday 15 August 2006 16:52, Robert Spangler wrote:

> I'd like to block domains instead of complete email addresses, anyone know
> how to do this with Spam Assissan?

in ~/.spamassassin/user_prefs you can have  entries of the sort: 
Blacklist_from  *.jp *.ru *.tw *.cn
or: Blacklist_from

This will do what you want.

However, IMHO, it is better to deny access to spammers/abusers  right at the 
MTA port (25)

For sendmail, etc/mail/access can contain things like:       550 We don't accept mail from
59.117                   550 We don't accept mail from spamming IPs
64.2                       550 We don't accept mail from spammers                   550 We don't accept mail from Brazil                   550 We don't accept mail from Argentina                   550 China GO AWAY
*.info		       550 Keep your INFO to yourself!

After changing /etc/mail/access; do a make;make install as root in /etc/mail/
this will create a new /etc/mail/access.db file, which sendmail will read 
during the smtp connect phase of the transaction, so spammy gets Rejected 
before any spam gets into your box, and BEFORE it has to be transported and 
analysed by spamassassin.  Faster, more effecient, less load on your server 
and bandwidth, and the spam stays on spammys server undelerivable! 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <>
-------------- next part --------------
This message is from the kde mailing list.
Account management:
More info:

More information about the kde mailing list