From owner-freebsd-questions@FreeBSD.ORG Mon Sep 19 11:08:54 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 CD7DF16A41F for ; Mon, 19 Sep 2005 11:08:54 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from kane.otenet.gr (kane.otenet.gr [195.170.0.95]) by mx1.FreeBSD.org (Postfix) with ESMTP id F155B43D45 for ; Mon, 19 Sep 2005 11:08:53 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from flame.pc (aris.bedc.ondsl.gr [62.103.39.226]) by kane.otenet.gr (8.13.4/8.13.4/Debian-1) with SMTP id j8JB8ot7030768 for ; Mon, 19 Sep 2005 14:08:51 +0300 Received: from flame.pc (flame [127.0.0.1]) by flame.pc (8.13.4/8.13.4) with ESMTP id j8JB8Zhc001488 for ; Mon, 19 Sep 2005 14:08:35 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by flame.pc (8.13.4/8.13.4/Submit) id j8JB8Zns001487 for freebsd-questions@freebsd.org; Mon, 19 Sep 2005 14:08:35 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Mon, 19 Sep 2005 14:08:35 +0300 From: Giorgos Keramidas To: freebsd-questions@freebsd.org Message-ID: <20050919110835.GD1129@flame.pc> References: <20050919022520.GA19595@teddy.fas.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050919022520.GA19595@teddy.fas.com> Subject: Re: Sendmail genericstable help, please X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Sep 2005 11:08:54 -0000 On 2005-09-18 22:25, stan wrote: > I;m trying to set up a 4.11 STABLE machine to act as the mailhost > for a buch of virtual doamins. I'm planning on having "users" on > the machien for each user/doaimn pair. I've got the incoming > side of this working well with the Sendmail that came with 4.11 > (Not the ports version if it matters). I've done this with > /etc/mail/virtusertable and appropruate configuration in the.mc file. > > Now, I;m trying to get the outbound side of it workig, and I'm > not having much luck. > > I've crate /etc/mail/genericstable and it looks like this: > > stan stan@i-v-o.net I think you have to use a fully qualified hostname in the left hand side too here, i.e.: stan@foo.example.net stan@i-v-o.net where foo.example.net is your local hostname. > I'v also created /etc/mail/generics-domains it looks like this: > > i-v-o.net > > I've added the following to both ops2.ivo.net.mc and ops2.ivo.net.submit.mc > > MASQUERADE_DOMAIN(`ops2.i-v-o.net') > FEATURE(`genericstable', `hash -o /etc/mail/genericstable') > GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains') > FEATURE(`allmasquerade') > FEATURE(`masquerade_envelope') > FEATURE(`masquerade_entire_domain') Remove the -o option from genericstable. It means that the generics table lookup is optional and Sendmail will continue posting the messages (probably using the wrong address, as you've discovered) even if there's something wrong with your generics table setup > I've dome a make ; make install ; make restart sequence in /etc/mail, and > I've set up muut to use a From of stan@i-v-o.net Yet still the message > (sent from the machine to the machine) contains: Setting up mutt is unnecessary.