From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-user+bounces-200071-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 20E48158020 for <garchives@archives.gentoo.org>; Sun, 27 Nov 2022 13:21:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 69AFDE08CD; Sun, 27 Nov 2022 13:21:35 +0000 (UTC) Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 13A8EE087A for <gentoo-user@lists.gentoo.org>; Sun, 27 Nov 2022 13:21:34 +0000 (UTC) Received: by mail-pg1-x532.google.com with SMTP id 6so7666145pgm.6 for <gentoo-user@lists.gentoo.org>; Sun, 27 Nov 2022 05:21:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=bVxJVg+WzU0FH4WsngnH8G9ufmL1DRPXfG6kKFIB6+k=; b=ocAbemgbd13KYPNxaEqc9w9FjMLz5T6uAlFqx/D5oxJhV4WzcGp96DlJot5tcl/s9Q jOvtTxuTTQMw19zzGyBkD6NITJ7PAjrpVEBWfTz1h3G9NE3hPXcbq0xWAVWoJ6Q/emLE QP+6ZETXJLBn8Z4x/GGWUzX0l7+xbvSgezHPo/iJNYy14WgNEM1mzH4JnYXk5qJ+AvO2 xLtzgRYZrH2Io6NQOmX/ojKdwsIH9oYSHaKOVKVHpXnkfq7fC1FWMqnozYulrJHnVJtI SAscWP3MclV5X3lC0/seBhgMPQLPO/IPzrbwbyL3kAHMHKDLC470XgOoCsGwRb6xyOTL enew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=bVxJVg+WzU0FH4WsngnH8G9ufmL1DRPXfG6kKFIB6+k=; b=X2YzSJp9Y8DjbEa5w4yIs6cNxJGSm6zKVqtigjUonbMIFITezCllabmI28Z+GUOftd /8UKmNs0+M+t7ird3lzrhbdQQQrCCSSF6zsGA9XjuLTxl7N5Ly1bis4cdneVnysbkibl kHZLfgusnQsbX7s+n0xgyEo+dF6Z6FXH05olZHUkmYlwcR4bryA01rXde3tpKFcUEAl/ U5VxZlY6cqLQpN/9na/9V2WQU9w6qWZmacNt2cfBwTmXap5BPvVH5mIyAAS2S4OYACSz WfnsYP9Z4lxnJ2mh5EkAUGrksgz6AxvnGOPu05j7gEQ01LXat4JzgXBULAWBFWU3IVJo ydTw== X-Gm-Message-State: ANoB5pkacapKLwUhjn6C4O66ciDOoUD3SEC04L+O6Eytecg8nyyvAZ3V WNFrVT4ZyMN3qR/wkgM9YQArYtaGGI2yG+/E3mgNMkNV X-Google-Smtp-Source: AA0mqf71Jty6c4qQ5ojRqWBFeu//R6a9+IhNk6HO/m/9xj0MjqK2vVlPAfTjA8oIDrrblOzHZxggbHSzW+rl3uw1L20= X-Received: by 2002:aa7:820a:0:b0:574:a642:ad40 with SMTP id k10-20020aa7820a000000b00574a642ad40mr14025272pfi.42.1669555293758; Sun, 27 Nov 2022 05:21:33 -0800 (PST) Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 References: <5978ee28-12b8-fb4e-4467-604a31f34312@youngman.org.uk> In-Reply-To: <5978ee28-12b8-fb4e-4467-604a31f34312@youngman.org.uk> From: John Blinka <john.blinka@gmail.com> Date: Sun, 27 Nov 2022 08:21:22 -0500 Message-ID: <CAC_tCmqMuG_gvtnLm3r62BUnZdVijOCnezXvB_6XybBMOeL1og@mail.gmail.com> Subject: Re: [gentoo-user] Postfix config and update To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary="00000000000037a81a05ee73a218" X-Archives-Salt: b41e987c-fe54-4a05-99bd-6e49146aef3b X-Archives-Hash: 4bc7ba81e187adb3f96206bd56048019 --00000000000037a81a05ee73a218 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Nov 27, 2022 at 5:36 AM Wols Lists <antlists@youngman.org.uk> wrote= : > I've just had emerge telling me it wants to trash my postfix config :-) > > I'm not sure whether my setup is actually using it, I use dovecot to > deliver my mail, but is there any way I can stop random updates trying > to trash my local changes? I'm rubbish at merging updates, and last time > I tried I think the result was a complete mess. > > And I said I use dovecot to deliver mail - that takes a leaf out of the > systemd book and has a master config file pointing to a local config > file. Any updates to dovecot don't touch the local file, and don't touch > my local settings. > > Can I do anything similar for postfix? > > Cheers, > Wol > > I=E2=80=99m not a systemd user, so I don=E2=80=99t know precisely what sy= stemd does. But my /etc/postfix/main.cf is a soft link to =E2=80=9Cmain.cf.works=E2=80=9D, = which was an unoriginal name for an experimental config file that worked (as opposed to a series of trial configs that didn=E2=80=99t). The original main.cf is ren= amed main.cf.orig to keep it around as an unadulterated reference. Works for me and doesn=E2=80=99t get clobbered in updates. If I change any config file I usually rename it with a .orig suffix, alter a copy of the original, and point to the altered copy with a soft link. The soft link has the standard config file name. The altered copy has a name different from anything expected by the installation. The soft link allows me to try a bunch of different configs as I=E2=80=99m tuning the applicatio= n. Haven=E2=80=99t lost any custom configurations doing this, it makes my own modifications abundantly clear, and it keeps an original around for when I make a mess of my customizations. A quick diff between the .orig file and any ._cfg files after an update shows me what=E2=80=99s changed in the upda= te. There are portage file merging tools for config updates, but I don=E2=80=99= t use them often enough to use them properly. So I=E2=80=99ve reverted to this si= mple minded system. And backups! HTH John --00000000000037a81a05ee73a218 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div><br></div><div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class= =3D"gmail_attr">On Sun, Nov 27, 2022 at 5:36 AM Wols Lists <<a href=3D"m= ailto:antlists@youngman.org.uk">antlists@youngman.org.uk</a>> wrote:<br>= </div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;b= order-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-c= olor:rgb(204,204,204)">I've just had emerge telling me it wants to tras= h my postfix config :-)<br> <br> I'm not sure whether my setup is actually using it, I use dovecot to <b= r> deliver my mail, but is there any way I can stop random updates trying <br> to trash my local changes? I'm rubbish at merging updates, and last tim= e <br> I tried I think the result was a complete mess.<br> <br> And I said I use dovecot to deliver mail - that takes a leaf out of the <br= > systemd book and has a master config file pointing to a local config <br> file. Any updates to dovecot don't touch the local file, and don't = touch <br> my local settings.<br> <br> Can I do anything similar for postfix?<br> <br> Cheers,<br> Wol<br> <br> </blockquote></div></div>I=E2=80=99m not a systemd user, so I don=E2=80=99t= know precisely what systemd does. But my /etc/postfix/<a href=3D"http://ma= in.cf">main.cf</a> is a soft link to =E2=80=9Cmain.cf.works=E2=80=9D, which= was an unoriginal name for an experimental config file that worked (as opp= osed to a series of trial configs that didn=E2=80=99t). The original <a hre= f=3D"http://main.cf">main.cf</a> is renamed main.cf.orig to keep it around = as an unadulterated reference. Works for me and doesn=E2=80=99t get clobber= ed in updates.<div dir=3D"auto"><br></div><div dir=3D"auto">If I change any= config file I usually rename it with a .orig suffix, alter a copy of the o= riginal, and point to the altered copy with a soft link. The soft link has = the standard config file name. The altered copy has a name different from a= nything expected by the installation. The soft link allows me to try a bunc= h of different configs as I=E2=80=99m tuning the application.</div><div dir= =3D"auto"><br></div><div dir=3D"auto">Haven=E2=80=99t lost any custom confi= gurations doing this, it makes my own modifications abundantly clear, and i= t keeps an original around for when I make a mess of my customizations. A q= uick diff between the .orig file and any ._cfg files after an update shows = me what=E2=80=99s changed in the update.</div><div dir=3D"auto"><br></div><= div dir=3D"auto">There are portage file merging tools for config updates, b= ut I don=E2=80=99t use them often enough to use them properly. So I=E2=80= =99ve reverted to this simple minded system. And backups!</div><div dir=3D"= auto"><br></div><div dir=3D"auto">HTH</div><div dir=3D"auto"><br></div><div= dir=3D"auto">John</div> --00000000000037a81a05ee73a218--