From owner-freebsd-questions Fri Sep 10 9:38: 4 1999 Delivered-To: freebsd-questions@freebsd.org Received: from unix.megared.net.mx (megamail.megared.com.mx [207.249.162.252]) by hub.freebsd.org (Postfix) with ESMTP id 232D814C4F for ; Fri, 10 Sep 1999 09:37:51 -0700 (PDT) (envelope-from ales@megared.net.mx) Received: from ales (ales.megared.net.mx [207.249.163.252]) by unix.megared.net.mx (8.9.3/8.9.3) with SMTP id LAA92109; Fri, 10 Sep 1999 11:36:22 -0500 (CDT) (envelope-from ales@megared.net.mx) Message-ID: <037f01befbaa$beea70c0$fca3f9cf@megared.net.mx> From: "Alejandro Ramirez" To: "Cliff Addy" , References: Subject: RE: Sendmail generics mapping problem Date: Fri, 10 Sep 1999 11:37:17 -0500 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, Try this link, it will tell you how to do it, and what to do: http://www.sendmail.org/m4/masquerading.html Ales ----- Original Message ----- From: Cliff Addy To: Sent: Friday, September 10, 1999 7:48 AM Subject: Sendmail generics mapping problem > We've had sendmail set up for years to do virtual stuff by hacking > sendmail.cf directly. However, on our new servers, I'm trying to do > things "the sendmail way" by using the m4 macros, etc. We're using > 3.2-Release. > > The incoming virtualization is working fine. However, I can't get the > outgoing remapping to work at all, e.g. if user@machine.domain sends email > it appears that way instead of being rewritten as name@otherdomain. > > In my m4 .mc file, I have: > > FEATURE(`genericstable', `btree /etc/genericstable')dnl > GENERICS_DOMAIN_FILE(`/etc/sendmail.cG')dnl > > which generates this in the sendmail.cf > > Kgenerics btree /etc/genericstable > > and > > FG/etc/sendmail.cG > > My /etc/genericstable file contains > > testcase office@testcase.com > > and the /etc/sendmail.cG has > > testcase.com > > I issue the commands: > > makemap -d btree genericstable.db < genericstable > > Now, according to the docs at sendmail.org, any email sent by the user > testcase should have the From header rewritten as office@testcase.com. > However, it remains as testcase@f2.addy.com > > BTW, I've tried changing the genericstable file from btree to hash with no > effect. > > Does anyone know what I've missed here? > > Cliff > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message