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 icon sad file(1) : N/A : NOT INSTALLED (required by Maia Mailguard)

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 .


  1. I’ve similar problem, how did you solve it ?
    I’ve file v4.23 installed, but maia don’t recognised

  2. I recently encountered this problem as well. After some investigation, I found that file sends its version output to stderr. In, the version is determined by running a regex on the output of
    file -v 2>/dev/null
    Notice that stderr is redirected to /dev/null and not caught. However, it would not have been caught anyway by the `$command` method used in the script.
    Apparently, something changed recently and the test no longer works. This issue has been reported to the amavis maia mailing list.

Comments are closed.