Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68758 - mailman won't accept files from qmail run as group nofiles
Summary: mailman won't accept files from qmail run as group nofiles
Status: RESOLVED DUPLICATE of bug 45439
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-24 16:20 UTC by Phil White
Modified: 2005-07-17 13:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Phil White 2004-10-24 16:20:16 UTC
qmail effectively cannot deliver messages to mailman due to mailman rejecting the delivery based on group ID.

Reproducible: Always
Steps to Reproduce:
1.emerge qmail
2.emerge mailman
3.hack qmail's control/virtualdomains to include the appropriate list.xxx.xxx domain and ship messages to it at qmail
4.set up a list (using ~mailman/bin/newlist)
5.set up qmail aliases
6.attempt to mail to the list

Actual Results:  
@40000000417c2cbf1029812c status: local 0/10 remote 0/20
@40000000417c2d12044d43d4 new msg 88296528
@40000000417c2d12044e64e4 info msg 88296528: bytes 454 from <relsqui@boogeyman.a
rmory.com> qp 14062 uid 1063
@40000000417c2d12090a27d4 starting delivery 628: msg 88296528 to local treasureh
unt@treasurehunt.mine.nu
@40000000417c2d12090a991c status: local 1/10 remote 0/20
@40000000417c2d120a27b564 delivery 628: deferral: Group_mismatch_error.__Mailman
_expected_the_mail/wrapper_script_to_be_executed_as_group_"mailman",_but/the_sys
tem's_mail_server_executed_the_mail_script_as/group_"nofiles".__Try_tweaking_the
_mail_server_to_run_the/script_as_group_"mailman",_or_re-run_configure,_/providi
ng_the_command_line_option_`--with-mail-gid=nofiles'./
@40000000417c2d120a28c6d4 status: local 0/10 remote 0/20


Expected Results:  
It should deliver seamlessly and mailman should farm it out to the correct list.

It can supposedly be fixed by setting the MAILGID line in the mailman ebuild 
from the GID of mailman (280 on my box) to the GID of nofiles (200 on my box), 
although I'm still having problems after a re-emerge.

# cat /var/qmail/alias/.qmail-mailman
|preline /var/lib/mailman/mail/wrapper post mailman

# ls -l /var/qmail/bin/preline
-rwxr-xr-x  1 root qmail 20584 Aug 11 05:03 /var/qmail/bin/preline

# ls -l /var/lib/mailman/mail/wrapper
-rwxr-sr-x  1 mailman mailman 7260 Oct 19 04:54 /var/lib/mailman/mail/wrapper

# emerge info
emerge info
Portage 2.0.51 (default-x86-2004.0, gcc-3.3.4, glibc-2.3.3.20040420-r2, 2.6.8.1 
i686)
=================================================================
System uname: 2.6.8.1 i686 Pentium III (Katmai)
Gentoo Base System version 1.4.16
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium3 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /etc/tomcat4 /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
 /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/
alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium3 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoclean buildpkg ccache collision-protect distlocks 
sandbox userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X509 aalib accessibility acl acpi acpi4linux afs aim alsa amd apache2 apm 
arts artswrappersuid asterisk async avi berkdb bidi bitmap-fonts bzlib cap cdr 
cdrom chroot clanJavaScript crypt cscope cups curl curlwrappers devfs devfs26 
devmap dio directfb distcache divx4linux djbfft encode erandom esd ethereal f77 
fam fbcon flash fltk foomaticdb freetts fs ftp gcj gcl gdbm gif gimp gimpprint 
glut gphoto2 gpm gtk2 hbci icc icc-pgo icq ifc imagemagick imap imlib inetd 
ipv6 ipv6arpa java javacomm javadoc javamail javascript jikes jit jp2 jpeg 
kerberos krb4 libg++ libwww lids live log4j lzw mad maildir makecheck memlimit 
mhash mikmod ming mmap mmx mng motif mozilla mpeg mpeg4 mpi mplayer msn music 
mysql mysqli nagios-dns nagios-ntp nagios-ping nagios-ssh nas ncurses net 
nethack nis nls nodroproot nptl ntlm ocaml odbc oggvorbis oldworld openal 
opengl oscar oss pam pcntl pcre pdflib perl php physfs pic pie png pnp posix 
prelude python quicktime readline ruby samba sasl scanner sdl slang sockets sox 
spell spl src sse ssl svga sysvipc tcltk tcpd threads tiff truetype usagi usb 
x86 xchatnogtk xchattext xfs xml2 xmms xprint xv yahoo zlib"
Comment 1 Tuan Van (RETIRED) gentoo-dev 2004-10-25 09:19:02 UTC
there is also a guide in bug #57189 comment #4

*** This bug has been marked as a duplicate of 45439 ***