I'm using Red Hat 7.3, and I'm having an anti-spam issue.

I keep getting emails from direct4optin.com.  I have their upstream IP block 
listed in my /etc/mail/access file, but they still keep getting through.

In /etc/mail/access, I have:
# PG & C Leasing, INC 209.236.0.0-209.236.63.255 direct4optin.com and siblings
209.236.0.0/16                  ERROR:"550 We don't accept mail from spammers"

I did not forget to create the db:
[root@uni etc]# l /etc/mail/access*
-r--r--r--    1 root     root         3359 Nov 24 12:47 /etc/mail/access
-rw-r--r--    1 root     root        12288 Nov 24 12:48 /etc/mail/access.db

In /etc/sendmail.cf, I have:
# Access list database (for spam stomping)
Kaccess hash -o /etc/mail/access.db

[root@uni etc]# rpm -q sendmail
sendmail-8.11.6-15

Here is a sample of what's coming through:
Return-Path: <[EMAIL PROTECTED]>
Received: from host2 (host2.direct4optin.com [209.236.32.15] (may be forged))
        by uni.thekramers.net (8.11.6/8.11.6) with ESMTP id gAP8J3Y07242
        for <[EMAIL PROTECTED]>; Mon, 25 Nov 2002 03:19:03 -0500
Message-Id: <[EMAIL PROTECTED]>
Received: from listserv1 (192.168.3.10) by host2 (LSMTP for Windows NT v1.1b) 
with SMTP id <5.00010B72@host2>; 24 Nov 2002 8:24:21 -0500
Date: Sun, 24 Nov 2002 20:16:24 -0500
From: Homer Simpson <[EMAIL PROTECTED]>
Reply-to: [EMAIL PROTECTED]
Error-path: [EMAIL PROTECTED]
Subject: NEW -- Simpsons Talking Bottle Opener
To: [EMAIL PROTECTED]
Mime-Version: 1.0
Content-Type: text/html;
  charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-UID: 24957


***ALSO***

I noticed on http://www.sendmail.org/m4/anti_spam.html that you can have 
sendmail reject on arbitrary headers.  It says you put something like this in 
sendmail.cf:
LOCAL_RULESETS
HMessage-Id: $>CheckMessageId

SCheckMessageId
R< $+ @ $+ >            $@ OK
R$*                     $#error $: 553 Header Error

To date, I've been able to do everything in my M4 file though, and I would 
hate to have to modify my sendmail.cf file for this one feature.  Is there a 
way to do this in the sendmail M4 file?


Thanks.
-------------------------------------------------------------------
DDDD   David Kramer                           http://thekramers.net
DK KD  
DKK D  Whenever I think I've accomplished a lot, I just remind 
DK KD  myself that when Mozart was my age -- he'd been dead 
DDDD   for 29 years!                                  - Howard Ruff



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to