From owner-freebsd-questions Mon Sep 21 12:04:04 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA09088 for freebsd-questions-outgoing; Mon, 21 Sep 1998 12:04:04 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from pau-amma.whistle.com (s205m64.whistle.com [207.76.205.64]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA08989 for ; Mon, 21 Sep 1998 12:03:28 -0700 (PDT) (envelope-from dhw@whistle.com) Received: (from dhw@localhost) by pau-amma.whistle.com (8.8.8/8.8.7) id MAA09360; Mon, 21 Sep 1998 12:01:52 -0700 (PDT) (envelope-from dhw) Date: Mon, 21 Sep 1998 12:01:52 -0700 (PDT) From: David Wolfskill Message-Id: <199809211901.MAA09360@pau-amma.whistle.com> To: jacques@wired.ctech.ac.za, questions@FreeBSD.ORG Subject: Re: sendmail 8.9.1a In-Reply-To: <360636D2.2781E494@wired.ctech.ac.za> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >Date: Mon, 21 Sep 1998 13:21:54 +0200 >From: Jacques Hugo >I'm having some trouble with sendmail's config. >These are some of my features: >FEATURE(`MAIL_HUB',`some.other.system') >My mail still gets relayed by localhost, not >some.other.system. >... >Am I screwing up with the syntax here? Any help >appreciated. The m4 technique for creating sendmail.cf file is very helpful, but there's an issue that is probably under-documented: when m4 processes the .mc file, it makes a single pass. Thus, when m4 reads one of the "included" files, unless the various "variables" are set correctly, they won't do any good -- it doesn't help to set the values *after* the file in question is read. Or, to summarize: the specifications in the .mc file are order-sensitive (and the order isn't necessarily easy to determine). To reduce the problems you're seeing, be sure the defines & FEATUREs come before such things as MAILERs. (And yes, it could well be that you're having completely unrelated problems -- but this seemed like a fairly good time to point pout the above.) david -- David Wolfskill UNIX System Administrator dhw@whistle.com voice: (650) 577-7158 pager: (650) 371-4621 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message