I assume you have downloaded the 1.94.5 tar or compressed file
into your home directory and extracted it there. I also assume
your sendmail (or compatible) MTA is configured and working.
My current configuration has a link to perl in /bin from
/usr/bin, in case any of the other scripts assume /bin/perl.
Perhaps it is in the order you followed the install steps.
1. create a majordom user and group in /etc/passwd and /etc/group.
1a. add "Tmajordom" to /etc/sendmail.cf
note1: only 8 characters allowed on older linux or solaris
2. make note of the uid:gid of this user, and the $HOME directory
3. locate your perl and gcc tools, you need this in the next step
4. edit Makefile
4a. PERL = /usr/bin/perl
4b. CC = /usr/bin/gcc
4c. W_HOME = /usr/lib/majordomo # <$HOME from above in step 2>
4d. MAN = $(W_HOME)/man # /usr/man or /usr/local/man is better
4e. W_USER = 91 # what I used, use your info from step 2
4f. W_GROUP = 91 # what I used, use your info from step 2
4g. The following defaults are fine;
FILE_MODE = 644
EXEC_MODE = 755
HOME_MODE = 751
4h. Linux is POSIX so these are fine too;
WRAPPER_OWNER = root
WRAPPER_GROUP = $(W_GROUP)
WRAPPER_MODE = 4755
POSIX = -DPOSIX_UID=$(W_USER) -DPOSIX_GID=$(W_GROUP)
TMPDIR = /var/tmp # make sure this target directory exists
5. copy sample.cf to majordomo.cf
5a. edit majordomo.cf. I only list lines needing changes
$whereami = "example.com"; # change to your domain
$whoami_owner = "owner-majordomo\ @
$whereami";
$homedir = "/usr/lib/majordomo"; # same as 4c.
$listdir = "/var/lib/majordomo/lists";
$digest_work_dir = "/var/lib/majordomo/digest";
$log = "/var/lib/majordomo/log";
$sendmail_command = "/usr/sbin/sendmail";
$filedir = "/var/lib/majordomo/archive";
$filedir_suffix = "";
$max_which_hits = 1; # for security purposes
$TMPDIR = "/var/lib/majordomo/tmp";
note6: Only the root user in bash or sh shell can do this (No csh or ksh)
6. make wrapper # is this where your process dies now?
7. make install
8. make install-wrapper
9. edit /etc/aliases to add/modify;
majordomo: "|/usr/lib/majordomo/wrapper majordomo"
owner-majordomo: postmaster, # better to use YOUR uid here
majordomo-owner: owner-majordomo
10. If you got past steps 6, 7, and 8 (#perl problem#)
cd <directory in 4.c and 5.a> then ./wrapper config-test
You should do this test as root, again as majordomo, and
finally as yourself (or any other end user).
In redhat, sendmail uses smrsh for security and this needs a
link from /usr/lib/majordomo/wrapper to /etc/smrsh/wrapper.
More inline;
Schow, Brandon wrote:
Everything went fine until I got to the part of the process where the
wrapper config test is performed. I had been using the default user, and
got an error message saying not to do that.
There is nothing wrong with user 123 in group 45, as long as your password
shadow and group files support this.
So I created a new group called ‘majordomo’ and a user to go with it. I
made sure that the group existed, and that the user has been assigned to
it. I edit the Makefile to refer to the numerical IDs of the group and
user that I’ve created, instead of the default values.
In my recipe above I use 91 for both of these. In the comment immediately
above, all that really matters is that password and group files match what
you enter in the Makefile.
I then run ‘make install’ again. Again, I get to the wrapper config
test. And again, despite the Makefile saying otherwise, it insists that
I’m using the default uid and gid. I thought ‘well, I’m trying to
Are you running 'make install' as the root user? Are you in an sh or bash
shell? The notes specify csh is not supported for this operation.
install into the folder I had originally created with make install…maybe
I should try a different folder’. So I alter ‘make install’ to create an
entirely different folder for Majordomo, with the uid and gid set to the
username and the majordomo group I made.
Maybe you missed the "edit majordomo.cf" step.
And it /still/ insists that I’m trying to use the default uid of 123 and
the root group (45 0). What do I have to alter to make the installation
files recognize the user I’m telling them to?
Either the Makefile still has 123 and 45 or the password and group files
do.
References:
-
Default User ID
From: "Schow, Brandon" <Brandon_Schow @
cable .
comcast .
com>
|
|