From owner-freebsd-questions@FreeBSD.ORG Thu Jul 1 04:37:11 2004 Return-Path: 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 6994F16A4CE for ; Thu, 1 Jul 2004 04:37:11 +0000 (GMT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.173]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD9DB43D1F for ; Thu, 1 Jul 2004 04:37:10 +0000 (GMT) (envelope-from oliverfuchs@onlinehome.de) Received: from [212.227.126.179] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1BftJs-0000sF-00 for freebsd-questions@freebsd.org; Thu, 01 Jul 2004 06:37:08 +0200 Received: from [217.1.216.163] (helo=oliverfuchs.ath.cx) (TLSv1:EDH-RSA-DES-CBC3-SHA:168) (Exim 3.35 #1) id 1BftJq-0007vm-00 for freebsd-questions@freebsd.org; Thu, 01 Jul 2004 06:37:06 +0200 Received: from oliverfuchs.ath.cx (localhost [127.0.0.1]) i614b2Me013006verify=FAIL) for ; Thu, 1 Jul 2004 06:37:03 +0200 Received: (from oliverfuchs1@localhost) by oliverfuchs.ath.cx (8.12.3/8.12.3/Debian-6.6) id i614MvFl012267 for freebsd-questions@freebsd.org; Thu, 1 Jul 2004 06:22:57 +0200 Date: Thu, 1 Jul 2004 06:22:56 +0200 From: Oliver Fuchs To: freebsd-questions@freebsd.org Message-ID: <20040701042256.GA10643@oliverfuchs.ath.cx> Mail-Followup-To: freebsd-questions@freebsd.org References: <20040630081722.931C3212C8@jellyfish.mweb.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20040630081722.931C3212C8@jellyfish.mweb.co.za> User-Agent: Mutt/1.4.2i X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:c2b2791553508cc938db2bcf18721a3c Subject: Re: sendmail +userdb + Release 4.10p1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jul 2004 04:37:11 -0000 On Wed, 30 Jun 2004, vikashb@mweb.co.za wrote: > Greetings, > > > > hostname.mc > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~` > > > dnl define(`confUSERDB_SPEC',/etc/mail/userdb.db) > > > Cwwormhole.pcs > > > MASQUERADE_AS(`bcx.co.za')dnl > > > FEATURE(masquerade_envelope)dnl > > > FEATURE(allmasquerade)dnl > > > FEATURE(nocanonify)dnl > > > FEATURE(genericstable, `hash -o /etc/mail/genericstable')dnl > > > GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')dnl > > > dnlFEATURE(nodns)dnl > > > define(`SMART_HOST', `172.21.63.2') > > > Dmwormhole.pcs > > > define(`confDOMAIN_NAME',`wormhole.pcs')dnl > > > define(`confDELIVERY_MODE',`deferred')dnl > > > MAILER(local) > > > MAILER(smtp) > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > wormhole# cat genericstable > > > vix vikash.badal@bcx.co.za > > > vikashb vikash.badal@bcx.co.za > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > > From cf.README: > > [...] > > genericstable This feature will cause unqualified addresses > > (i.e., without > > a domain) and addresses with a domain listed in > > class {G} > > to be looked up in a map and turned into > > another ("generic") > > form, which can change both the domain name and > > the user name. > > Notice: if you use an MSP (as it is default > > starting with > > 8.12), the MTA will only receive qualified > > addresses from the > > MSP (as required by the RFCs). Hence you need > > to add your > > domain to class {G}. This feature is similar > > to the userdb > > functionality. > > [...] > > > > So in your genericstable try to add qualified addresses: > > > > vix@wormhole.pcs vikash.badal@bcx.co.za > > > > Tried that, still the same, domain name translates but username does not. > > Thanks > Then correct FEATURE(genericstable, `hash -o /etc/mail/genericstable')dnl to FEATURE(`genericstable', `hash -o /etc/mail/genericstable')dnl and dnlFEATURE(nodns)dnl to dnl FEATURE(nodns)dnl Oliver -- ... don't touch the bang bang fruit