Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Oct 2013 16:49:25 +0200
From:      Mark Martinec <Mark.Martinec+freebsd@ijs.si>
To:        freebsd-ports@freebsd.org
Subject:   Re: amavis[12345]: (12345-02) (!)file utility failed: exit 1
Message-ID:  <201310231649.25418.Mark.Martinec%2Bfreebsd@ijs.si>
In-Reply-To: <A85E05D6-DB7B-441A-90DE-43C2B0ADE951@odo.in-berlin.de>
References:  <A85E05D6-DB7B-441A-90DE-43C2B0ADE951@odo.in-berlin.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Michael,

> amavis[12345]: (12345-02) (!)file utility failed: exit 1
> This is FreeBSD (9.2-STABLE, r256062), amavisd-new 2.8.0, and file 5.15.
> Mailserver including amavisd is running in a service jail.
> 
> After a recent port upgrade of file to 5.15, I do get warnings like shown
> in the subject line. In order to debug that issue I did replace the file
> 5.15 by the file 5.11 executable, and well, now those warning messages
> disappeared.
> 
> Here my questions:
> 
> 1. Do others see those warning messages as well, running the combination
> amavisd-new 2.8.0 and file 5.15? 2. Can one safely ignore those messages?

If it occurs on a rare occasion, it is probably safe to ignore,
otherwise it would be worth investigating. Find a mail message
which causes such warning, unpack its attachments, and try
to run the 'file' command on resulting files in the same jail
and by the same UID under which amavisd is running, checking
the resulting exit code.

Other option is to enable debug logging (e.g. '# amavisd debug'),
and grep for 'result line from file' in the log.

> 3. May "$file = '/usr/bin/file';" in amavisd.conf function as a valid
> workaround for the time being? (I have to admit that I didn't dare testing
> that, yet)

Yes, that is certainy a viable option.

  Mark



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310231649.25418.Mark.Martinec%2Bfreebsd>