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.
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
looks like I need also to set DMARC Mitigate unconditionally to true for all lists, but having issues finding the syntax.
I thought it would be
for mlist in getUtility(IListManager): dmarc_mitigate_unconditionally=True
commit()
But that does not work
You have 1K+ lists?
On Tue, May 7, 2024 at 10:25 PM bob B via Mailman-users < mailman-users@mailman3.org> wrote:
looks like I need also to set DMARC Mitigate unconditionally to true for all lists, but having issues finding the syntax.
I thought it would be
for mlist in getUtility(IListManager): dmarc_mitigate_unconditionally=True
commit()
But that does not work
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/ Archived at: https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/...
This message sent to odhiambo@gmail.com
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 In an Internet failure case, the #1 suspect is a constant: DNS. "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-) [How to ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html]
No, why do you ask that?
If you have even 30 lists and want to make the same change why not do it all at one time instead of individually?
On Tue, May 7, 2024 at 10:51 PM bob B via Mailman-users < mailman-users@mailman3.org> wrote:
No, why do you ask that?
If you have even 30 lists and want to make the same change why not do it all at one time instead of individually?
Makes sense.
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 In an Internet failure case, the #1 suspect is a constant: DNS. "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-) [How to ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html]
On 5/7/24 12:25, bob B via Mailman-users wrote:
looks like I need also to set DMARC Mitigate unconditionally to true for all lists, but having issues finding the syntax.
I thought it would be
for mlist in getUtility(IListManager): dmarc_mitigate_unconditionally=True
commit()
Close. It needs to be
mlist.dmarc_mitigate_unconditionally=True
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (4)
-
bob B
-
Jörg Schulz
-
Mark Sapiro
-
Odhiambo Washington