Great Circle Associates Majordomo-Users
(January 1998)
 

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

Subject: Re: majordomo configuration with qmail (not working after following FAQ)
From: Simon J Mudd <simon @ internet . alltrading . es>
Date: 23 Jan 1998 11:19:29 +0100
To: majordomo-users @ greatcircle . com, mark @ myth . co . uk
In-reply-to: de5@sws5.ctd.ornl.gov's message of 21 Jan 1998 14:32:14 +0100
References: <Pine.LNX.3.95.980119155659.11202C-100000@internet.alltrading.es><19980121133122.706.qmail@sws5.ctd.ornl.gov>

de5@sws5.ctd.ornl.gov (Dave Sill) writes:

> >A colleague and i have been trying to install majordomo 1.94.4 on a
> >redhat linux box with qmail-1.01-7 and perl-5.004-0
> >
> >we have read all faq's and readme's.
> 
> That's good. So you must know there are several different ways to set
> up Majordomo under qmail. Which approach did you take?

I don't remember off-hand: I did this while on holiday in the UK, (I
live in Spain).  If I remember correctly we compiled and installed
majordomo "as normal", and setup the qmail aliases as per the FAQ for
the majordomo-owner and stuff like that.  I don't think we did
anything really special.

> 
> >It appears that majordomo is functioning ok, though qmail seems to be
> >complaining.  (majordomo passes it's self test)
> >
> >when we look in /var/log/qmail/@00088...  (the log file for the 
> >30th), it complains about not being able to open 
> >/home/major/wrapper_majordomo
> 
> What are the owner, group, and mode on the wrapper?

The majordomo "user" is major, configured as follows:

$ grep major /etc/passwd /etc/group
/etc/passwd:major:x:507:506:major:/home/major:/bin/bash
/etc/group:users::100:sjmudd, ...[extract] ... ,major
/etc/group:major::506:major

The wrapper is setup as follows:

$ ls -la wrapper
-rwsr-xr-x   1 root     major        6486 Dec 30 17:44 wrapper*

> >we've tried to run (as root)
> >
> >/home/major/wrapper majordomo 
> 
> You mean you just ran that interactively as root?

Sorry we interactively ran the wrapper test script.

(taken from INSTALL)

9) Chdir to the Majordomo home and (as a regular, unprivileged user, not
   the Majordomo user or root) run the configuration test script:

      % cd /path/to/majordomo
      % ./wrapper config-test

this gives (tail of output):


Have you configured where Majordomo is?
        $whereami is hades.myth.co.uk
Good: yup!
----------------------- end of tests -----------------------


Nothing bad found!  Majordomo _should_ work correctly.

If it doesn't, check your configuration file 
        (/home/major/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.

Enjoy!
$

> >and it says that majordomo@myth.co.uk is not a valid mail address (or
> >something).  This seems to be a qmail error/warning, not a majordomo
> >one.
> >
> >However, we are not sure why qmail is complaining.
> 
> Do you have an alias set up for "majordomo"? It's apparently
> complaining because you're trying to deliver mail to a bad address.

this is what I have in qmail's /var/qmail/alias directory.  I think this is correct, but am very unfamiliar with qmail and may have done something stupid:

hades [root /var/qmail/alias]# ls -al | grep major
-rw-r--r--   1 root     root           30 Dec 30 17:48 .qmail-majordomo
-rw-r--r--   1 root     root           30 Dec 30 17:53 .qmail-majordomo-owner
hades [root /var/qmail/alias]# cat .qmail-majordomo
/home/major/wrapper majordomo
hades [root /var/qmail/alias]# cat .qmail-majordomo-owner
/home/major/wrapper majordomo

Which is I think correct ???

> >Our guess is that like sendmail you need to tell qmail that majordomo
> >will "change it's identity" and this is ok.  sendmail calls this a
> >trusted user, allowing root, uucp and a couple of other users to do
> >this. we don't know how to do this with qmail.
> 
> I'm not sure exactly what you're trying to do, but I've got Majordomo
> set up so it doesn't use the wrapper at all and everything runs under
> the Majordomo user ID.

I don't mind either using the wrapper or not using it.  With sendmail
the defaults seem to be to use the wrapper and thus I've attempted to
setup majordomo in the same way with qmail.  The majordomo with qmail
FAQ I used (I can't remember which one it was) seemed to indicate that
I used the wrapper.  I'm sorry I can't be more precise.

> >the wrapper is suid root, which qmail may object to, but we think the
> >wrapper ought to be used.
> 
> It's possible, but not necessary.

Ok.  If I don't use the wrapper, how do I configure majordomo with
qmail without it.

> >we think this is qmail being fussy, AND it's easy to fix, but we're
> >not familiar with the way qmail works or how to check if this is
> >indeed a qmail problem.
> 
> You'd probably have better luck asking this on the qmail list, but
> you'll need to include lots more details of your configuration and the 
> problems you're having (e.g., actual error messages) if you expect
> anyone to be able to help.

You're probably right, though I assumed I might be having a problem
which someone would recognise as being an obvious mistake.  Majordomo
works well with sendmail, and seems close to working with qmail.

This is the message I get back when I try to provoke the majordomo
from the command line.  I guess that this is what will happen when
sending mail to majordomo@localhost:

hades [sjmudd /home/major]$ ./wrapper majordomo
To: majordomo@localhost
Subject: blank

this is a  test
mj_majordomo: ABORT
Majordomo@hades.myth.co.uk:  is not a valid return address.

hades [sjmudd /home/major]$  

I guess that majordomo tries to process the headers, and this is where
the problem occurs.  However this message is NOT produced by majordomo
but I guess by qmail.  It is qmail that doesn't like the majordomo
address.

Does this help?

-- 

Simon Mudd  ********  All Trading Brokers Europe  *********  Madrid, Spain
Work: simon.mudd@alltrading.es   Tel: +34-1-592 8190,  Fax: +34-1-592 8170
Home: sjmudd@redestb.es          Tel: +34-1-559 2854


Follow-Ups:
References:
Indexed By Date Previous: Majordomo and IRIX 6
From: "Scott A. Valcourt" <sav@unh.edu>
Next: Re: Majordomo death
From: "Mordechai T. Abzug" <morty@frakir.gsfc.nasa.gov>
Indexed By Thread Previous: Re: majordomo configuration with qmail (not working after following FAQ)
From: Dave Sill <de5@sws5.ctd.ornl.gov>
Next: Re: majordomo configuration with qmail (not working after following FAQ)
From: "Nathan J. Mehl" <memory@blank.org>

Google
 
Search Internet Search www.greatcircle.com