>> Hi,
>>
>> the day before yesterday, my amavis started to fail with following 
>> log line per scanned email:
>>
>> <snip>
>> 451 4.5.0 Error in processing, id=18143-02, decoding2-get-file-types 
>> FAILED: 'file' utility (/usr/bin/file) failed, status=1 (256 ) at 
>> /usr/sbin/amavisd-new line 3853. (in reply to end of DATA command))
>> <snap>
>>
>> I did not update anything at the time. If executed manually, 
>> /usr/bin/file seems to work as usual. I reinstalles file and 
>> amavisd-new from repository with no success.
>>     
>
> Perhaps the file utility is failing on the particular decoded part of
> the MIME encoded email.  You may still have a directory in your amavis
> tmp directory (/var/amavis/tmp perhaps?) that ends with 18143.  There
> will be an "email.txt" file and a "parts" sub-directory.  Try running
> file on each component and checking the exit status of each.
>   
Thanks a lot for your suggestion!

I moved to the folder you described and ran "file" on every file within 
the folder and the the subfolder. I copy/paste the process below.
File gave useful output. I testet every invokation with "echo $?" what 
showed a return code "0" for all file invokations.
IMHO file works correctly. Or do I miss anything?

Clemente

File tests - I hope my prompt makes it not too unreadible:

root : /var/lib/amavis/amavis-20080825T033006-18143 : 11:51
 >ll
insgesamt 8
-rw-r-----  1 amavis amavis 2315 2008-08-25 03:30 email.txt
drwxr-x---  2 amavis amavis 4096 2008-08-25 03:30 parts

root : /var/lib/amavis/amavis-20080825T033006-18143 : 11:51
 >file email.txt
email.txt: RFC 822 mail text

root : /var/lib/amavis/amavis-20080825T033006-18143 : 11:51
 >echo $?
0

root : /var/lib/amavis/amavis-20080825T033006-18143 : 11:52
 >cd parts/

root : /var/lib/amavis/amavis-20080825T033006-18143/parts : 11:52
 >file part-00001
part-00001: empty

root : /var/lib/amavis/amavis-20080825T033006-18143/parts : 11:52
 >echo $?
0

root : /var/lib/amavis/amavis-20080825T033006-18143/parts : 11:52
 >file part-00002
part-00002: HTML document text

root : /var/lib/amavis/amavis-20080825T033006-18143/parts : 11:52
 >echo $?
0


-- 

Clemens von Musil
S.M.A.R.T. capable but disabled.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
AMaViS-user mailing list
[email protected] 
https://lists.sourceforge.net/lists/listinfo/amavis-user 
 AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 
 AMaViS-HowTos:http://www.amavis.org/howto/ 

Reply via email to