[Mailman-Users] mailman on freeBSD 8.2: getgrgid error

2011-08-01 Thread Rekhesh Mohan

Hi folks, 
I've been fiddling with mailman 2.1.14 (from freebsd ports) on free BSD 
8.2. Everything seems to be fine so far except for the web based stuff. I 
get the following error when I try to access the page:

http://this.great.site/mailman/listinfo

---error
Mailman CGI error!!!

The Mailman CGI wrapper encountered a fatal error. This entry is being 
stored in your syslog:
Failure to find group name for GID 80.  Mailman
expected the CGI wrapper to be executed as group
www, but the system's web server executed the
wrapper as GID 80 for which the name could not be
found.  Try adding GID 80 to your system as www,
or tweak your web server to run the wrapper as group
www.
---/error-

This system has a www user and gid is 80 (group = www). In the first 
attempt, I let freebsd choose its own configure-arguments and later I 
tried it myself. Error remained the same. 

AFAIK, src/common.c is checking the GID with getgid() followed by 
getgrgid(). Now, my machine uses blowfish instead of md5 for passwd. 
getgid() is returning 80 - which is fine since i have gid(www) = 80 on my 
system. However, getgrgid(gid) returns null :-|  I gave up my fight at 
that point and decided to ask for help :)

I tried to figure out the behaviour of these functions with a small test 
code: getgrgid() returns gr_passwd = * for blowfish, and gr_passwd = x 
for md5. Is that an issue with mailman or am I making mistakes somewhere 
else in the installation? My apache config is given below (I followed the 
steps in installation doc.)

Thanks in advance..!

-apache-config4mailman
ScriptAlias /mailman/ /usr/local/mailman/cgi-bin/
Alias /pipermail/ /usr/local/mailman/archives/public/

Directory /usr/local/mailman
   Options FollowSymLinks ExecCGI
   AllowOverride None
   Order allow,deny
   Allow from all
/Directory

RedirectMatch ^/mailman[/]*$ http://this.great.site/mailman/listinfo/
-/apache-config4mailman
--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] mailman on freeBSD 8.2: getgrgid error

2011-08-01 Thread Rekhesh Mohan

On 01/08/2011 Odhiambo Washington wrote
 What is the output of this command on your system:
 
 grep www /etc/group

Here is the output:

[root@foo ~]# grep www /etc/group
www:*:80:www
[root@foo ~]# 

Thanks! 

--R

 
 On Sun, Jul 31, 2011 at 23:27, Rekhesh Mohan r...@iiap.res.in wrote:
  Hi folks,
  I've been fiddling with mailman 2.1.14 (from freebsd ports) on free
  BSD 8.2. Everything seems to be fine so far except for the web
  based stuff. I get the following error when I try to access the
  page:
  
  http://this.great.site/mailman/listinfo
  
  ---error
  Mailman CGI error!!!
  
  The Mailman CGI wrapper encountered a fatal error. This entry is
  being stored in your syslog:
  Failure to find group name for GID 80.  Mailman
  expected the CGI wrapper to be executed as group
  www, but the system's web server executed the
  wrapper as GID 80 for which the name could not be
  found.  Try adding GID 80 to your system as www,
  or tweak your web server to run the wrapper as group
  www.
  ---/error-
  
  This system has a www user and gid is 80 (group = www). In the
  first attempt, I let freebsd choose its own configure-arguments
  and later I tried it myself. Error remained the same.
  
  AFAIK, src/common.c is checking the GID with getgid() followed by
  getgrgid(). Now, my machine uses blowfish instead of md5 for
  passwd. getgid() is returning 80 - which is fine since i have
  gid(www) = 80 on my system. However, getgrgid(gid) returns null
  :-|  I gave up my fight at that point and decided to ask for help
  :)
  
  I tried to figure out the behaviour of these functions with a small
  test code: getgrgid() returns gr_passwd = * for blowfish, and
  gr_passwd = x for md5. Is that an issue with mailman or am I
  making mistakes somewhere else in the installation? My apache
  config is given below (I followed the steps in installation doc.)
  
  Thanks in advance..!
  
  -apache-config4mailman
  ScriptAlias /mailman/ /usr/local/mailman/cgi-bin/
  Alias /pipermail/ /usr/local/mailman/archives/public/
  
  Directory /usr/local/mailman
  
Options FollowSymLinks ExecCGI
AllowOverride None
Order allow,deny
Allow from all
  
  /Directory
  
  RedirectMatch ^/mailman[/]*$
  http://this.great.site/mailman/listinfo/
  -/apache-config4mailman
  --
  Mailman-Users mailing list Mailman-Users@python.org
  http://mail.python.org/mailman/listinfo/mailman-users
  Mailman FAQ: http://wiki.list.org/x/AgA3
  Security Policy: http://wiki.list.org/x/QIA9
  Searchable Archives:
  http://www.mail-archive.com/mailman-users%40python.org/
  Unsubscribe:
  http://mail.python.org/mailman/options/mailman-users/odhiambo%40gma
  il.com

--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] mailman on freeBSD 8.2: getgrgid error

2011-08-01 Thread Mark Sapiro
Rekhesh Mohan wrote:

AFAIK, src/common.c is checking the GID with getgid() followed by 
getgrgid(). Now, my machine uses blowfish instead of md5 for passwd. 
getgid() is returning 80 - which is fine since i have gid(www) = 80 on my 
system. However, getgrgid(gid) returns null :-|  I gave up my fight at 
that point and decided to ask for help :)


This appears to be a C library/OS issue that has nothing to do with
Mailman. getgrgid(gid) should return a struct group for the group
whose ID is gid. This structure should contain the information which
is a representation of the fields in the /etc/groups record for that
gid. If gid is valid, the return from getgrgid(gid) should not be null.


I tried to figure out the behaviour of these functions with a small test 
code: getgrgid() returns gr_passwd = * for blowfish, and gr_passwd = x 
for md5. Is that an issue with mailman or am I making mistakes somewhere 
else in the installation?


Mailman only cares about getgrgid()-gr_name.

-- 
Mark Sapiro m...@msapiro.netThe highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] mailman problem with exim

2011-08-01 Thread Lorenzo Coronati

On 30/07/2011 15:57, Mark Sapiro wrote:

Note that if you installed Mailman from a RedHat/CentOS rpm, most
examples on the web won't work because the mail wrapper mail/mailman
and the lists/ directory are not in the same MM_HOME directory. I.e.
the wrapper is /usr/lib/mailman/mail/mailman and the list directory is
/var/lib/mailman/lists/.


You got it Mark!
I didn't think to check those paths, and in fact they were wrong.
The error in the log was misleading me, nothing to do with virtual users 
and mysql...

I should have started with the simplest things...
Thanks a lot, I hope this thread can be useful to CentOS users.
Lorenzo

--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


[Mailman-Users] Can I use /usr/sbin/postmap myself to update virtual-mailman.db?

2011-08-01 Thread Ulf Dunkel

Hi Mark,

I have moved my domains to a new server and have copied many mailing 
lists from the old server to the new one instead of creating them on the 
new server one by one.


Now I see that the virtual-mailman file isn't updated for these simply 
copied mailing lists, but only for newly created ones. The file warns me 
to edit it myself, but rather have it auto-updated from the 
virtual-mailman.db file.


If I have understood the process correctly, every time when I create a 
new mailing list, Mailman will add the relevant data to the 
virtual-mailman.db and run /usr/sbin/postmap to have the virtual-mailman 
file updated for Postfix.


Can I do this myself on the Server console? I would really like to avoid 
having to create all these mailing lists again ...


And - yes, they are all properly shown by list_lists and can be used in 
either way, but still not via the email interface.


Any help is appreciated, as always.

---Ulf Dunkel
--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Can I use /usr/sbin/postmap myself to updatevirtual-mailman.db?

2011-08-01 Thread Mark Sapiro
Ulf Dunkel wrote:

Now I see that the virtual-mailman file isn't updated for these simply 
copied mailing lists, but only for newly created ones. The file warns me 
to edit it myself, but rather have it auto-updated from the 
virtual-mailman.db file.


Actually, that's not what the warning means. See below.


If I have understood the process correctly, every time when I create a 
new mailing list, Mailman will add the relevant data to the 
virtual-mailman.db and run /usr/sbin/postmap to have the virtual-mailman 
file updated for Postfix.


That's backwards. Mailman adds the relevant data to the virtual-mailman
file and then runs /usr/sbin/postmap to update the virtual-mailman.db
file from virtual-mailman. When you put something like
hash:/path/to/data/virtual-mailman in your Postfix config, that tells
Postfix to consult the corresponding /path/to/data/virtual-mailman.db
database and to generate warnings in its log if the
/path/to/data/virtual-mailman.db is not at least as new as
/path/to/data/virtual-mailman


Can I do this myself on the Server console? I would really like to avoid 
having to create all these mailing lists again ...


What you want to run is Mailman's bin/genaliases which will completely
rebuild data/aliases and data/virtual-mailman based on the lists in
the installation including those you added by copying and run the
relevant postalias and postmap commands to update the .db files.

-- 
Mark Sapiro m...@msapiro.netThe highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org