On 10/22/21 2:07 PM, Christian Stalberg via Mailman-users wrote:
I added the additional hosts to ALLOWED HOSTS in settings_local.py and mailman is distributing mail to subscribers again. However, I then received many emails of valid users subscriptions being disabled. What would cause that?
Did you just upgrade Mailman core from a version <=3.3.0 to one >=3.3.1? If so, see https://lists.mailman3.org/archives/list/mailman-users(a)mailman3.org/thread...
Can subscriber management be done via command line?
See https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/commands/do... for description of the available mailman subcommands.
If you are interested in re-enabling delivery for members whose delivery
is disabled by bounce, you can do this fairly easily in an interactive
mailman shell
session. See
https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/commands/do...
Something like the following session:
$ bin/mailman shell
Welcome to the GNU Mailman shell
Use commit() to commit changes.
Use abort() to discard changes since the last commit.
Exit with ctrl+D does an implicit commit() but exit() does not.
>>> lm = getUtility(IListManager)
>>> for mlist in lm.mailing_lists:
... for member in mlist.members.members:
... if member.delivery_status == DeliveryStatus.by_bounces:
... member.preferences.delivery_status = DeliveryStatus.enabled
... print("Re-enabled delivery for bouncing member {} on list {}"
... .format(member.address.email, mlist.list_name))
...
<print output here>
>>> commit()
>>> exit()
-- Mark Sapiro <mark(a)msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan