From owner-freebsd-questions Thu May 31 21:49:32 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id 5344E37B422 for ; Thu, 31 May 2001 21:49:28 -0700 (PDT) (envelope-from keramidi@otenet.gr) Received: from hades.hell.gr (patr530-b021.otenet.gr [195.167.121.149]) by mailsrv.otenet.gr (8.11.1/8.11.1) with ESMTP id f514nNI13428; Fri, 1 Jun 2001 07:49:23 +0300 (EEST) Received: (from charon@localhost) by hades.hell.gr (8.11.3/8.11.3) id f514eGv03002; Fri, 1 Jun 2001 07:40:16 +0300 (EEST) (envelope-from keramidi@otenet.gr) Date: Fri, 1 Jun 2001 07:40:16 +0300 (EEST) From: Giorgos Keramidas X-X-Sender: To: Doug Poland Cc: Subject: Re: sendmail domain re-writting In-Reply-To: <20010531095722.A13118@polands.org> Message-ID: <20010531220932.M1126-100000@hades.hell.gr> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 31 May 2001, Doug Poland wrote: > Sorry for *yet another sendmail* question. This should be > a simple solution.. > > I want sendmail on my 4.3-STABLE box to strip off the hostname > part of my email address. For example: > > doug@mybox.mydomain.com > > becomes > > doug@mydomain.com > > Given a stock sendmail.cf, how does one accomplish this? Yes, you can use FEATURE(genericstable) to do that. In my master-config file I have: FEATURE(`genericstable', `btree -o /etc/mail/genericstable')dnl GENERICS_DOMAIN(`hell.gr')dnl FEATURE(`generics_entire_domain')dnl Generated my sendmail.cf again and copied it to /etc/mail. Then, I added in my /etc/mail/genericstable file: charon@hades.hell.gr keramidi@otenet.gr Make the genericstable map the usual way: # cd /etc/mail # makemap btree genericstable < genericstable And all is set to go. What mail I sent from will be rewritten to look as if it came from . --giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message