From owner-freebsd-questions Sun Oct 22 20:24:42 2000 Delivered-To: freebsd-questions@freebsd.org Received: from leibnizcreations.com (leibnizcreations.com [161.58.246.160]) by hub.freebsd.org (Postfix) with ESMTP id 1D0F937B479 for ; Sun, 22 Oct 2000 20:24:40 -0700 (PDT) Received: from defcon5 (sdn-ar-001utprovP097.dialsprint.net [158.252.232.57]) by leibnizcreations.com (8.8.8) id VAA67621; Sun, 22 Oct 2000 21:24:31 -0600 (MDT) From: "Chris Mutchler" To: Cc: "general fbsd" Subject: RE: Setting up sendmail Date: Sun, 22 Oct 2000 21:23:51 -0600 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG If you don't have the following ruleset in your sendmail.cf file, I suggest adding it. It will prevent spammers from being able to use your server as a relay: ##################################### # Rulset 3 - Find address portion # ##################################### S3 R$@ $@ <@> Null address special R$*<>$* $@ <@> Null address special R$*<$+>$* $2 Get address portion #Uncomment the following lines to support fancy routing (with :,%) #R@$+,$+ $@$>93<@$1>,$2 Routes with ','... #R@$+:$+ $@$>93<@$1>:$2 ...or with ':' #R$+@$+@$+ $1%$2@$3 All but right @ to %... #R$+@$+ $@$>93$1<@$2> ...then accept @ addresses #R$+%$+ $1@$2 Convert all % to @... #R$+@$+@$+ $1%$2@$3 ...all but right @ back to %... R$+@$+ $@$>93$1<@$2> ...accept new @ addresses This will prevent spammers from being able to use the &,%, and other various symbols they use to inflitrate sendmail servers. Chris Mutchler Systems Administrator davron@leibnizcreations.com -----Original Message----- From: owner-freebsd-questions@FreeBSD.ORG [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of W. Kyle Unice Sent: Saturday, October 21, 2000 10:34 PM To: freebsd-questions@FreeBSD.ORG Subject: Setting up sendmail I am setting up sendmail and have a gateway to the internet running natd, ipfw, dhcpd, and named. When I sendmail from my internal clients I get "Relaying denied". I add the destination domain to the sendmail.cw file and do a Kill -INT, and then I can send to that domain. But I don't want to have to setup a list for every possible domain. Is there a way to allow mail relaying if the from field is a valid IP address on our internal net or if the sender is a registered user? Thanks in advance, Kyle W. Kyle Unice To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message