From owner-freebsd-questions Sun Nov 10 12:19:11 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 00BDC37B401 for ; Sun, 10 Nov 2002 12:19:10 -0800 (PST) Received: from truman.datasphereweb.com (12-231-81-122.client.attbi.com [12.231.81.122]) by mx1.FreeBSD.org (Postfix) with SMTP id 2ED0743E6E for ; Sun, 10 Nov 2002 12:19:09 -0800 (PST) (envelope-from ryallsd@datasphereweb.com) Received: (qmail 14252 invoked from network); 10 Nov 2002 20:25:47 -0000 Received: from 12-229-238-38.client.attbi.com (HELO bartxp) (12.229.238.38) by 12-231-81-122.client.attbi.com with SMTP; 10 Nov 2002 20:25:47 -0000 From: "Derrick Ryalls" To: Subject: RE: How to stop SPAMMER??! Date: Sun, 10 Nov 2002 12:18:58 -0800 Message-ID: <001b01c288f6$6a00b9c0$0200a8c0@bartxp> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal 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 > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG=20 > [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??! >=20 >=20 > On Sat, 9 Nov 2002, W. D. wrote: >=20 > > At 19:49 11/9/2002, Steve Wingate wrote: >=20 > > > 2. Are you the recipient of spam or is your box being used as a=20 > > >relay? > >=20 > > Relay. >=20 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=3D"" 192.168.1.:allow,RELAYCLIENT=3D"" :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. >=20 > In fact, if your system is an open relay, you should=20 > disconnect it from the net until you have it closed. There=20 > are two reasons for that. The first is to stop the abuse of=20 > your system. The second is to keep your system from being=20 > added to lists of open relays or spam sources. > =20 > -Warren Block * Rapid City, South Dakota USA >=20 >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message >=20 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message