in Unix

file(1) : N/A : NOT INSTALLED (required by Maia Mailguard)

I’ve found my maia-mailguard not working, I run configtest to find out :

mail# /var/amavisd/maia/scripts/


This script checks for the presence of applications and Perl modules
required by amavisd-maia, SpamAssassin, and Maia Mailguard’s maintenance
scripts.  Version numbers are also checked, and if a newer version of
a component is recommended, you should consider upgrading to at least
the minimum recommended version.

If you have already configured your Maia Mailguard database, the script
will also test the connection to that database.

Remember also to run the configtest.php script on your web server to
perform similar tests of your web, PHP, and PEAR environment.

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

Googling around and get little clue about what file(1) is .

from :

get more info file-4.24.tar.gz (28 Mar 19:21, 567196 Bytes)
Determine file type (via magic file)


Looking p5 equivalent ports.

mail# whereis p5-File-Type
p5-File-Type: /usr/ports/devel/p5-File-Type

I decide to give this port a try :

mail# cd /usr/ports/devel/p5-File-Type && make install

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


Try another hint :

mail# wget
          => `file-4.24.tar.gz’
Connecting to||:21… connected.
Logging in as anonymous … Logged in!
==> SYST … done.    ==> PWD … done.
==> TYPE I … done.  ==> CWD /pub/file … done.
==> SIZE file-4.24.tar.gz … 567196
==> PASV … done.    ==> RETR file-4.24.tar.gz … done.
Length: 567196 (554K)

567,196     99.3K/s   in 6.0s

2008-04-02 08:42:46 (91.8 KB/s) – `file-4.24.tar.gz’ saved [567196]

mail# tar xvzf file-4.24.tar.gz

mail# cd file-4.24

mail# ./configure
mail# make
mail# make check
mail# make install

Try again :

mail# whereis p5-File-MMagic
p5-File-MMagic: /usr/ports/devel/p5-File-MMagic
mail# cd /usr/ports/devel/p5-File-MMagic && make install

Still not work too 🙁

try to find out if file installed.

mail# file -v
magic file from /usr/share/misc/magic

I got one but maia-mailguard don’t recognized it.

Will investigate it later, must go home now .