From owner-freebsd-questions Thu Jun 20 9:27:23 2002 Delivered-To: freebsd-questions@freebsd.org Received: from desert.turbowarp.net (turbowarp.net [198.78.66.83]) by hub.freebsd.org (Postfix) with ESMTP id BF13237B40C for ; Thu, 20 Jun 2002 09:25:20 -0700 (PDT) Received: from localhost (randy@localhost) by desert.turbowarp.net (8.11.6/8.11.6) with ESMTP id g5KGOCp06007; Thu, 20 Jun 2002 12:24:17 -0400 (EDT) (envelope-from randy@turbowarp.net) Date: Thu, 20 Jun 2002 12:24:12 -0400 (EDT) From: randy To: Kirk Strauser Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Sendmail Spam RBL In-Reply-To: <87bsa6hu8b.fsf@pooh.int> Message-ID: <20020620122106.M5335-100000@desert.turbowarp.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 20 Jun 2002, Kirk Strauser wrote: > > At 2002-06-20T14:33:00Z, randy writes: > > > Can it or is it really as difficult as they make it out to be? > > No. It's actually pretty easy, depending on how you've set up your > mailserver. I'm using FreeBSD 4.6-STABLE. Rather than writing a > sendmail.cf directly, I copied /etc/mail/freebsd.mc to > /etc/mail/.mc and edit it to my tastes. Then it's just a matter > of cd'ing to /etc/mail and typing 'make; make install; make restart' to > generate a sendmail.cf file, copy it into place, and restart sendmail. The > advantages of this are numerous: > > - Whenever FreeBSD updates some default mailsettings, incorporating them > into my configuration is just a diff-and-patch. > > - Editing a .mc file is *way* easier than mucking about in `sendmail.cf'. > > - The FreeBSD maintainers went through all the trouble of setting up an > easy-to-update framework, so you might as well use it. > Many thanks to the FreeBSD maintainers... that was too easy. I customized the 550 spam message to my own tastes. Then ran the ordb test email and it must work. > So, the big question to you is: did you do something similar, or did you > hand-edit the sendmail.cf files? > > > I just want to set up spam filter for "direct useage via DNS" ... for > > mail-abuse or ordb. > > I added the lines: > > # DNSBL from http://www.ordb.org/ > FEATURE(dnsbl, `relays.ordb.org', `"550 Mail from " $&{client_addr} " rejected, see http://ordb.org/"')dnl > > to /etc/mail/. Then I typed `make; make install; make restart' > and the system worked. Sendmail didn't want to start by itself for some reason, though. Oh, well... > > > Do I simply add "5.123.89.192.relays.ordb.org. IN A 127.0.0.2" to my DNS > > record for each domain? Do I need to do anything else? > > What are you trying to do there? > -- > Kirk Strauser > The Strauser Group - http://www.strausergroup.com/ > > 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