From owner-freebsd-questions Sun Feb 8 23:30:08 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA24340 for questions-outgoing; Sun, 8 Feb 1998 23:05:47 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from gdi.uoregon.edu (gdi.uoregon.edu [128.223.170.30]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA24310 for ; Sun, 8 Feb 1998 23:05:38 -0800 (PST) (envelope-from dwhite@gdi.uoregon.edu) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.7/8.8.8) with SMTP id XAA25248; Sun, 8 Feb 1998 23:05:31 -0800 (PST) (envelope-from dwhite@gdi.uoregon.edu) Date: Sun, 8 Feb 1998 23:05:31 -0800 (PST) From: Doug White Reply-To: Doug White To: Jason Korkin cc: freebsd-questions@FreeBSD.ORG Subject: Re: QUESTION: How do I turn off sendmail relaying? In-Reply-To: <34DB54A7.9EA88605@xtdl.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 6 Feb 1998, Jason Korkin wrote: > Hi, > We are having a huge problem with people using our host as a relay > when spamming accross the net... I have 2 questions, (1) how can I turn > off relaying so that they wont be allow to bounce off of our server, (2) > how can I only allow people to access our mail server from only our > domain (xtdl.com). > > # uname -a > FreeBSD user.xtdl.com 2.1.0-RELEASE FreeBSD 2.1.0-RELEASE #0 For (1), on 2.2.5 and later machines, we have a /etc/mail/ directory that contains patches to make Sendmail reject relays. You have to be running Sendmail 8.8.x for it to work. I'll attach a .tar.gz of the directory, primed with some domains and IPs to block, via private mail. You *MUST* be running 8.8.x or later of sendmail; others will barf. For (2), see `man ipfw'. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe questions" in the body of the message