Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jul 1998 18:46:02 -0700
From:      "Randy A. Katz" <randyk@ccsales.com>
To:        Paul Wolstenholme <wolstena@sfu.ca>, freebsd-questions@FreeBSD.ORG
Subject:   Re: Sendmail & virtual host problem
Message-ID:  <3.0.5.32.19980722184602.04283760@ccsales.com>
In-Reply-To: <199807222225.PAA21152@beaufort.sfu.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.5.32.19980722184602.04283760>