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: Matthew Goebel <address@concealed>
  • To: "Widerski, Betty" <address@concealed>
  • Cc: "address@concealed" <address@concealed>
  • Subject: Re: [en@sympa] change one parameter in all list configs using sed?
  • Date: Mon, 27 Nov 2023 14:24:23 -0500

I've done that before with no issue.

I had to restart sympa to pick up all the file changes though.

Matt


On Mon, Nov 27, 2023 at 2:20 PM Widerski, Betty <address@concealed> wrote:
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
 
 
 


--
Matthew Goebel : maddress@concealed : Unix Jockey @ EMU : Hail Eris
Neo-Student, Net Lurker, Donut consumer, and procrastinating medher...
 "Always with the negative waves, Moriarty" - Oddball
 "Comfort the troubled, and trouble the comfortable." - Dietrich Bonhoeffer





Archive powered by MHonArc 2.6.19+.

Top of Page