From owner-freebsd-isp Sat Jan 30 09:59:31 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA17885 for freebsd-isp-outgoing; Sat, 30 Jan 1999 09:59:31 -0800 (PST) (envelope-from owner-freebsd-isp@FreeBSD.ORG) Received: from mailhub.ainet.com (mailhub.ainet.com [204.30.40.29]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA17879 for ; Sat, 30 Jan 1999 09:59:29 -0800 (PST) (envelope-from jmscott@ainet.com) Received: from shell.ainet.com (jmscott@shell.ainet.com [204.30.40.108]) by mailhub.ainet.com (8.9.1/8.9.1) with SMTP id JAA23572; Sat, 30 Jan 1999 09:59:27 -0800 (PST) Received: from localhost by shell.ainet.com (4.1/SMI-4.1) id AA16426; for freebsd-isp@FreeBSD.ORG; Sat, 30 Jan 99 10:01:54 PST Date: Sat, 30 Jan 1999 10:01:54 -0800 (PST) From: "Joseph M. Scott" To: Leif Neland Cc: freebsd-isp@FreeBSD.ORG Subject: Re: virtual domains In-Reply-To: Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sat, 30 Jan 1999, Leif Neland wrote: > Can't virtusertable rewrite all adresses in one domain to the same > usernames in another domain? The Simple Answer (tm) is that yes it can. > > why not: > > user@1.domain another@anotherdomain > @1.domain @thirddomain > > when it does > @1.domain onlyone@forthdomain. > > ?? > > I probably have to hardcode some sendmail.cf-lines, I guess... All the magic is using the virtusertable Feature. Take a look at: http://www.sendmail.org/virtual-hosting.html Specifically look at section 4. that starts out with :Create the virtual user table. Then the example that I think you are trying to achieve is under the second set of examples and it looks like : joe@yourdomain.com jschmoe bogus@yourdomain.com error:nouser No such user here list@yourdomain.com yourdomain-list @yourdomain.com %1@othercompany.com The last one does what I think you are describing. Here's the description for the example I just quoted above : In this second example, the address joe@yourdomain.com will be mapped to the local user jschmoe, the address bogus@yourdomain.com will return the indicated error, the address list@yourdomain.com will be mapped to the local user yourdomain-list (which you would use the aliases file to ultimately resolve) and every other user at yourdomain.com will be mapped to a remote user of the same name at othercompany.com. I believe this will do what you were asking for. If I totally missed your point I'm sorry. > > leif@neland.dk * Joseph M. Scott * jmscott@ainet.com * American InfoMetrics * Modesto, CA To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message