Great Circle Associates Majordomo-Users
(January 1995)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Problems with installation.
From: root @ urano . mia . uv . mx (Operator)
Date: Mon, 2 Jan 95 18:39:51 CST
To: majordomo-users @ greatcircle . com
Cc: root


	Hello:

		I have problems at installing Majordomo in my network. I have followed all the instructions that appear in the README file, but I have not got any good result.

		First I want to include the Makefile and majordomo.cf files for you to see what I did to them:

********	MAKEFILE

# $Source: /sources/cvsrepos/majordomo/Makefile,v $
# $Revision: 1.21.2.2 $
# $Date: 1994/06/09 19:48:07 $
# $Author: rouilj $
# $State: Exp $
# 
# $Header: /sources/cvsrepos/majordomo/Makefile,v 1.21.2.2 1994/06/09 19:48:07 rouilj Exp $
# 
# $Locker:  $
# 


# this makefile installs the following structure for the bsd universe:
# (root is W_BIN below)
#    root -+--          -- actual majordomo scripts, libraries etc 
#	   +-- Tools    -- tools like archive
#	   +-- bin      -- user level tools, approve, bounce etc
#	   +-- man      -- man pages
#

# This is where "wrapper" looks for the programs it's supposed to run.
W_BIN=/usr/local/majordom

# This is the environment that (along with LOGNAME and USER inherited from the
# parent process, and without the leading "W_" in the variable names) gets
# passed to processes run by "wrapper"

W_PATH=/bin:/usr/bin:/usr/ucb
W_HOME=${W_BIN}
W_SHELL=/bin/csh
W_MAJORDOMO_CF=$(W_BIN)/majordomo.cf

# Use these settings for BSD-based systems, including SunOS 4.x.  If you're
# using a POSIX-compliant system (including SysV and BSDI), comment these
# settings out, and uncomment the POSIX settings below.
W_USER=daemon
W_GROUP=majordom
W_CHOWN=${W_USER}.${W_GROUP}
W_CHMOD=6755
WRAPPER_FLAGS = -DBIN=\"${W_BIN}\" -DPATH=\"PATH=${W_PATH}\"	\
	-DHOME=\"HOME=${W_HOME}\" -DSHELL=\"SHELL=${W_SHELL}\"	\
	-DMAJORDOMO_CF=\"MAJORDOMO_CF=${W_MAJORDOMO_CF}\"

# If you're using a POSIX-compliant system, uncomment this set of parameters
# and comment out the BSD settings above.
# W_UID = 1
# W_GID = 15
# W_CHOWN=root
# W_CHMOD=4755
# WRAPPER_FLAGS = -DBIN=\"${W_BIN}\" -DPATH=\"PATH=${W_PATH}\" \
# 	-DHOME=\"HOME=${W_HOME}\" -DSHELL=\"SHELL=${W_SHELL}\" \
#	-DMAJORDOMO_CF=\"MAJORDOMO_CF=${W_MAJORDOMO_CF}\"       \
# 	-DPOSIX_UID=${W_UID} -DPOSIX_GID=${W_GID}

# YOU SHOULDN'T HAVE TO CHANGE ANYTHING BELOW THIS LINE.
# For those stupid machines that try to use csh
SHELL = /bin/sh

default: wrapper

install: install-scripts install-man
	@echo "Run 'make install-wrapper' as root"

install-wrapper: wrapper
	cp wrapper       $(W_BIN)/wrapper
	chown ${W_CHOWN} $(W_BIN)/wrapper
	chmod ${W_CHMOD} $(W_BIN)/wrapper
	
install-scripts: install-cf
	@-test -d $(W_BIN)/Tools || mkdir $(W_BIN)/Tools
	cp contrib/archive2.pl  $(W_BIN)/Tools
	@-test -d $(W_BIN)/bin || mkdir $(W_BIN)/bin
	cp approve bounce medit $(W_BIN)/bin
	cp bounce-remind config_parse.pl majordomo \
	   majordomo.pl majordomo_version.pl\
	   new-list request-answer resend resend.README shlock.pl \
	   digest/digest \
	   $(W_BIN)
	
# the install.cf target will install the sample config file in the
# proper place unless a majordomo.cf file exists in whcih case the
# majordomo.cf file will be used.
install-cf:
	(test ! -f majordomo.cf  && echo "using sample.cf" && \
		cp sample.cf $(W_BIN)/majordomo.cf; exit 0)
	(test -f majordomo.cf  && echo "using majordomo.cf" && \
		cp majordomo.cf $(W_BIN)/majordomo.cf; exit 0) 

install-man:
	@-test -d $(W_BIN)/man || mkdir $(W_BIN)/man
	@-test -d $(W_BIN)/man/man1 || mkdir $(W_BIN)/man/man1
	@-test -d $(W_BIN)/man/man8 || mkdir $(W_BIN)/man/man8
	cp Doc/man/approve.1 $(W_BIN)/man/man1
	cp Doc/man/majordomo.8 $(W_BIN)/man/man8

install-shared: install-wrapper-shared install-scripts

install-wrapper-shared: wrapper
	@test -d $(W_BIN)/wrappers || mkdir $(W_BIN)/wrappers
	@test -d $(W_BIN)/wrappers/$(W_GROUP) || mkdir $(W_BIN)/wrappers/$(W_GROUP)
	strip wrapper
	cp wrapper $(W_BIN)/wrappers/$(W_GROUP)/wrapper.`arch`
	cp wrapper.sh $(W_BIN)/wrappers/$(W_GROUP)/wrapper
	@echo 'run make permissions-shared' as root to set permissions

install-archive:
	cp contrib/archive.pl $(W_BIN)/archive 

install-archive2:
	cp contrib/archive2.pl $(W_BIN)/archive 

install-archive_mh:
	cp contrib/archive_mh.pl $(W_BIN)/archive 

permissions-shared:
	chown ${W_CHOWN} $(W_BIN)/wrappers/$(W_GROUP)/wrapper.`arch`
	chown ${W_CHOWN} $(W_BIN)/.
	chmod ${W_CHMOD} $(W_BIN)/wrappers/$(W_GROUP)/wrapper.`arch`

wrapper: wrapper.c
	cc ${WRAPPER_FLAGS} -o wrapper wrapper.c

clean:
	rm -f  wrapper *~

dist-clean: clean
	rm -f majordomo.cf .cvsignore todo.local .dcl archive
	rm -rf regress Doc/samples Tools

distribution: dist-clean
	mkdir majordomo-1.92
	mv * .??* majordomo-1.92 || exit 0
	rm -rf majordomo-1.92/CVS majordomo-1.92/*/CVS majordomo-1.92/*/*/CVS
	tar -cZvf /home/ftp/pub/rouilj/majordomo-1.92.tar.Z  majordomo-1.92


********	MAJORDOMO.CF

# $whereami -- What machine am I running on?
$whereami = "urano.mia.uv.mx";

# $whoami -- Who do users send requests to me as?
$whoami = "Majordomo@$whereami";

# $whoami_owner -- Who is the owner of the above, in case of problems?
$whoami_owner = "root@$whereami";

# $homedir -- Where can I find my extra .pl files, like majordomo.pl?
# the environment variable HOME is set by the wrapper
if ( defined $ENV{"HOME"}) {
     $homedir = $ENV{"HOME"};
} else {
     $homedir = "/usr/local/majordom";
}

# $listdir -- Where are the mailing lists?
$listdir = "/usr/local/majordom/lists";

# $digest_work_dir -- the parent directory for digest's queue area
# Each list must have a subdirectory under this directory in order for
# digest to work. E.G. The bblisa list would use:
# 	/usr/local/mail/digest/bblisa
# as its directory.
$digest_work_dir = '/usr/local/majordom/digest';

# $log -- Where do I write my log?
$log = "$homedir/Log";

# $mailer -- What program and args do I use to send mail?
# The variable $to can be interpolated into this command line,
# however the $to variable is provided by the person sending mail,
# and much mischief can be had by playing with this variable.
# Use $to with care.
$mailer = "/usr/lib/sendmail -f\$sender -t";

# Majordomo will look for "get" and "index" files related to $list in
# directory "$filedir/$list$filedir_suffix", so set $filedir and
# $filedir_suffix appropriately.  For instance, to look in
# /usr/local/mail/files/$list, use:
#   $filedir = "/usr/local/mail/files";
#   $filedir_suffix = "";		# empty string
# or to look in $listdir/$list.archive, use:
#   $filedir = "$listdir";
#   $filedir_suffix = ".archive";

$filedir = "$listdir";
$filedir_suffix = ".archive";

# What command should I use to process an "index" request?
$index_command = "/bin/ls -lRL";

# If you want to use FTPMAIL, rather than local access, for file transfer
# and access, define the following:
#   $ftpmail_address = "ftpmail@decwrl.dec.com";
#   $ftpmail_location = "FTP.$whereami";

# if you want the subject of the request to be included as part of the
# subject of the reply (useful when automatically testing, or submitting
# multiple command sets), set $return_subject to 1.
$return_subject = 1;

# If you are using majordomo at the -request address, set the
# following variable to 1. This affects the welcome message that is
# sent to a new subscriber as well as the help text that is generated.
$majordomo_request = 0;

# Set the umask for the process. Used to set default file status for
# config file.
umask(007);

# the safe locations for archive directories
# None of the parameters that use safedirs are actually used, so 
# @safedirs is a placeholder for future functionality. 
# Just ignore it for version 1.90 through 1.92.
@safedirs = ( );

1;
# $Header: /sources/cvsrepos/majordomo/sample.cf,v 1.4.2.1 1994/06/09 19:45:18 rouilj Exp $


		The messages I got first are the next:

>From daemon Mon Jan  2 18:10:09 1995
Date: Mon, 2 Jan 95 18:10:08 CST
From: Mailer-Daemon (Mail Delivery Subsystem)
Subject: Returned mail: unknown mailer error 5
To: Postmaster
Content-Length: 436

   ----- Transcript of session follows -----
majordomo: Permission denied
554 "|/usr/local/majordom/wrapper majordomo"... unknown mailer error 5

  ----- Message header follows -----
Return-Path: <root>
Received: by urano.mia.uv.mx (4.1/SMI-4.1)
	id AA11069; Mon, 2 Jan 95 18:10:08 CST
Date: Mon, 2 Jan 95 18:10:08 CST
From: root (Operator)
Message-Id: <9501030010.AA11069@urano.mia.uv.mx>
Errors-To: root
To: majordomo@urano.mia.uv.mx


		Then I chmod'ed the permissions of majordomo, digest and resend in /usr/local/majordom, and when I did it I got the next messages:

>From daemon Mon Jan  2 18:18:36 1995
Date: Mon, 2 Jan 95 18:18:34 CST
From: Mailer-Daemon (Mail Delivery Subsystem)
Subject: Returned mail: unknown mailer error 255
To: Postmaster
Content-Length: 579

   ----- Transcript of session follows -----
Literal @: now requires backslash at /usr/local/majordom/majordomo line 1302, within string
Execution of /usr/local/majordom/majordomo aborted due to compilation errors.
554 "|/usr/local/majordom/wrapper majordomo"... unknown mailer error 255

  ----- Message header follows -----
Return-Path: <root>
Received: by urano.mia.uv.mx (4.1/SMI-4.1)
	id AA11102; Mon, 2 Jan 95 18:18:34 CST
Date: Mon, 2 Jan 95 18:18:34 CST
From: root (Operator)
Message-Id: <9501030018.AA11102@urano.mia.uv.mx>
Errors-To: root
To: majordomo@urano.mia.uv.mx


		Does some one of you what can I do to correct these problems.

		Sincerely.

              _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
             _/                                          _/
            _/   Guillermo de Jesús Hoyos Rivera        _/
           _/    Network Manager                       _/
          _/                                          _/
         _/   Maestría en Inteligencia Artificial    _/
        _/    Universidad Veracruzana               _/
       _/     Sebastián Camacho # 5                _/
      _/      Xalapa, Veracruz, México            _/
     _/     Ph. (28) 17 29 57                    _/
    _/      Fax (28) 17 28 55                   _/
   _/                                          _/
  _/   e-mail: root@urano.mia.uv.mx           _/
 _/                                          _/
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/


Indexed By Date Previous: Re: Mailing List Alias?
From: Brent@GreatCircle.COM (Brent Chapman)
Next: [no subject]
From: oby@crlmail.uchicago.edu (Mr. Oby)
Indexed By Thread Previous: What is a reasonably large max size setting?
From: "Long, Johnny W." <LongJy@THECB.TEXAS.GOV>
Next: Re: Problems with installation.
From: Brent@GreatCircle.COM (Brent Chapman)

Google
 
Search Internet Search www.greatcircle.com