From owner-freebsd-questions Sun Nov 10 13:12: 3 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DC89837B401 for ; Sun, 10 Nov 2002 13:12:01 -0800 (PST) Received: from mail.destar.net (240-7-237-24-cable.anchorageak.net [24.237.7.240]) by mx1.FreeBSD.org (Postfix) with SMTP id DBC7F43E42 for ; Sun, 10 Nov 2002 13:12:00 -0800 (PST) (envelope-from jonr@destar.net) Received: (qmail 184 invoked by uid 5001); 10 Nov 2002 17:07:20 -0000 Received: from unknown (HELO ?192.168.1.101?) (192.168.1.1) by 192.168.1.20 with SMTP; 10 Nov 2002 17:07:20 -0000 Subject: RE: How to stop SPAMMER??! From: Jon Reynolds To: Derrick Ryalls Cc: freebsd-questions@FreeBSD.ORG In-Reply-To: <001b01c288f6$6a00b9c0$0200a8c0@bartxp> References: <001b01c288f6$6a00b9c0$0200a8c0@bartxp> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.3 (1.0.3-6) Date: 10 Nov 2002 12:08:30 -0900 Message-Id: <1036962510.1691.0.camel@localhost.localdomain> Mime-Version: 1.0 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 2002-11-10 at 11:18, Derrick Ryalls wrote: > > > > -----Original Message----- > > From: owner-freebsd-questions@FreeBSD.ORG > > [mailto:owner-freebsd-questions@FreeBSD.ORG] On Behalf Of Warren Block > > Sent: Sunday, November 10, 2002 10:50 AM > > To: W. D. > > Cc: freebsd-questions@FreeBSD.ORG > > Subject: Re: How to stop SPAMMER??! > > > > > > On Sat, 9 Nov 2002, W. D. wrote: > > > > > At 19:49 11/9/2002, Steve Wingate wrote: > > > > > > 2. Are you the recipient of spam or is your box being used as a > > > >relay? > > > > > > Relay. > > > > http://logicsquad.net/freebsd/qmail-how-to.html > > That is the site I used to get a basic qmail system up and running. The > file which determines who can use qmail to relay is /etc/tcp.smtp > > 127.0.0.1:allow,RELAYCLIENT="" > 192.168.1.:allow,RELAYCLIENT="" > :allow > > The first two lines allow localhost and local network to relay using the > box, the third line I believe allows anyone to send mail to the box. If > the people using your qmail have fairly static ip addys, then just added > them to this file with the relayclient option. Ranges of ips are > enabled via dropping the last octet as shown in line two above. After > modifying tcp.smtp, you need to run this line for tcpserver > > /usr/local/bin/tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < > /etc/tcp.smtp > > > Hope this helps. > > > > > In fact, if your system is an open relay, you should > > disconnect it from the net until you have it closed. There > > are two reasons for that. The first is to stop the abuse of > > your system. The second is to keep your system from being > > added to lists of open relays or spam sources. > > > > -Warren Block * Rapid City, South Dakota USA > > > > Also make sure in your /var/qmail/control directory that you have an 'rcpthosts' file with only your domain in it eg 'echo your.domain >> rcpthosts' if this is not so then you are an open relay. Jon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message