Majordomo installieren
Majordomo User erstellen
# groupadd -g 99 majordomo
# useradd -c "Majordomo System User" -d /usr/local/majordomo -g majordomo -u
99 -s /bin/false majordomo
Majordomo herunterladen
# mkdir /tmp/majordomo
# cd /tmp/majordomo
# wget http://www.greatcircle.com/majordomo/1.94.5/majordomo-1.94.5.tar.gz
# tar xvfz majordomo-1.94.5.tar.gz
# cd majordomo-1.94.5/
# mkdir /usr/local/majordomo
# vi Makefile
Makefile editieren:
# vi Makefile
# diff -u Makefile.orig Makefile
--- Makefile.orig 2004-06-07 10:23:09.000000000 +0200
+++ Makefile 2004-06-07 10:24:29.000000000 +0200
@@ -13,22 +13,22 @@
#
# Put the location of your Perl binary here:
-PERL = /bin/perl
+PERL = /usr/bin/perl
# What do you call your C compiler?
CC = cc
# Where do you want Majordomo to be installed? This CANNOT be the
# current directory (where you unpacked the distribution)
-W_HOME = /usr/test/majordomo-$(VERSION)
+W_HOME = /usr/local/majordomo
# Where do you want man pages to be installed?
MAN = $(W_HOME)/man
# You need to have or create a user and group which majordomo will run as.
# Enter the numeric UID and GID (not their names!) here:
-W_USER = 123
-W_GROUP = 45
+W_USER = 99
+W_GROUP = 99
# These set the permissions for all installed files and executables (except
# the wrapper), respectively. Some sites may wish to make these more
Majordomo Konfig erstellen und konfigurieren
# cp sample.cf majordomo.cf
# vi majordomo.cf
# diff -u sample.cf majordomo.cf
--- sample.cf 1997-08-27 17:00:31.000000000 +0200
+++ majordomo.cf 2004-06-07 10:26:57.000000000 +0200
@@ -6,7 +6,7 @@
# $whereami -- What machine am I running on?
#
-$whereami = "example.com";
+$whereami = "h5003.serverkompetenz.net";
# $whoami -- Who do users send requests to me as?
#
@@ -45,8 +45,8 @@
# usually /usr/lib/sendmail, but some newer BSD
systems
# seem to prefer /usr/sbin/sendmail
#
-$sendmail_command = "/usr/lib/sendmail";
-# $sendmail_command = "/usr/sbin/sendmail";
+#$sendmail_command = "/usr/lib/sendmail";
+$sendmail_command = "/usr/sbin/sendmail";
# $mailer -- What program and args do I use to send mail to the list?
# $bounce_mailer -- What is used to send mail anywhere else?
Majordomo kompilieren und installieren
# make wrapper
# make install
# make install-wrapper
# cd /usr/local/majordomo/
# ./wrapper config-test
Dies sollte als Ergebnis erscheinen:
------------------------------------------------------------
---------------- Config-test for Majordomo ----------------
------------------------------------------------------------
--------------------- Obvious things: ---------------------
------------------ environment variables ------------------
HOME=/usr/local/majordomo
LOGNAME=root
MAJORDOMO_CF=/usr/local/majordomo/majordomo.cf
PATH=/bin:/usr/bin:/usr/ucb
SHELL=/bin/sh
USER=root
--------------------- euid/egid checks ---------------------
effective user = majordomo (uid 99)
effective group = majordomo root (gid 99 0 )
---------------------- uid/gid checks ----------------------
real user = majordomo (uid 99)
real group = majordomo root (gid 99 0 )
------------------------------------------------------------
Non obvious things that cause headaches:
------------------------------------------------------------
Good: 'require'd /usr/local/majordomo/majordomo.cf okay.
Good: found ctime.pl okay.
Good: found majordomo_version.pl okay.
Good: found majordomo.pl okay.
Good: found shlock.pl okay.
Good: found config_parse.pl okay.
You're running Majordomo Version 1.94.5.
--==> Majordomo home directory is /usr/local/majordomo.
------------------- Include directories -------------------
/usr/local/majordomo
/usr/lib/perl5/5.8.1/i586-linux-thread-multi
/usr/lib/perl5/5.8.1
/usr/lib/perl5/site_perl/5.8.1/i586-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.1
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.1/i586-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.1
/usr/lib/perl5/vendor_perl
.
--------------------------- Home ---------------------------
Good: changedir to /usr/local/majordomo succeeded.
Good: Created a mock lock file.
---------------------- temp directory ----------------------
Good: Created a temp file in $TMPDIR (/usr/tmp).
---------------------- list directory ----------------------
Hmmm, list directory /usr/local/majordomo/lists doesn't exist
or isn't a directory.
Let me try to make it for you...
Good: list directory /usr/local/majordomo/lists created.
--------------------------- log ---------------------------
Logfile /usr/local/majordomo/Log didn't exist, trying to create...
okay, now chmod'ing..
Good: logfile /usr/local/majordomo/Log exists and is writeable.
------------------------- Mailers -------------------------
You have defined a mailer for delivery.
Attempting to verify that this is a valid mailer...looks okay.
You have defined a mailer for delivering administrative messages.
Attempting to verify that this is a valid mailer...looks okay.
------------------ Checking majordomo.cf ------------------
Checking to see if there are new variables that should be in
your majordomo.cf file...Nope, none that I see.
Have you configured where Majordomo is?
$whereami is h5003.serverkompetenz.net
Good: yup!
----------------------- end of tests -----------------------
Nothing bad found! Majordomo _should_ work correctly.
If it doesn't, check your configuration file
(/usr/local/majordomo/majordomo.cf)
closely, and if it still looks okay, consider asking the majordomo-users
mailing list at "majordomo-users@greatcircle.com" for assistance. Be sure
and fully specify what your problems are, and what type of machine (and
operating system) you are using.