From majordomo-docs-owner@greatcircle.com Wed Sep 4 13:17:35 2002 Received: from daniel.liston.nu (58-25.siocpe.cableone.net [24.116.58.25]) by mycroft.greatcircle.com (Postfix) with ESMTP id 0D1811959E7; Wed, 4 Sep 2002 13:17:32 -0700 (PDT) Received: from sonny.org (gw2.liston.nu [192.168.1.2]) by daniel.liston.nu (8.11.6/8.11.6) with ESMTP id g84KHVd23389; Wed, 4 Sep 2002 15:17:31 -0500 Message-ID: <3D766A55.8020505@sonny.org> Date: Wed, 04 Sep 2002 15:17:25 -0500 From: Daniel Liston User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0rc2) Gecko/20020618 Netscape/7.0b1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: majordomo-users@greatcircle.com, majordomo-docs@greatcircle.com Subject: install from tar.gz bundle (a recipe) References: <000001bfb0c4$80f3c080$0d3afea9@duke> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Archive-Number: 200209/1 X-Sequence-Number: 2 Assumptions: You have retrieved and extracted the gzipped tarball from http://www.greatcircle.com/majordomo/1.94.5/majordomo-1.94.5.tar.gz You did NOT extract into /usr/local/majordomo You have root permissions on the server you are installing on. You have read the README, NEWS, and FAQ files. Your OS configuration has perl in /usr/bin cc is linked to /usr/bin/gcc. As the root user in bash or sh, follow the next 10 steps 1. create a majordom user and group in /etc/passwd and /etc/group (The rpm uses majordomo:91:91, FreeBSD uses majordom:54:54) note1: many unixlike OSes still only allow 8 characters usernames groupadd -g 91 majordom useradd -d /usr/local/majordomo -g 91 -u 91 majordom 1a. add "Tmajordom" to /etc/sendmail.cf or 1b. add "majordom" to /etc/mail/trusted-users 2. make note of the uid:gid of this user, and the $HOME directory note2: duh, if you used the example commands to create them 3. locate your perl and gcc tools, you need this in the next step note3: using the assumptions from the first paragraph 4. edit Makefile 4a. PERL = /usr/bin/perl 4b. CC = /usr/bin/gcc 4c. W_HOME = /usr/local/majordomo # <$HOME from above in step 2> 4d. MAN = /usr/local/man # /usr/man or /usr/local/man 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 5. copy sample.cf to /etc/majordomo.cf 5a. edit /etc/majordomo.cf. # Lines needing changes $whereami = "example.com"; # change to your domain $whoami_owner = "owner-majordomo\@$whereami"; $homedir = "/usr/local/majordomo"; # same as 4c. $digest_work_dir = "$homedir/digests"; # note plural $sendmail_command = "/usr/sbin/sendmail"; # make sure $max_which_hits = 1; # for security purposes $TMPDIR = $ENV{'TMPDIR'} || "/var/tmp"; # same as 4h. note5a: You may want to set $log to $homedir/Log note6: You are root in a bash or sh shell, right? 6. make wrapper 7. make install 8. make install-wrapper 9. edit /etc/aliases to add/modify; majordom: majordomo majordomo: "|/usr/local/majordomo/wrapper majordomo" owner-majordomo: realuser, majordomo-owner: owner-majordomo 10. If your sendmail uses smrsh, you must create a link to /usr/local/majordomo/wrapper in the smrsh directory. This directory location varies from OS to OS, but can be found by grep P=.*smrsh /etc/sendmail.cf strings /usr/sbin/smrsh | grep / ln -s /usr/local/majordomo/wrapper /etc/smrsh/wrapper 11. It is also possible you have a recent version of sendmail which does not allow group or world writable permissions to exist in the path to your lists. This is solved by chmod go-w / /usr /usr/local /usr/local/majordomo If you got past steps 6, 7, and 8 (#perl problem#) cd then ./wrapper config-test Once this comes back successful, it is majordomo admin as usual. :) Dan Liston