From owner-freebsd-net Fri Nov 13 08:30:45 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA27892 for freebsd-net-outgoing; Fri, 13 Nov 1998 08:30:45 -0800 (PST) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from ns1.seidata.com (ns1.seidata.com [208.10.211.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA27885; Fri, 13 Nov 1998 08:30:44 -0800 (PST) (envelope-from mike@seidata.com) From: mike@seidata.com Received: from localhost (mike@localhost) by ns1.seidata.com (8.8.8/8.8.5) with ESMTP id LAA19423; Fri, 13 Nov 1998 11:30:28 -0500 (EST) Date: Fri, 13 Nov 1998 11:30:27 -0500 (EST) To: Joe Schwartz cc: freebsd-questions@FreeBSD.ORG, freebsd-net@FreeBSD.ORG Subject: Re: virtual hosting & sendmail In-Reply-To: <199811131233.GAA19875@sierrahill.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, 13 Nov 1998, Joe Schwartz wrote: > info@domain3.com /etc/usmasq to 'masq' virtual domain names over yours (i.e. if my email is me@yourdomain.com, use an entry in /etc/usmasq to make my address me@mydomain.com). /etc/virtusertable to direct 'virtual user' mail to a designated account (i.e. info@mydomain.com really goes to me@yourdomain.com). > I'm looking at sendmail's virtual hosting tutorial and am getting > complaints from 'makemap' when I tried to make the 'virtusertable'. Does a 'grep virt /etc/sendmail.cf' turn up the following: Kvirtuser hash /etc/virtusertable R$+ < @ $=w . > $: < $(virtuser $1 @ $2 $@ $1 $: @ $) > $1 < @ $2 . > R< @ > $+ < @ $+ . > $: < $(virtuser @ $2 $@ $1 $: @ $) > $1 < @ $2 . > Also, did you do a 'makemap hash' on virtusertable? I have a script in /etc called makemasq that creates the *.db files for me: #!/bin/sh makemap hash /etc/usmasq < /etc/usmasq makemap hash /etc/virtusertable < /etc/virtusertable #makemap hash /etc/domaintable < /etc/domaintable > Is this the right direction to pursue or is there a prefered technique > I should work on? It should work - it does for ~200 domains here. Also, add the proper entries to sendmail.cw (i.e. add an entry for each domain you host, such as 'mydomain.com'). Later, -mike To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message