24 Apr
2024
24 Apr
'24
10:34 p.m.
On 4/24/24 10:34, bob B via Mailman-users wrote:
I need to set all the DMARC settings on are lists to "replace from with list address".
Is there an easy want to do this via cli? I could do it by viewing the web interface but we have a lot of lists.
With mailman shell:
$ 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.
>>> for mlist in getUtility(IListManager):
... mlist.dmarc_mitigate_action = DMARCMitigateAction.munge_from
...
>>> commit()
--
Mark Sapiro <mark@msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan