[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] [QUBE3] How do I use a block list?
- Subject: Re: [cobalt-users] [QUBE3] How do I use a block list?
- From: "Chris L" <clathem@xxxxxxxxxxxxx>
- Date: Tue May 13 07:07:00 2003
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
> List,
> Can I block spam using a mailblock list? (like this one:
> http://spamcop.net/fom-serve/cache/291.html)
> Thanks.-
>
Pablo,
You will need to build the sendmail.cf file including those "Features" in
it.
Here are the steps I've used on an XTR and a Raq 550:
1. Change to the directory where the cobalt.mc file is located.
cd /usr/lib/sendmail-cf/cf/
2. Make a backup of your cobalt.mc file
cp cobalt.mc cobalt.mcBackup
3. Edit cobalt.mc and add the lists you want to use to the #Features
section. I use the following for my blacklisting:
FEATURE(`dnsbl', `relays.ordb.org', `"550 - Email blocked using ORDB.org -
see <http://ORDB.org/lookup/?host="$&{client_addr}">"')dnl
FEATURE(`dnsbl', `bl.spamcop.net', `"550 - Email blocked by SpamCop see:
http://spamcop.net/bl.shtml?"$&{client_addr}')dnl
FEATURE(`dnsbl', `list.dsbl.org', `"550 - Email blocked see:
http://dsbl.org"')dnl
FEATURE(`dnsbl', `dnsbl.njabl.org', `"550 - Email blocked due to possible
SPAM see: http://njabl.org'")dnl
*Be sure that none of these lines wrap, as this will break sendmail.
4. Save the updated cobalt.mc file
5. Create the new sendmail.cf file.
m4 ../m4/cf.m4 cobalt.mc > cobalt.cf
*Note: If you get an error when doing this, edit the cobalt.mc file and
change the line near the top from "include(`m4/cf.m4')dnl" to
"include(`../m4/cf.m4')dnl"
5. Copy the new sendmail.cf file to where it should be.
cp cobalt.cf /etc/mail/sendmail.cf
7. Restart sendmail.
/etc/rc.d/init.d/sendmail restart
You're done! Sendmail will now filter your mail according to the lines you
added to the cobalt.mc file.
*One more note: So far every sendmail patch released by Sun/Cobalt has
broken my filtering, so be prepared to rebuild the sendmail.cf file after
applying a Sun patch.
If you have questions/problems let me know.
Regards,
Chris