Control Web Panel

WebPanel => Postfix => Topic started by: Namaste on January 06, 2022, 11:45:28 PM

Title: error on postfix rebuild
Post by: Namaste 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
Title: Re: error on postfix rebuild
Post by: djfininho 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
Title: Re: error on postfix rebuild
Post by: ljubivoje on April 05, 2023, 07:22:50 PM
Me too, exact the same problem.
Title: Re: error on postfix rebuild
Post by: overseer 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.