Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!metro!metro!munnari.OZ.AU!news.ecn.uoknor.edu!news.ysu.edu!news.radio.cz!newsbastard.radio.cz!news.radio.cz!CESspool!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!news-peer.sprintlink.net!news.sprintlink.net!sprint!howland.erols.net!vixen.cso.uiuc.edu!ux9.cso.uiuc.edu!not-for-mail From: igor@students.uiuc.edu (igor vladimirovich roshchin) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: sendmail for virtual hosts Date: 23 Apr 1997 23:12:59 GMT Organization: University of Illinois at Urbana Lines: 68 Message-ID: <5jm51r$dd5@vixen.cso.uiuc.edu> References: <5jhigk$rsf@vixen.cso.uiuc.edu> <E9179p.zC@forthdv.pfm-mainz.de> <5jimsf$rio@vixen.cso.uiuc.edu> <E93vsA.951@forthdv.pfm-mainz.de> NNTP-Posting-Host: ux9.cso.uiuc.edu X-Newsreader: TIN [UNIX 1.3 950824BETA PL0] Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:39650 > > Regards, Stephan Thanks, Stephan, though, ... :-((( I have sendmail 8.8.5 and FreeBSD 2.1.7 > > ---------------part of sendmail.faq------------------------ > <skiped> > > If you're using version 8.8 sendmail, you can make use of the > new "virtual user table" feature (for one thing, it won't require > that you add new rewrite rules to your sendmail configuration, as > the previous example does). > > 1. Put "FEATURE(virtusertable)" in your sendmail.mc > file. > > 2. By default, sendmail will build tables out of > /etc/virtusertable. If you want to change this, put > something like: > > define(`VIRTUSER_TABLE', `-o hash /usr/local/lib/virtusertable')dnl > > in your sendmail.mc file. > > 3. Construct the virtusertable file like so: > > info@foo.com foo-info > info@bar.com bar-info > @baz.org jane@elsewhere.net > @somedom.com error : 5.5.0 User unknown > > (Contrast with steps 1 and 4 in the previous example > using regular mailertables). > > 4. Compile the textfile into a database: > > makemap hash /etc/virtusertable.db </etc/virtusertable > > You may you use other lookup-methods than hash (btree > for example). Make sure that this database type matches > what is defined for the table in step 2. > > 5. Put all the domains listed on the LHS of these aliases > in your sendmail.cw file, or on the Cw line in your > sendmail.cf. > > 6. Recompile your sendmail.cf from your sendmail.mc and > test it. > > 7. Once you are satisfied, move it into place and restart > sendmail. I've done that and AM NOT SATISFIED.... :-((( For some reason parser "does not see" the records in the file virtusertable.[db] (and I am doing that for the local host, which is in Cw) IgoR