Author Topic: error on postfix rebuild  (Read 3751 times)

0 Members and 1 Guest are viewing this topic.

Offline
***
error on postfix rebuild
« on: January 06, 2022, 11:45:28 PM »
failed to link /usr/bin/spfquery -> /etc/alternatives/spf: /usr/bin/spfquery exists and it is either not a symlink or --keep-foreign was set and link points outside /etc/alternatives
Listen to everything Pixelpadre says.

Offline
*
Re: error on postfix rebuild
« Reply #1 on: June 12, 2022, 11:19:11 PM »
I have the same problem, I found this when doing rebuild

Running transaction
  Preparing        :                                                        1/1
  Installing       : perl-NetAddr-IP-4.079-7.el8.x86_64                    1/29
  Installing       : perl-Mail-SPF-2.9.0-15.el8.noarch                     2/29
  Running scriptlet: perl-Mail-SPF-2.9.0-15.el8.noarch                     2/29
failed to link /usr/bin/spfquery -> /etc/alternatives/spf: /usr/bin/spfquery exists and it is either not a symlink or --keep-foreign was set and link points outside /etc/alternatives

Offline
*
Re: error on postfix rebuild
« Reply #2 on: April 05, 2023, 07:22:50 PM »
Me too, exact the same problem.

Offline
*****
Re: error on postfix rebuild
« Reply #3 on: April 08, 2023, 02:05:45 AM »
Yes, it's present on CWP CentOS systems:
Code: [Select]
[overseer@srv]$ ls -al /usr/bin/spfquery
-rwxr-xr-x. 1 root root 4598 Nov 10  2020 /usr/bin/spfquery
[overseer@srv]$ du -sh  /usr/bin/spfquery
8.0K /usr/bin/spfquery
So you would have to manually delete it or move it to the side before running the postfix rebuild routine.