[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
blocking spam with 2.6
Synopsis: can't get my new sendmail.cf file to pass the spam
rejection test at http://mail-abuse.org/rbl/usage.html
Details:
I have a 2.6 box running sendmail 8.9.3 for our outgoing mail. I'd
like to also direct incoming mail to this box and use the MAPS rbl
to reject spam before forwarding the email on to our primary mail
server. The MAPS-rbl web site at http://mail-abuse.org/rbl/usage.html
says:
=====================================================================
Sendmail version 8.9 is delivered with optional RBL support. Simply add:
FEATURE(rbl)
to your sendmail.mc file
=====================================================================
I copied /usr/share/sendmail/cf/openbsd-proto.mc to
/usr/src/usr.sbin/sendmail/cf/cf/config.mc, then added FEATURE(rbl)
to it. The resulting file looks like this:
=====================================================================
divert(-1)
#
# Copyright (c) 1998 Sendmail, Inc. All rights reserved.
# Copyright (c) 1983 Eric P. Allman. All rights reserved.
# Copyright (c) 1988, 1993
# The Regents of the University of California. All rights reserved.
#
# By using this file, you agree to the terms and conditions set
# forth in the LICENSE file which can be found at the top level of
# the sendmail distribution.
#
#
#
# This is the prototype file for a configuration that supports nothing
# but basic SMTP connections via TCP.
#
divert(0)dnl
include(`../m4/cf.m4')
VERSIONID(`@(#)openbsd-proto.mc $Revision: 1.3 $')
OSTYPE(openbsd)
FEATURE(nouucp)
FEATURE(rbl)
MAILER(local)
MAILER(smtp)
dnl
dnl Enforce valid Message-Id to help stop spammers
dnl
LOCAL_RULESETS
HMessage-Id: $>CheckMessageId
SCheckMessageId
R< $+ @ $+ > $@ OK
R$* $#error $: 553 Header Error
=====================================================================
I "compiled" my config.mc file using the m4 instructions here:
http://www.sendmail.org/m4/intro.html
My command string was:
m4 -D_CF_DIR_=../ /usr/share/sendmail/m4/cf.m4 config.mc > config.cf
There were no errors after this command.
I then tried the sendmail/rbl test at http://mail-abuse.org/rbl/usage.html
to make sure this config file was functional. It failed that test
=====================================================================
relay# sendmail -bt -C ./config.cf
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> .D{client_addr}127.0.0.1
> Basic_check_relay <>
rewrite: ruleset 192 input: < >
rewrite: ruleset 192 returns: OK
> .D{client_addr}127.0.0.2
> Basic_check_relay <>
rewrite: ruleset 192 input: < >
rewrite: ruleset 192 returns: OK
> relay#
=====================================================================
Is anyone out there using 2.6 OpenBSD/sendmail 8.9.3 to block spam?
If so, what method are you using? If you are doing this via the
'FEATURE(rbl)' parameter in a sendmail.mc file, do you see a problem
with my file shown above?
Any help with this would be greatly appreciated.
Thanks.
Joey
--
"When you understand UNIX, you will understand the world.
When you understand NT....you will understand NT" - Richard Thieme