From owner-freebsd-questions Sun Oct 22 8:14:59 2000 Delivered-To: freebsd-questions@freebsd.org Received: from matt.MUNICH.v-net.org (u57n248.hfx.eastlink.ca [24.222.57.248]) by hub.freebsd.org (Postfix) with ESMTP id C07B437B479 for ; Sun, 22 Oct 2000 08:14:55 -0700 (PDT) Received: from unisys (Windozzze [192.168.8.2]) by matt.MUNICH.v-net.org (8.9.3/8.9.3) with SMTP id MAA01224; Sun, 22 Oct 2000 12:14:31 -0300 (ADT) (envelope-from matt@researcher.com) From: "Matt Rudderham" To: , Subject: RE: Setting up sendmail Date: Sun, 22 Oct 2000 12:13:03 -0300 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.50.4133.2400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >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? Yep, quite easy, if you're running on non-routable IPs on an internal network(192.168, 10. etc) you just add 192.168.8 as I've done on mine to /etc/mail/access Here is mine 192.168.8 RELAY Then # makemap hash access < access and # killall - hup sendmail I'm also new to this, so if anyone sees anything wrong with these instructions jump in, all I know if that they've worked for me.:) Matthew Rudderham To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message