Problem with file(1) and maia mailguard solved

I just install new FreeBSD server using 7.0 release.

In this stage I found file(1) problem not detected by maia mailguard properly.

mail# /var/amavisd/maia/scripts/configtest.pl

Application/Module      Version   Status
========================================================================
Perl                 :    5.8.8 : OK
file(1)              :      N/A : NOT INSTALLED (required by Maia Mailguard)
Archive::Tar         :     1.38 : OK
Archive::Zip         :     1.23 : OK

Trying to find out if file already installed.

mail# file -v

file-4.23
magic file from /usr/share/misc/magic

mail# ls -l /usr/local/bin | grep file

-r-xr-xr-x  1 root  wheel    11372 Apr  9 09:24 file
-r-xr-xr-x  1 root  wheel     5344 Apr  1 13:58 pamfile
lrwxr-xr-x  1 root  wheel        7 Apr  1 13:58 pnmfile -> pamfile

mail# whereis file
file: /usr/bin/file /usr/share/man/man1/file.1.gz /usr/src/usr.bin/file

Seem that file reading from /usr/local/bin

Making symlink

mail# ln -s /usr/bin/file /usr/local/bin/file

mail# /var/amavisd/maia/scripts/configtest.pl

Application/Module      Version   Status
========================================================================
Perl                 :    5.8.8 : OK
file(1)              :      N/A : NOT INSTALLED (required by Maia Mailguard)

Hehehehe, still not work. Trying to move file in /usr/bin

mail# mv /usr/bin/file /usr/bin/file_old

mail# cd /usr/ports/sysutils/file

mail# file -v

file-4.21
magic file from /usr/local/share/file/magic

Detect file installed from ports.

Trying again to detect.

mail# /var/amavisd/maia/scripts/configtest.pl

Application/Module      Version   Status
========================================================================
Perl                 :    5.8.8 : OK
file(1)              :     4.21 : OK
Archive::Tar         :     1.38 : OK

It works now, continue now 😉

Tags: