Hosted by PSE.pl | Created: 2003-06-17 | Last update: 2004-03-17 07:40:32 UTC | GnuPG signature of this page
anfiTop | anfiUp | Andrzej Filip | Mirror Sites | GnuPG Keys | New!google
googleMy Postings | slashdotJournal | Showing Gratitude
Personal | Sendmail | Exim | General MTA | Cyrus IMAP | UUCP

Ident based rejecting (sendmail)

Abstract

The document describes how to make sendmail reject email messages based on information received by ident queries (RFC 1413).

It can be used to block access from some open proxies.


Copyright (c) 2002,2003 Andrzej Filip

Install

  1. Copy provided identblock.m4 file (the gpg signature into cf/feature directory.
  2. Add the following lines to *.mc file you use to generate sendmail.cf
    FEATURE(`identblock')dnl
    LOCAL_CONFIG
    C{BadIdentUsers}squid CacheFlowServer
    
  3. Make sure there are TABs (\t) between RHSes and LHSes in the above line (Right/Left Hand Side)
  4. Modify ident names to be blocked listed in C{BadIdentUsers} line to fit your requirements

Tests

Add the following rule set to your *.mc file

LOCAL_RULESETS
Stest
R$* $$| $*      $: $1 $| $2

after that you can use commands given below for testing the feature:

sendmail -C sendmail-test.cf -bt <<END
.D_IDENT:squid@localhost [1.2.3.4]
test,check_relay x.com $| 1.2.3.4
END

Additional

The recipe can be used to block misconfigured squid and CacheFlowServer running on unixes

Original Posting

googleThe posting
Subject: Re: block by sender ident=squid
Date: 2002-05-02
Newsgroups: comp.mail.sendmail
Message-ID: <3CD18E66.9C1F7A0B@bigfoot.com>