[BlueOnyx:22758] Mailman on BlueOnyx 5209R

Roger Elve elvesaether at gmail.com
Wed Mar 6 17:50:47 -05 2019


Hey list!
I'm facing an issue with Mailman on BlueOnyx 5209R

I created a mailing list with the following policies:
- Posting policy: All users can post messages
- Subscription policy: Closed
- Reply policy: Reply to sender

However, any non-member posting to the list receives the following
error: Post by non-member to a members-only list (message held for
moderation).

The initial generated list configuration looks mostly correct (owner
and moderator fields have an extra empty value):
# Config file: /var/lib/mailman/lists/prefix-test.cfg
owner = ['user at domain.tld', '']
moderator = ['user at domain.tld', '']
generic_nonmember_action = 0
default_member_moderation = 0
subscribe_policy = 2
reply_goes_to_list = 0
require_explicit_destination = 0
host_name = domain.tld

However, the database does not mirror the settings from the plain text
configuration, thus explaining the previous unexpected "held for
moderation" message:
# Config database: /var/lib/mailman/lists/prefix-test/config.pck
'owner': ['user at domain.tld'],
'moderator': [],
'generic_nonmember_action': 1,
'default_member_moderation': False,
'subscribe_policy': 1,
'reply_goes_to_list': 0,
'require_explicit_destination': True,
'host_name': 'domain.tld',

Executing the Mailman configuration shows an issue with the generated
configuration, and I suspect this also breaks the mailman handler
(MailMan.pm):
# /usr/lib/mailman/bin/config_list -i prefix-test.cfg prefix-test
Traceback... File "prefix-test.cfg", line 27, in <module>
host_name = domain.tld
NameError: name 'domain.tld' is not defined

Ok, so let's add single quotes around the host name by modifying
/usr/sausalito/handlers/base/mailman/MailMan.pm
.. print CONFIG "host_name = '$domain'\n"; ..

However, after modifying the mailing list from the GUI for a second
time, the generated configuration suddenly contains additional invalid
values for the owner and moderator fields:
# Config file: /var/lib/mailman/lists/prefix-test.cfg
owner = ['user at domain.tld', 'user at domain.tld',h '']
moderator = ['user at domain.tld', 'user at domain.tld',h '']

There are a few lines of regular expressions involved here that I'll
rather not touch, so I'm hoping Michael will have a look at this
instead. For the record, using the mailman admin interface works as expected,
the same goes for modifying the prefix-listname.cfg directly and
subsequently running the config_list command.

Lastly, remote subscribers doesn't seem to work without having at
least one local subscriber.

--
Regards
Roger Elve



More information about the Blueonyx mailing list