[Mailman-Users] Challenges with Mailmain (--with-cgi-gid )

Mohsenruddin Moonshi moonshi at moonshi.com
Mon Mar 25 16:00:49 CET 2002


Hi guys,

I need some help with Mailman. My HDD crashed beyond recovery so I have
re-installed Mandrake 8.1 on a new HDD and restored the following;

1.  Postfix
2.  Apache

However, I am having problems with Mailman's --with-mail-gid and
--with-cgi-gid options. I used these options when I compile Mailman;

user when compiling = mailman
pwd = /usr/local/src/mailman
postfix gid = 416
cgi-gid = <there's no cgi-gid, so I used user "nobody" with gid = 99>

./configure --prefix=/usr/local/mailman --with-mail-gid=416
--with-cgi-gid=99

After the installation was done, I did this;

## $prefix = /usr/local/mailman

[root at firewire mailman]# su - mailman
bash-2.05$
bash-2.05$ $prefix/bin/check_perms
No problems found

## Edited $prefix/Mailman/mm_cfg.py to reflect the following;

# Put your site-specific settings below this line; DEFAULT_HOST_NAME =
moonshi.com DEFAULT_URL = 'http://firewire.moonshi.com:81/mailman/'
PUCLIC_ARCHIVE_URL = '/pipermail/'
PRIVATE_ARCHIVE_URL = '/mailman/private/'
HOME_PAGE = 'index.html'
MAILMAN_OWNER = 'mailman-owner@%s' % DEFAULT_HOST_NAME

## Next, I added the "crontab.in"

	crontab $prefix/cron/crontab.in

## Next, I added these lines in /usr/local/apache/conf/httpd.conf

# Mailman Pipermail

Alias /pipermail/ "/usr/local/mailman/archives/public/

<Directory "/usr/local/mailman/archives/public/
	Options Indexes MultiViews
	AllowOverride None
	Order allow,deny
	Allow from all
</Directory>

# Mailman cgi-bin

ScriptAlias /mailman/ "/usr/local/mailman/cgi-bin/"

<Directory> "/usr/local/mailman/cgi-bin/"
	Options Indexes MultiViews
	AllowOverride None
	Order allow,deny
 	Allow from all
</Directory>


Once I am done with all the above, I did the following;

$prefix/bin/mmsitepass
Password: ************

$prefix/bin/newlist test
Password: **********

I then added these lines into /etc/postfix/aliases

## test mailing list
## created: 25-Mar-2002 mailman
test:		"|/usr/local/mailman/mail/wrapper post test"
test-admin:	"|/usr/local/mailman/mail/wrapper mailowner test"
test-request:	"|/usr/local/mailman/mail/wrapper mailcmd test"
test-owner:	test-admin

and do a "newaliases" to update the /etc/postfix/aliases file and then
added these into /etc/postfix/virtual

## Test list
test at moonshi.com	test

and I do a "postmap hash:/etc/postfix/virtual to update the
/etc/postfix/virtual tables with the new data.

Once I have done all the above, I restarted apache from

	/usr/local/apache/bin/apachectl restart

and also postfix

	/etc/rc.d/init.d/postfix restart

and xinetd

	/etc/rc.d/init.d/xinetd restart

and from my Linux client, hermes.moonshi.com send an email via Evolution
to "Test Mailing-List" <test at moonshi.com> and this is what I get from
/var/log/mail/errors

Mar 25 11:17:39 firewire Mailman cgi-wrapper (admin): Failure to exec
script. WANTED gid 416, GOT gid 99.  (Reconfigure to take 99?)

Mar 25 11:25:46 firewire Mailman mail-wrapper: Failure to exec script.
WANTED gid 416, GOT gid 99.  (Reconfigure to take 99?)

I checked that my gid for "postfix = 416" from "/etc/passwd" and I used
"cgi-gid = 99" (which is for user nobody which apache is using) as I
don't have user "cgi" in my system.

What, where and why did I do wrong? Can anyone guide me please?

Sincerely,
Mohsenruddin Moonshi
moonshi at moonshi.com






More information about the Mailman-Users mailing list