*BSD News Article 82468


Return to BSD News archive

#! rnews 2582 bsd
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!spool.mu.edu!newspump.sol.net!www.nntp.primenet.com!nntp.primenet.com!gatech!news.akorn.net!not-for-mail
From: "Kevin D. Sellars" <kevin@akorn.net>
Newsgroups: comp.unix.bsd.bsdi.misc
Subject: Re: Virtual Domain Sendmail problem
Date: 8 Nov 1996 04:58:26 GMT
Organization: Akorn Access
Lines: 69
Message-ID: <01bbcd96$4c544440$1364d9cd@kevin.akorn.net>
References: <01bbc75d$4d085be0$d16ffea5@mel.vrtx.com>
NNTP-Posting-Host: 205.217.100.19
X-Newsreader: Microsoft Internet News 4.70.1155

This is what I entered into my .mc file:
LOCAL_CONFIG
Kmaildomains hash /etc/out.db

LOCAL_RULE_0
R$+ < @ $+ . >          $: $1 < @ $2 > .
R$+ < @ $+ > $*         $: $(maildomains $1@$2 $: $1 < @ $2 > $3 $)
R$+ < @ $+ > $*         $: $(maildomains $2 $: $1 < @ $2 > $3 $)
R$+ < @ $+ > .          $: $1 < @ $2 . >

Then I create a sendmail.db file that has the following:

joeblow@hisdomain.com	joeblow@his_valid_email_address.com

then I issue this command to write it into the out.db:

/usr/local/src/mail/sendmail-8.7.3/makemap/makemap hash /etc/out <
/home/kevin/mailshit/se
ndmail.db

Make sure you add the following to the mailertable if you run one:

hisdomain.com		local:[your_domain.com]

This will allow you to redirect info@hisdomain.com and maintain your own...
Kevin

Mel Nurse <mel@netspeek.com> wrote in article
<01bbc75d$4d085be0$d16ffea5@mel.vrtx.com>...
> Hi there,
> I am running BSDI 2.1.  I have configured a virtual domain for one of my
> clients.  His Web page sits on my server and can be accessed from the net
> using www.hisdomain.com.
> 
> I have a problem with my sendmail configuration however.  I created a new
> .mc file and generated the new sendmail.cf file(after saving the original
> file).  
> 
> The new .mc file contains the entries:
> 
> Cw hisdomain.com
> 
> and in the LOCAL_RULE_0 section:
> R$+     <@ hisdomain.com> $#local $:$1.fund 
> 
> the /etc/aliases file has the following lines added to the bottom of the
> file:
> MAILER-DAEMON.fund: postmaster.fund
> postmaster.fund: root.fund
> webmaster.fund: root.fund
> hostmaster.fund: root.fund
> sales.fund: root.fund
> root.fund: hisname
> 
> where hisname is a valid user-id on my server.  
> 
> When I execute the "newaliases" command, I get infinite loop errors. 
> 
> Can someone give me a reason for this problem.  I am almost sure I
followed
> all the steps outlined in the BSDI manual.
> 
> Hope someone can shed some light on this.
> 
> Regards,
> Mel O'Neil Nurse
> President,
> NeTSPEEK, Inc.
>