




I've just been bitten by this bug. This really flippin sucks!libertytrek wrote:Wow... no response at all...
Maybe we do need Daniel back.
Might I ask (and please forgive me if this a beyond-noob question) how you downgraded?richard.scott wrote: I've had to downgrade back to 2.1.9 until I can figure out what changes have happened.
Code: Select all
INSTALLDIR="/usr/local/mailman"
APACHEGID="81"
MAILGID="2"
#if use postfix; then
# MAILGID="280"
#elif use sendmail; then
# MAILGID=daemon
#elif use qmail; then
# MAILGID="280"
#elif use courier; then
# MAILGID=mail
#elif use exim; then
# MAILGID=mail
#elif use xmail; then
# MAILGID=xmail
#else
# MAILGID="280"
#fi
Code: Select all
pkg_setup() {
INSTALLDIR=${MAILMAN_PREFIX:-"/usr/$(get_libdir)/mailman"}
VAR_PREFIX=${MAILMAN_VAR_PREFIX:-"/var/lib/mailman"}
CGIGID=${MAILMAN_CGIGID:-81}
MAILUSR=${MAILMAN_MAILUSR:-mailman}
MAILUID=${MAILMAN_MAILUID:-280}
MAILGRP=${MAILMAN_MAILGRP:-mailman}
MAILGID=${MAILMAN_MAILGID:-280}
# Bug #58526: switch to enew{group,user}.
# need to add mailman here for compile process.
# Duplicated at pkg_postinst() for binary install.
enewgroup ${MAILGRP} ${MAILGID}
enewuser ${MAILUSR} ${MAILUID} /bin/bash ${INSTALLDIR} mailman -G cron -c "mailman"
}
src_compile() {
econf --without-permcheck \
--prefix="${INSTALLDIR}" \
--with-mail-gid=${MAILGID} \
--with-cgi-gid=${CGIGID} \
--with-cgi-ext="${MAILMAN_CGIEXT}" \
--with-var-prefix="${VAR_PREFIX}" \
--with-username=${MAILUSR} \
--with-groupname=${MAILGRP} \Code: Select all
pkg_setup() {
INSTALLDIR=${MAILMAN_PREFIX:-"/usr/$(get_libdir)/mailman"}
VAR_PREFIX=${MAILMAN_VAR_PREFIX:-"/var/lib/mailman"}
CGIGID=${MAILMAN_CGIGID:-81}
MAILUSR=${MAILMAN_MAILUSR:-mailman}
MAILUID=${MAILMAN_MAILUID:-280}
MAILGRP=${MAILMAN_MAILGRP:-daemon}
MAILGID=${MAILMAN_MAILGID:-2}Code: Select all
----- The following addresses had permanent fatal errors -----
"|/usr/lib/mailman/mail/mailman post test"
(reason: 1)
----- Transcript of session follows -----
Traceback (most recent call last):
File "/usr/lib/mailman/scripts/post", line 69, in ?
main()
File "/usr/lib/mailman/scripts/post", line 61, in main
inq = get_switchboard(mm_cfg.INQUEUE_DIR)
File "/var/tmp/portage/net-mail/mailman-2.1.9-r3/image//usr/lib/mailman/Mailman/Queue/sbcache.py", line 25, in get_switchboard
File "/var/tmp/portage/net-mail/mailman-2.1.9-r3/image//usr/lib/mailman/Mailman/Queue/Switchboard.py", line 77, in __init__
OSError: [Errno 13] Permission denied: '/var/lib/mailman/qfiles/in'
554 5.3.0 unknown mailer error 1The fix is partly documented in the new ebuild:Group mismatch error. Mailman expected the mail wrapper script to be executed as group "daemon", but
the system's mail server executed the mail script as group "mail". Try tweaking the mail server to run the
script as group "daemon", or re-run configure, providing the command line option `--with-mail-gid=mail'.
Default-Configuration has changed deeply in 2.1.9-r2. You can configure
mailman with the following variables:
MAILMAN_PREFIX (default: /usr/$(get_libdir)/mailman)
MAILMAN_VAR_PREFIX (default: /var/lib/mailman)
MAILMAN_CGIGID (default: 81)
MAILMAN_CGIEXT (default: empty)
MAILMAN_MAILUSR (default: mailman)
MAILMAN_MAILUID (default: 280)
MAILMAN_MAILGRP (default: mailman)
MAILMAN_MAILGID (default: 280)
If you look at the /tmp/mail.out file you will see this line:id mail
uid=8(mail) gid=12(mail) groups=12(mail)
MAILMAN_MAILGID=12 etry mailman > /tmp/mail.out 2>&1
You will notice that the option I needed is there: --with-mail-gid=12./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --without-permcheck --prefix=/usr/lib/mailman --with-mail-gid=12 --with-cgi-gid=81 --with-cgi-ext= --with-var-prefix=/var/lib/mailman --with-username=mailman --with-groupname=mailman --build=i686-pc-linux-gnu

That's not a bad question so please don't worry. I once didn't know that either!KCSB wrote:Might I ask (and please forgive me if this a beyond-noob question) how you downgraded?
Code: Select all
emerge -av =net-mail/mailman-2.1.9
My /etc/apache2/modules.d/50_mailman file only seemed to get updated the second time I reinstalled mailman but I might have forgotten to run etc-update.# pwd
/usr/adm/sm.bin
# ls -l
total 8
lrwxrwxrwx 1 root root 29 Feb 7 23:03 mailman -> /usr/lib/mailman/mail/mailman
# pwd
/var/lib/mailman/archives/public
# ls -l
lrwxrwxrwx 1 root mailman 40 Feb 7 01:59 list_name -> /var/lib/mailman/archives/private/list_name
Thanks very much, Rich.richard.scott wrote:That's not a bad question so please don't worry. I once didn't know that either!KCSB wrote:Might I ask (and please forgive me if this a beyond-noob question) how you downgraded?![]()
Code: Select all
mailman:x:286:286:mailman:/usr/local/mailman:/bin/bash
Code: Select all
mailman:x:286:286:mailman:/usr/lib/mailman:/bin/bash

Code: Select all
usermod -d /usr/lib/mailman mailmanCode: Select all
cp -pr /uar/local/mailman/lists /var/lib/mailman
cp -pr /usr/local/mainman/archives /var/lib/mailmanCode: Select all
/usr/lib/mailman/bin/genaliasesCode: Select all
crontab /usr/lib/mailman/cron/crontab.inCode: Select all
/etc/init.d/apache2 restart
/etc/init.d/postfix restart
/etc/init.d/mailman restart
I'll still take a Gentoo break over a M$ break any day.rek2 wrote:What I dont understand is how a mayor distro like gentoo is screwing with people more and more..
if you see the number of my posts and the date I joined the forum you will see I been here for long and a gentoo lover and still..
but lately a lot of screw up things have happen, some of US runs gentoo on production servers and yes " don't update" but if there is a mayor
change there should not be NEVER a revision only change.. so lets say is half half fault but I learn my lesson are the gentoo developers going to learn theirs?
PLEASE DONT MAKE SUCH BIG CHANGES ON REVISION!!! or we going to have to move our production servers to Debian again.

I 100% agree! but this does not means we have to relax 100% I want gentoo to succeed this is why one have to be critic at times as well..b1f30 wrote:I'll still take a Gentoo break over a M$ break any day.rek2 wrote:What I dont understand is how a mayor distro like gentoo is screwing with people more and more..
if you see the number of my posts and the date I joined the forum you will see I been here for long and a gentoo lover and still..
but lately a lot of screw up things have happen, some of US runs gentoo on production servers and yes " don't update" but if there is a mayor
change there should not be NEVER a revision only change.. so lets say is half half fault but I learn my lesson are the gentoo developers going to learn theirs?
PLEASE DONT MAKE SUCH BIG CHANGES ON REVISION!!! or we going to have to move our production servers to Debian again.
At least when a distro breaks, you can usually fix it within 24-48 hours.
geyser wrote:
MAILMAN_PREFIX (default: /usr/$(get_libdir)/mailman)
MAILMAN_VAR_PREFIX (default: /var/lib/mailman)
MAILMAN_CGIGID (default: 81)
MAILMAN_CGIEXT (default: empty)
MAILMAN_MAILUSR (default: mailman)
MAILMAN_MAILUID (default: 280)
MAILMAN_MAILGRP (default: mailman)
MAILMAN_MAILGID (default: 280)
Unfortunately the file you need to change was not documented.
Can anyone drop a hint?
It has to be done in /etc/make.conftam wrote:to know how and where to set ther MAILMAN_* variables.