RaQ 4 / RaQ 550
This procedure should work on any Cobalt Series Appliance server. By
using
sendmail, it will contact black hole lists, and see if the person sending you
email
is an open relay. If they are, the email will be blocked. You may
loose some
REAL email, but you will start to see the amount of spam dwindle down
to
almost NOTHING.
Change to the Sendmail Configuration directory. It may vary on your
Cobalt. So, try to do a "locate cobalt.mc"
cd /usr/lib/sendmail-cf/cf
cp cobalt.mc cobalt.mc.safe
*Then* edit cobalt.mc and add these entries:
FEATURE(`dnsbl',`relays.ordb.org',`554 Rejected - see http://ordb.org/')dnl
FEATURE(`dnsbl',`bl.spamcop.net',`554 Rejected - see http://spamcop.net/')dnl
FEATURE(`dnsbl',`sbl.spamhaus.org',`554 Rejected - see http://spamhaus.org/')dnl
FEATURE(`dnsbl',`blackholes.mail-abuse.org',`554 Rejected - see http://mail-abuse.org/')dnl
FEATURE(`dnsbl',`dialups.mail-abuse.org',`554 Dialup rejected - see http://www.mail-abuse.org/dul/')dnl
FEATURE(`dnsbl',`relays.visi.com',`554 Known spammer site see: http://relays.visi.com')dnl
FEATURE(`dnsbl',`dnsbl.njabl.org',`554 Message from $&{client_addr}rejected - see http://njabl.org/')dnl
(Each FEATURE line is one line).
cd /usr/lib/sendmail-cf
m4 cf/cobalt.mc > /etc/mail/spamblock.cf
cd /etc/mail
This step is VERY, VERY, VERY important. Incase something
happens,
it allows you to go back to the orginal sendmail configuration!
cp sendmail.cf sendmail.cf.orig
cp spamblock.cf sendmail.cf
/etc/rc.d/init.d/sendmail restart
Since Sun Cobalt only really does updates, they do NOT put in a new cobalt.mc
file.
You may notice POP before SMTP not working, and also your mailing lists may
break.
If so, in /etc/mail/sendmail.cf do the following:
Search for:
# Access list database (for spam stomping)
Kaccess hash -o /etc/mail/access
After that, add the following:
# Pop-before-smtp secondary access hash
Kpopauth hash -a /etc/mail/popip.db
Search for:
# location of alias file
O AliasFile=/etc/mail/aliases
Directly after that, add:
O AliasFile=/etc/mail/aliases.majordomo