From owner-freebsd-questions Wed Feb 14 04:38:56 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id EAA21368 for questions-outgoing; Wed, 14 Feb 1996 04:38:56 -0800 (PST) Received: from late5.e-technik.uni-erlangen.de (late5.e-technik.uni-erlangen.de [131.188.254.132]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id EAA21313 for ; Wed, 14 Feb 1996 04:37:23 -0800 (PST) Received: (from eilts@localhost) by late5.e-technik.uni-erlangen.de (8.6.10/8.6.6) id NAA04980; Wed, 14 Feb 1996 13:33:29 +0100 From: Hinrich Eilts Message-Id: <199602141233.NAA04980@late5.e-technik.uni-erlangen.de> Subject: Re: mail "loop back to myself" To: ipc1@tribeca.ios.com (Dale Benzer) Date: Wed, 14 Feb 1996 13:33:27 +0100 (MEZ) Cc: questions@FreeBSD.ORG In-Reply-To: from "Dale Benzer" at Feb 13, 96 09:57:55 am X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-questions@FreeBSD.ORG Precedence: bulk > > What are we doing wrong here???!!! Mail from the net is received but > returned by our server to the sender with this loops back on myself message. > > Anyone know how I can start ,debugging this? > If sendmail receives mail, it decides how to forward to what recipient by interpreting the "To:" address. You can observe it by starting sendmail with "-bt" and testing rulset 3,0 like: sendmail -bt ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) Enter
> 3,0 user@localhost [some lines deleted] rewrite: ruleset 0 returns: $# local $: @ user > 3,0 user@freebsd.org [some lines deleted] rewrite: ruleset 0 returns: $# smtp $@ freebsd . org . $: user < @ freebsd . or After "$#" the mailer to forward is cited, "local" at first example, "smtp" at secound. If sendmail decide to use a remote-mailer like "smtp" and recognize this will end up in sending to itself, famous "loop back to myself" appears. The way sendmail decide to use "local" is reading its configuration file, where lines like "Cwlocalhost" tell sendmail, "localhost" is local. If your host is named "tribeca.ios.com" adding a line "Cw tribeca.ios.com" should resolve the problem. Best to add any aliases, too. Hinrich -- Hinrich Eilts Uni: eilts@late.e-technik.uni-erlangen.de | G i b D O S | Priv.: eilts@tor.dialin.rrze.uni-erlangen.de | k e i n e | http://late5.e-technik.uni-erlangen.de/user/eilts.html | C h a n c e ! |