Thanks to both. But I'm afraid that this advice does not help, and I am giving up.
I suspect that what I am trying to do is impossible. And I also think I was going about it wrong. I was trying to use /etc/aliases to get the mail to go to procmail, with lines like this:
Method 1 jdm-society: "|/usr/bin/procmail -m /etc/procmailrc"
or
Method 2 jdm-society-owner: "|/usr/lib/mailman/mail/mailman owner jdm-society"
And then /etc/procmail had lines like this:
:0
- To:.*jdm-society-owner@sjdm.org | /etc/smrsh/mailman owner jdm-society
and /etc/smrsh has a soft links to /usr/bin/procmail and to ../../usr/lib/mailman/mail/mailm
(I don't know why the ../../ is there.)
Method 2 is what yielded the group mismatch.
Method 1 just said user not found.
I still have no idea where "baron" is coming from. I thought if I could figure that out it would lead to a solution. procmail is not "running". It is not listed in any version of "ps". It is evoked by sendmail or by /etc/aliases.db. sendmail and aliases.db are both owned by root and smmsp. I tried to change the owner of aliases.db to mail rather than root, but it got changed back when I ran newaliases.
So I am giving up. We will just deal with the spam by hand. The list is moderated, so none of it actually gets posted, and we discourage some of it with a small captcha. (The really fancy ones are impossible. I can't do them myself.)
I did read the link below, but I had not gotten up to trying to modify the code. It seems to be written mainly for some other system than what I have. (I'm using the last available Fedora RPM. I don't think they are going to update Mailman 2, or fix the bug. I do not have time to compile from source, since it is a major change - everything is in a different place. And I won't change to Mailman 3 because, so far as I can tell, we would not want any of its features and configuration would also take a lot of time. I will leave all this to my successor. Right now, everything works except the spam.)
https://wiki.list.org/DOC/4.23%20How%20do%20I%20use%20SpamAssassin%20with%20...
Thanks for trying.
Jon
On 05/16/22 00:45, Bruce Johnson wrote:
Are any of the processes being run by that user? like cron jobs?
Look throughthe mailman logs or other logs (it’s been a very long time; I cannot remember if procmail and spamassasin have their own logs or they get dumped into /var/log/messages (for RH-style systems; I forget what the general syslog file is called in Debian style)
Answers: No. No. Nothing in the logs (several of them.)
On May 15, 2022, at 4:35 PM, Jon Baron <jonathanbaron7@gmail.com> wrote:
I'm sure this is a very dumb question, because I have seen several posts about it, all of which imply that there is some simple solution.
I am trying to use spamassassin by running everything through /etc/procmail, and I get the following in /var/log/procmail:
"Group mismatch error. Mailman expected the mail wrapper script to be executed as one of the following groups: [mail, postfix, mailman, nobody, daemon], but the system's mail server executed the mail script as group: "baron". Try tweaking the mail server to run the script as one of these groups: [mail, postfix, mailman, nobody, daemon],"
The dumb question is: "What is the 'mail server'?" I thought it was sendmail, but I have no idea where "baron" comes from. baron is just a user on the system. The various IDs for mailman are set to sjdm.org in the configuration file. I installed it as "root" from a Fedora RPM, and the name "baron" had no part of that. So far as I can tell, NOTHING in this system is owned by "baron" except my own account (which is, however, included in several groups).
Jon
Jonathan Baron, Professor of Psychology, University of Pennsylvania Home page: https://www.sas.upenn.edu/~baron
-- Jonathan Baron, Professor of Psychology, University of Pennsylvania Home page: https://www.sas.upenn.edu/~baron Founding Editor: Judgment and Decision Making (http://journal.sjdm.org)