From owner-freebsd-questions Mon Dec 2 12:09:06 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id MAA09887 for questions-outgoing; Mon, 2 Dec 1996 12:09:06 -0800 (PST) Received: from base486.synet.net (imdave@DIAL8.SYNET.NET [168.113.1.10]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id MAA09875 for ; Mon, 2 Dec 1996 12:09:01 -0800 (PST) Received: (from imdave@localhost) by base486.synet.net (8.8.3/8.8.3) id OAA23152 for freebsd-questions@freebsd.org; Mon, 2 Dec 1996 14:08:57 -0600 (CST) Date: Mon, 2 Dec 1996 14:08:57 -0600 (CST) From: Dave Bodenstab Message-Id: <199612022008.OAA23152@base486.synet.net> To: freebsd-questions@freebsd.org Subject: Sendmail: can one block mail *to* certain domains? Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk If someone could tell me if this is possible, and if so, where to start, I'd appreciate it. My problem is that my ISP has a customer for whom they queue email until the customer dials in and connects. The ISP uses dynamic IP assignment, and with a hack, changes the routing for X.COM to the IP# that they get assigned when they connect. At this point, all email destined for X.COM is routed directly to their machine's sendmail daemon. Unfortunately, when they disconnect, the routing of X.COM to the IP# is sometimes not reset. If I dial in and happen to get the IP# that X.COM had, then suddenly my FreeBSD system gets all the email that has been queued for X.COM! My system then tries to forward the mail, but since the address lookup for X.COM results in the IP# that I currently have, I get a sendmail error "mail loops back to myself". At this point, my system returns the mail to the sender. The load put on the system by this activity is excessive, not to mention the confusion that probably results to the senders. I would like to reject any mail destined for X.COM. I have seen solutions that block connections *from* certain domains, but I don't want to block my ISP of course. So, is it possible to block email *to* X.COM before the email gets dumped to my machine? (My ISP knows about the problem, but they haven't come up with a solution.) BTW, I'm running the latest sendmail 8.8.3 Thanks, Dave Bodenstab imdave@synet.net