On 2021-07-24 09:29:04 +1000, raf wrote:
> On Fri, Jul 23, 2021 at 04:13:00PM +0200, Jean-François Bachelet 
> <[email protected]> wrote:
> 
> > Hello ^^)
> > 
> > I found that error in mail.log, at each start postfix issue that error :
> > 
> > 'Jul 23 15:36:57 discovery postfix/postfix-script[1170]: warning: symlink
> > leaves directory: /etc/postfix/./makedefs.out'
> > 
> > is that warning harmless or not ?
> > 
> > Jeff
> 
> I'm pretty sure that that file is put there as part of
> the debian package (even though it doesn't show up in
> dpkg-query -L postfix). I had it too.

It is not part of the Debian package, but installed by the
postfix.postinst script:

# we want it out of /etc to not be a conffile, but users might expect it there
# so leave a symlink at the expected place in /etc
if [ -f "/usr/share/postfix/makedefs.out" ]; then
    if [ ! -e "/etc/postfix/makedefs.out" ]; then
        ln -s /usr/share/postfix/makedefs.out /etc/postfix/makedefs.out
    fi
fi

If I understand correctly, it is a normal file in postfix
(it is listed in the postfix 3.6.1 tarball in conf/postfix-files:
"$meta_directory/makedefs.out:f:root:-:644"), but Debian chose
to move it into /usr/share/postfix and added a symlink to this
file. The probable reason is that this file is not a configuration
file and should not be modified.

-- 
Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Reply via email to