From owner-freebsd-questions Fri Aug 28 14:01:59 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA20742 for freebsd-questions-outgoing; Fri, 28 Aug 1998 14:01:59 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from lamb.sas.com (lamb.sas.com [192.35.83.8]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA20730 for ; Fri, 28 Aug 1998 14:01:44 -0700 (PDT) (envelope-from brdean@unx.sas.com) Received: from mozart (mozart.unx.sas.com [192.58.184.8]) by lamb.sas.com (8.8.7/8.8.7) with SMTP id RAA13750 for ; Fri, 28 Aug 1998 17:00:47 -0400 (EDT) Received: from wagner.unx.sas.com by mozart (5.65c/SAS/Domains/5-6-90) id AA16034; Fri, 28 Aug 1998 17:00:46 -0400 Received: from dean.pc.sas.com by wagner.unx.sas.com (5.65c/SAS/Generic 9.01/3-26-93) id AA20271; Fri, 28 Aug 1998 17:00:46 -0400 Received: (from brdean@localhost) by dean.pc.sas.com (8.9.1/8.9.1) id RAA10786; Fri, 28 Aug 1998 17:00:45 -0400 (EDT) (envelope-from brdean) From: Brian Dean Message-Id: <199808282100.RAA10786@dean.pc.sas.com> Subject: sendmail config question To: freebsd-questions@FreeBSD.ORG Date: Fri, 28 Aug 1998 17:00:45 -0400 (EDT) X-Mailer: ELM [version 2.4ME+ PL43 (25)] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I want all mail sent from my localhost to be handled by another mail host, where users may or may not have a .forward file directing the mail back to the original host. In that case I want the mail to be delivered locally. I've got this working but only if outgoing addresses are qualified with a domain name, i.e., 'user@somewhere.com' works, but just 'user' is delivered locally without sending to the mail host. Here's my m4 config file: divert(0)dnl VERSIONID(`@(#)bsd.mc $Revision: 1 $') OSTYPE(bsd4.4)dnl DOMAIN(generic)dnl FEATURE(mailertable, `hash -o /etc/mailertable')dnl MASQUERADE_AS(somewhere.com)dnl FEATURE(masquerade_envelope)dnl define(`SMART_HOST', mailhost.somewhere.com)dnl define(`LOCAL_RELAY', mailhost.somewhere.com)dnl define(`MAIL_HUB',mylocalhost.somwhere.com)dnl define(`LUSER_RELAY', mailhost.somewhere.com)dnl define(`confCW_FILE', `-o /etc/sendmail.cw')dnl LOCAL_USER(root)dnl MAILER(local)dnl MAILER(smtp)dnl My understanding is that defining LOCAL_RELAY is supposed to handle the case of unqualified addresses, but it is not working for me here. While experimenting, I've found that the order of the defines in the config file is important, but I still can't seem to make it work even by re-ordering. Any ideas? sendmail version: 8.9.1 FreeBSD version: 3.0-980825-SNAP Thanks for any help. -Brian -- Brian Dean, brdean@unx.sas.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message