Skip to Content.
Sympa Menu

en - RE: [en@sympa] change one parameter in all list configs using sed?

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: "McLaren, Terry" <address@concealed>
  • To: "address@concealed" <address@concealed>
  • Subject: RE: [en@sympa] change one parameter in all list configs using sed?
  • Date: Mon, 27 Nov 2023 19:28:34 +0000

Been there done that… It works well.   I also created a backup of the current config as a ‘cya’ (cover your assets ;^)

 

Terry McLaren

 

From: address@concealed <address@concealed> On Behalf Of Widerski, Betty
Sent: Monday, November 27, 2023 1:21 PM
To: address@concealed
Subject: [en@sympa] change one parameter in all list configs using sed?

 

I want to change 'mode all' to 'mode dmarc_any,dmarc_quarantine,dmarc_reject,domain_regex'  in ALL of my existing Sympa lists. Is there a reason I should not do so by using a sed find/replace command on all the config files in /var/lib/sympa/list_data/listsdev.hbs.edu/*/config ? E.g.,

 

sed -i 's/mode all/mode dmarc_any,dmarc_quarantine,dmarc_reject,domain_regex/g' /var/lib/sympa/list_data/listsdev.hbs.edu/*/config

 

I'm not sure if directly editing the listname/config file is not recommended - ?

 

Thanks

Betty

 

Betty Widerski

Cloud & Server Engineering – HBS Information Technology

HARVARD  BUSINESS  SCHOOL     

Shad 108 N | address@concealed | T: 617.495.6642

 

 

 




Archive powered by MHonArc 2.6.19+.

Top of Page