From owner-freebsd-questions Sun Oct 22 11:53:48 2000 Delivered-To: freebsd-questions@freebsd.org Received: from phoenix.ea4els.ampr.org (206-MADR-X122.libre.retevision.es [62.83.19.206]) by hub.freebsd.org (Postfix) with ESMTP id DFC1F37B479 for ; Sun, 22 Oct 2000 11:53:44 -0700 (PDT) Received: from unicorn.ea4els.ampr.org (unicorn.ea4els.ampr.org [44.133.228.2]) by phoenix.ea4els.ampr.org (Postfix) with ESMTP id 8563C8331 for ; Sun, 22 Oct 2000 21:00:09 +0200 (CEST) Received: by unicorn.ea4els.ampr.org (Postfix, from userid 1001) id B54D5267; Sun, 22 Oct 2000 20:54:39 +0200 (CEST) To: freebsd-questions@freebsd.org Subject: Re: Setting up sendmail References: From: Simon J Mudd Date: 22 Oct 2000 20:54:39 +0200 In-Reply-To: kyle@midnighttech.com's message of "22 Oct 2000 12:38:54 +0200" Message-ID: <8666mkso40.fsf@unicorn.ea4els.ampr.org> Lines: 25 X-Mailer: Gnus v5.7/Emacs 20.6 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG kyle@midnighttech.com ("W. Kyle Unice") writes: > 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? It is not a good idea, and in the long time the spammers will find you, to simply use the sender envelope address (not quite the From: line) to validate relaying. If you trust clients within a a certain ip range then it makes more sense to setup sendmail to accept mail from these clients for relaying. I've not used sendmail for some time, so don't remember how to set it up to validate based on the incoming smtp client's ip, but I'm sure this is possible. Simon -- Simon J Mudd, Madrid SPAIN Tel: +34-91-408 4878 email: sjmudd@pobox.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message