From owner-freebsd-isp Sun Oct 12 09:43:17 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id JAA01825 for isp-outgoing; Sun, 12 Oct 1997 09:43:17 -0700 (PDT) (envelope-from owner-freebsd-isp) Received: from homer.duff-beer.com (mail@homer.duff-beer.com [194.207.51.241]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id JAA01816; Sun, 12 Oct 1997 09:43:09 -0700 (PDT) (envelope-from scot@poptart.org) Received: from localhost (scot@localhost) by homer.duff-beer.com (8.8.5/8.8.5) with SMTP id RAA06700; Sun, 12 Oct 1997 17:42:31 +0100 (BST) Date: Sun, 12 Oct 1997 17:42:30 +0100 (BST) From: Scot Elliott To: Jason McKay cc: questions@FreeBSD.ORG, isp@FreeBSD.ORG Subject: Re: Sendmail In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Sun, 12 Oct 1997, Jason McKay wrote: > > using both my host name (barney) and domain name (webace.com.au) ... How > do I get sendmail to not include the host name and just have the > following: > > jasonm@webace.com.au > Yes - I use the virtuser stuff in the m4 config you get with sendmail... ie. I put the following in my .mc file: FEATURE(genericstable,hash /etc/maildb/generics-table)dnl GENERICS_DOMAIN_FILE(/etc/maildb/generics-doms) Where generics-table is a hash made from a text file containing entries like these: scot scot@poptart.org mvk1 meichelle@duff-beer.com ie. - login -> outgoing e-mail address and the generics-doms file is just a copy of my sendmail.cw - ie. a list of domains we accept mail for. Now, if I'm logged into thie host (homer.duff-beer.com), and send mail to someone (like this list) using homer as an SMTP host, then sendmail will change the scot@homer.duff-beer.com from address to scot@poptart.org I make the generics-table database from the text file using: makemap hash /etc/maildb/generics-table.db