
Hi everyone,
I am very new to Ubuntu, and having problems with Mailman+Exim integration. My biggest problem here would be my little knowledge in manipulating things in Ubuntu. So here goes: I followed this link to install: https://help.ubuntu.com/community/Mailman The most important part in this is the MACROS definitions in Exim:
# User and group for Mailman, should match your --with-mail-gid # switch to Mailman's configure script. Value is normally "mailman" MM_UID=list MM_GID=list
Now, posts cannot be delivered because: 2018-12-15 00:00:58 1gXuEg-0006Hn-2J ** testing@lists.my.co.ke < testing-bounces@lists.my.co.ke> R=mailman_router T=mailman_transport: Child process of mailman_transport transport returned 2 from command: /var/lib/mailman/mail/mailman
After consulting Google, I got advised to run a test:
root@lists:/home/wash# /var/lib/mailman/mail/wrapper post 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 "root". Try tweaking the mail server to run the script as group "daemon", or re-run configure, providing the command line option `--with-mail-gid=root'
So, how do I resolve this in Ubuntu 18.04 ??
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft."

On 12/15/18 1:35 AM, Odhiambo Washington wrote:
Status = 2 is a group mismatch error as you apparently discovered.
This test is irrelevant. It would be expected to produce a group mismatch because you are running the wrapper as root:root and not as the user:group that Exim runs it as.
Also, even in Debian/Ubuntu, the wrapper is normally named mailman/mail/mailman, not mailman/mail/wrapper, so I'm not sure what's going on here.
As far as how to fix it, this is really a Debian/Ubuntu question. See <https://wiki.list.org/x/12812344>.
That said, there are a couple of things going on here:
It appears from your above test that the expected group is 'daemon'. This is strange as in Debian/Ubuntu , it is normally 'list' which is why in your Exim config you have MM_GID=list. You could try MM_GID=daemon to fix this.
The Debian/Ubuntu package has patches to avoid the group mismatch test if the real gid of the caller is < 100 or = 65534.
My recomendation, especially if you want help from this list is to junk the Ubuntu package and install from source.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

On Sat, 15 Dec 2018 09:13:27 -0800 Mark Sapiro <mark@msapiro.net> wrote:
My recomendation, especially if you want help from this list is to junk the Ubuntu package and install from source.
I would recommend ditching ubuntu, too, and going with something that a) isn't systemd and b) comes with postfix. If I were doing this, I'd be tempted to try alpine w/ mailman from source.
(We run centos 6 on servers and so far I don't see any upgrade path for them that involves either readhat- or debian-based distributions. In fact, *BSD looks like a better option than any of them at the moment.)
</rant>
Dmitri Maziuk <dmaziuk@bmrb.wisc.edu>

On Sat, 15 Dec 2018 at 20:13, Mark Sapiro <mark@msapiro.net> wrote:
Yes, and got stumped as well.
Ah, that explains it. Every change I did to MM_UID and MM_GID was producing that error, leaving me wondering.
Also, even in Debian/Ubuntu, the wrapper is normally named mailman/mail/mailman, not mailman/mail/wrapper, so I'm not sure what's
going on here.
I saw the wrapper is a symlink so I did not find it odd to just use the name.
root@lists:/home/wash# cd /var/lib/mailman/mail/ root@lists:/var/lib/mailman/mail# ls -al total 24 drwxrwsr-x 2 root list 4096 Dec 15 13:51 . drwxr-xr-x 7 root list 4096 Dec 15 13:44 .. -rwxr-sr-x 1 root list 14672 Nov 30 19:01 mailman lrwxrwxrwx 1 root root 7 Nov 30 19:01 wrapper -> mailman root@lists:/var/lib/mailman/mail#
Actually, you've just woken me up - install from source :-) I just don't seem to get things right with packages I am not sure how to manipulate because I am not too familiar with the OS. I just did not think about installing from source, because I was relying on all the supposedly working HOWTOs online, so I wanted to leave the ecosystem as natural as possible.
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft."

On 12/16/2018 3:05 AM, Odhiambo Washington wrote:
When I was managing a Mailman installation on Ubuntu, I looked at the Debian/Ubuntu package, and it had a number of undocumented patches. I did not trust these, and I discovered that one patch deletes a file that is sometimes needed. So, I took the Mailman source and built my own package. I included a few patches from Mark that I needed, and I kept the D/U patches that put the files in the proper directories. The rest of the patches I discarded. This was for, IIRC, Mailman 2.14. I assume that what I did would work for the current Mailman 2.x release. Those who want details can contact me off-list.
--Barry Finkel

Hello Barry,
I was able to resolve this, using the Ubuntu package itself, so I do not need to manually compile. But it also gave me the impetus of learning how to manually compile stuff in Linux .
Now that MM21 is running, I need help running MM3 alongside it and migrate from 2.1 The main purpose of getting this particular VM was to get to run MM3.
For now, I think I am taking a sabbatical from MM2 list, headed to MM3 mailing list to seek support of someone willing to hand hold me with that monster.
On Sun, 16 Dec 2018 at 18:44, Barry S. Finkel <bsfinkel@att.net> wrote:
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", grep ^[^#] :-)

On 12/15/18 1:35 AM, Odhiambo Washington wrote:
Status = 2 is a group mismatch error as you apparently discovered.
This test is irrelevant. It would be expected to produce a group mismatch because you are running the wrapper as root:root and not as the user:group that Exim runs it as.
Also, even in Debian/Ubuntu, the wrapper is normally named mailman/mail/mailman, not mailman/mail/wrapper, so I'm not sure what's going on here.
As far as how to fix it, this is really a Debian/Ubuntu question. See <https://wiki.list.org/x/12812344>.
That said, there are a couple of things going on here:
It appears from your above test that the expected group is 'daemon'. This is strange as in Debian/Ubuntu , it is normally 'list' which is why in your Exim config you have MM_GID=list. You could try MM_GID=daemon to fix this.
The Debian/Ubuntu package has patches to avoid the group mismatch test if the real gid of the caller is < 100 or = 65534.
My recomendation, especially if you want help from this list is to junk the Ubuntu package and install from source.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

On Sat, 15 Dec 2018 09:13:27 -0800 Mark Sapiro <mark@msapiro.net> wrote:
My recomendation, especially if you want help from this list is to junk the Ubuntu package and install from source.
I would recommend ditching ubuntu, too, and going with something that a) isn't systemd and b) comes with postfix. If I were doing this, I'd be tempted to try alpine w/ mailman from source.
(We run centos 6 on servers and so far I don't see any upgrade path for them that involves either readhat- or debian-based distributions. In fact, *BSD looks like a better option than any of them at the moment.)
</rant>
Dmitri Maziuk <dmaziuk@bmrb.wisc.edu>

On Sat, 15 Dec 2018 at 20:13, Mark Sapiro <mark@msapiro.net> wrote:
Yes, and got stumped as well.
Ah, that explains it. Every change I did to MM_UID and MM_GID was producing that error, leaving me wondering.
Also, even in Debian/Ubuntu, the wrapper is normally named mailman/mail/mailman, not mailman/mail/wrapper, so I'm not sure what's
going on here.
I saw the wrapper is a symlink so I did not find it odd to just use the name.
root@lists:/home/wash# cd /var/lib/mailman/mail/ root@lists:/var/lib/mailman/mail# ls -al total 24 drwxrwsr-x 2 root list 4096 Dec 15 13:51 . drwxr-xr-x 7 root list 4096 Dec 15 13:44 .. -rwxr-sr-x 1 root list 14672 Nov 30 19:01 mailman lrwxrwxrwx 1 root root 7 Nov 30 19:01 wrapper -> mailman root@lists:/var/lib/mailman/mail#
Actually, you've just woken me up - install from source :-) I just don't seem to get things right with packages I am not sure how to manipulate because I am not too familiar with the OS. I just did not think about installing from source, because I was relying on all the supposedly working HOWTOs online, so I wanted to leave the ecosystem as natural as possible.
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft."

On 12/16/2018 3:05 AM, Odhiambo Washington wrote:
When I was managing a Mailman installation on Ubuntu, I looked at the Debian/Ubuntu package, and it had a number of undocumented patches. I did not trust these, and I discovered that one patch deletes a file that is sometimes needed. So, I took the Mailman source and built my own package. I included a few patches from Mark that I needed, and I kept the D/U patches that put the files in the proper directories. The rest of the patches I discarded. This was for, IIRC, Mailman 2.14. I assume that what I did would work for the current Mailman 2.x release. Those who want details can contact me off-list.
--Barry Finkel

Hello Barry,
I was able to resolve this, using the Ubuntu package itself, so I do not need to manually compile. But it also gave me the impetus of learning how to manually compile stuff in Linux .
Now that MM21 is running, I need help running MM3 alongside it and migrate from 2.1 The main purpose of getting this particular VM was to get to run MM3.
For now, I think I am taking a sabbatical from MM2 list, headed to MM3 mailing list to seek support of someone willing to hand hold me with that monster.
On Sun, 16 Dec 2018 at 18:44, Barry S. Finkel <bsfinkel@att.net> wrote:
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", grep ^[^#] :-)
participants (4)
-
Barry S. Finkel
-
Dmitri Maziuk
-
Mark Sapiro
-
Odhiambo Washington