remove multi line config entry with sed

2017-05-12 Thread Geert Stappers
Hi, In postfix configuration files we have # keyword = value keyword2 = some value keyword3 = multi physical line single logical line keyword4 = also multi line stil keyword4 keyword5 = foo # I want to remove keyword4 with sed(1). At http://stackoverflow.com/questions/37680636/sed-mu

Re: remove multi line config entry with sed

2017-05-12 Thread Dominic Raferd
On 12 May 2017 at 12:56, Geert Stappers wrote: > > ​... > > ​ > > sed --silent '/^uucp/{:a;N;/^ +/ba};p' > ​​ > /etc/postfix/master.cf > > Yields _all_ lines, expected/wanted is > > uucp unix - n n - - pipe > flags=Fqhu user=uucp argv=uux -r -n -z -a$sender -

Re: remove multi line config entry with sed

2017-05-12 Thread Wietse Venema
Geert Stappers: > > Hi, > > In postfix configuration files we have > > # > keyword = value > keyword2 = some value > keyword3 = multi physical line > single logical line > keyword4 = also >multi line >stil keyword4 > keyword5 = foo > # > > I want to remove keyword4 with sed(1). Why

Domain Relay Question

2017-05-12 Thread Joey J
Hello, I have been using postfix for a long time to relay email in a backup or filtering role. DomainX mail to Postfix1, no response deliver to Postfix2. MX weighting control the delivery from the sending servers to Postfix1 or Postfix2 Now, in my transport file I have: domainx smtp:[mailse