Tag Archives: maia-mailguard

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 😉

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/configtest.pl

MAIA MAILGUARD CONFIGURATION TEST

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 : http://www.sfr-fresh.com/unix/misc/

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

Hmm…

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)

sighhh…

Try another hint :

mail# wget ftp://ftp.astron.com/pub/file/file-4.24.tar.gz
–2008-04-02
08:42:32–  ftp://ftp.astron.com/pub/file/file-4.24.tar.gz
          => `file-4.24.tar.gz’
Resolving ftp.astron.com… 208.77.212.98, 38.117.134.204
Connecting to ftp.astron.com|208.77.212.98|: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)

100%[=====================================================================================>]
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
file-4.23
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 .

Maia-mailguard, user powered mail spam blocker

"Help, my mail inbox still full of spam, you said that you already set a spam blocker in mail server?"

My friend ask me about his mailbox :-)

My bad, I don’t socialize how to use maia-mailguard for email user.

Maybe, some of you already know that too but don’t know what to do to minimize spam in your inbox with maia-mailguard.

It’s just quick way to set your preference and dissappointing mail spammer :-)

1. Login to your maia-mailguard, the address provided by sysadmin.

Username is your current email address.

Password is your current email password.

 

Continue reading