From owner-freebsd-questions@FreeBSD.ORG Wed Mar 3 01:27:53 2004 Return-Path: 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 B109716A4CE for ; Wed, 3 Mar 2004 01:27:53 -0800 (PST) Received: from fw.farid-hajji.net (fw.farid-hajji.net [213.146.115.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3856E43D3F for ; Wed, 3 Mar 2004 01:27:53 -0800 (PST) (envelope-from cpghost@cordula.ws) Received: from fw.farid-hajji.net (localhost [127.0.0.1]) by fw.farid-hajji.net (Postfix) with ESMTP id 86B0B40822; Wed, 3 Mar 2004 10:27:13 +0100 (CET) From: Cordula's Web To: readbsd@mind.net In-reply-to: <20040302181457.GA62575@mind.net> (message from John Fox on Tue, 2 Mar 2004 10:14:57 -0800) X-Mailer: Emacs-21.3.1/FreeBSD-4.9-STABLE References: <20040302181457.GA62575@mind.net> Message-Id: <20040303092713.86B0B40822@fw.farid-hajji.net> Date: Wed, 3 Mar 2004 10:27:13 +0100 (CET) cc: freebsd-questions@freebsd.org Subject: Re: DNSBL - including descriptive text in sendmail error message X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: cpghost@cordula.ws List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Mar 2004 09:27:53 -0000 John Fox wrote on Tue, 2 Mar 2004 10:14:57 -0800: > I'm running sendmail 8.12.11, and have successfully configured the > 'dnsbl' feature to reject mail from hosts in the black lists, but > spamhaus.org has requested that MTA error messages contain the > descriptive text corresponding to the blacklisted host (e.g. > "http://www.spamhaus.org/SBL/sbl.lasso?query=SBL14030"). This should happen automatically, when an MTA uses the DNSBL feature. I don't know about sendmail, but with postfix, all you need to do is to add the following lines to the smtpd_recipient_restrictions field in /usr/local/etc/postfix/main.cf: smtpd_recipient_restrictions = # ..... more restrictions here ..... reject_rbl_client bl.spamcop.net, reject_rbl_client sbl-xbl.spamhaus.org, reject_rbl_client list.dsbl.org, reject_rbl_client dnsbl.njabl.org, reject_rbl_client relays.ordb.org, reject_rbl_client opm.blitzed.org, reject_rbl_client dnsbl.sorbs.net, # ..... more restrictions here ..... The descriptive text, if provided by the blacklist as a TXT DNS record, is then always included in the bounce message. G'luck! -- Cordula's Web. http://www.cordula.ws/