From owner-freebsd-questions Wed Jul 22 18:51:58 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA13222 for freebsd-questions-outgoing; Wed, 22 Jul 1998 18:51:58 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from ccsales.ccsales.com (ccsales.ccsales.com [207.137.172.4]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA13205 for ; Wed, 22 Jul 1998 18:51:51 -0700 (PDT) (envelope-from randyk@ccsales.com) Received: from ntrkcasa (b148.ecom.net [207.13.225.148]) by ccsales.ccsales.com (8.9.0/8.9.0) with SMTP id SAA12453; Wed, 22 Jul 1998 18:50:10 -0700 (PDT) Message-Id: <3.0.5.32.19980722184602.04283760@ccsales.com> X-Sender: randyk@ccsales.com X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Wed, 22 Jul 1998 18:46:02 -0700 To: Paul Wolstenholme , freebsd-questions@FreeBSD.ORG From: "Randy A. Katz" Subject: Re: Sendmail & virtual host problem In-Reply-To: <199807222225.PAA21152@beaufort.sfu.ca> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, Do yourself a favour: 1. Download sendmail-8.9.1 (or the latest). 2. Untar it 3. cd sendmail-*1/src 4. ./Build [Enter] 5. ./makesendmail install 6. cd ../cf/cf 7. study ../README and learn to update the bsd-generic4.4.mc file and then type make bsd-generic4.4.cf and then cp bsd-generic4.4.cf /etc/sendmail.cf ...learn the cf file method...it's way better...it'll cost you 30-40 minutes of reading...instant payoff...almost every feature you'd EVER want is there... Take care, Randy Katz BTW, my bsd-generic4.4.mc file looks like: divert(-1) # # Copyright (c) 1998 Sendmail, Inc. All rights reserved. # Copyright (c) 1983 Eric P. Allman. All rights reserved. # Copyright (c) 1988, 1993 # The Regents of the University of California. All rights reserved. # # By using this file, you agree to the terms and conditions set # forth in the LICENSE file which can be found at the top level of # the sendmail distribution. # # # # This is a generic configuration file for 4.4 BSD-based systems, # including 4.4-Lite, BSDi, NetBSD, and FreeBSD. # It has support for local and SMTP mail only. If you want to # customize it, copy it to a name appropriate for your environment # and do the modifications there. # divert(0)dnl VERSIONID(`@(#)generic-bsd4.4.mc 8.7 (Berkeley) 5/19/98') OSTYPE(bsd4.4)dnl DOMAIN(generic)dnl FEATURE(use_cw_file) FEATURE(virtusertable) FEATURE(local_procmail) FEATURE(access_db) FEATURE(blacklist_recipients) FEATURE(rbl) define(`confDONT_PROBE_INTERFACES',`DontProbeInterfaces')dnl define(`confMAX_MESSAGE_SIZE',`5000000')dnl MAILER(local)dnl MAILER(smtp)dnl MAILER(procmail)dnl At 03:25 PM 7/22/98 -0700, Paul Wolstenholme wrote: >I have been trying to setup some virtual hosting for sendmail following >the instructions from senmail.org and I cannot get it to work. > >I am running FreeBSD 2.2.6 with I believe Sendmail 8.8.8 which I >installed with 2.2.6-Release. > >What I am trying to accomplish is redirecting certain addresses to >specified user accounts. But when I try it, I get "user unkown" errors in >the maillog. > >Steps I have followed: >1. Added domains to sendmail.cw ( I can send to existing account using >domain) >2. Created virtual table with following entries: >ches@newdomain.com ches >@newdomain.com ches > >Then: >makemap hash /etc/virtusertable < domain.list > >Which creates: >/etc/virtusertable.db > >3. Uncommented in sendmail.cf >Kvirtuser hash /etc/virtusertable (tried /etc/virtusertable.db as well) > > >4. Restarted sendmail via kill -1 sendmail_process_number > >5. Sent message to editor@newdomain.com which fails with user unknown. > >6. also tried sendmail -bt: >/map virtusertable @bc-diver.com >and >/map /etc/virtusertable @bc-diver.com > >This gives: >Map named "virtusertable" not found > > >Can anyone see what I am doing wrong? > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-questions" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message