Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Jun 2005 12:18:09 -0400
From:      Bart Silverstrim <bsilver@chrononomicon.com>
To:        Alistair Sutton <alistair.sutton@gmail.com>
Cc:        FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: portmanager, amavis update problem
Message-ID:  <b8b7788a01dbcc73616deea8e177e060@chrononomicon.com>
In-Reply-To: <7bd6ee83a844eac981ad3d45c6b39a53@athensasd.org>
References:  <4cddb2f0c5d46e2ee7bc436c943aabe3@athensasd.org> <fa8f05950506270802a7a812@mail.gmail.com> <af8cd53cd47549a46dedc23de88e02e1@athensasd.org> <fa8f059505062708145cb4ba03@mail.gmail.com> <d807393a9ebd7598700494388d8d1368@athensasd.org> <fa8f0595050627082646d211a0@mail.gmail.com> <7bd6ee83a844eac981ad3d45c6b39a53@athensasd.org>

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

On Jun 27, 2005, at 11:26 AM, Alistair Sutton wrote:

>
> On Jun 27, 2005, at 11:26 AM, Alistair Sutton wrote:
>
>> On 27/06/05, Bart Silverstrim <bsilverstrim@athensasd.org> wrote:
>>>
>>> On Jun 27, 2005, at 11:14 AM, Alistair Sutton wrote:
>>>
>>>>> I get mime_decode-1 FAILED errors in the amavis logs.
>>>>
>>>> I'm guessing that may have something to do with one of the perl mime
>>>> modules but I've no idea which one (helpful aren't I? ;-)
>>>
>>> Well, it helps to know that someone is guessing what I'm guessing :-)
>>
>> At least you don't have go mad on your own ;-)
>>
>>>> I know that portmanager should handle the upgrade without any issues
>>>> but I've not managed to have enough time to let my system work 
>>>> through
>>>> all the perl-dependent ports yet.
>>>>
>>>> You could use 'portupgrade -fR amavis' to rebuild all the ports that
>>>> amavis depends upon as well as amavis itself. That should work 
>>>> things
>>>> out in the right order and rebuild everything so that all 
>>>> dependecies
>>>> are sorted.
>>>
>>> I'll try that one...but I should probably run portupgrade -fR
>>> amavisd-new, no?
>>
>> Good point ;-)
>
> Tried, it failed part-way through.  It acted like Perl was switched 
> back to "system" and was the wrong version.  Re-ran the use.perl port, 
> and then had to manually re-run make deinstall && make reinstall on 
> half a dozen perl modules, then it acted like it was going to work but 
> then as soon as I brought the mail system up, it started spewing:
>
> TROUBLE in check_mail: mime_decode-1 FAILED: Error reading: Resource 
> temporarily unavailable at (eval 57) line 153, <GEN20> line 2.
>
> and
>
> TROUBLE in check_mail: virus_scan FAILED: virus_scan: ALL VIRUS 
> SCANNERS FAILED: Clam Antivirus-clamd av-scanner FAILED: Too many 
> retries to talk to /var/run/clamav/clamd (Error reading from 
> /var/run/clamav/clamd: Resource temporarily unavailable at (eval 53) 
> line 253, <GEN10> line 1.) at (eval 53) line 264, <GEN10> line 1.; 
> Clam Antivirus - clamscan av-scanner FAILED: Error reading: Resource 
> temporarily unavailable at (eval 53) line 389, <GEN11> line 1.
>
> I checked /var/run, and clamav had permissions of 777, and the clamd 
> file is there with full access available.
>
> maybe there's something with the error checks that was altered in 
> Amavis that I'm missing??  And this time around, the antivirus check 
> error is new...amavis, when starting, says:
<snip>

I found a line in the amavisd.conf file that I set to true
$bypass_decode_parts = 1;

Looks like a workaround to try getting mail to work, but shouldn't be 
set this way... :-/  Got rid of the one error though.

Still, I'm getting:
TROUBLE in check_mail: virus_scan FAILED: virus_scan: ALL VIRUS 
SCANNERS FAILED: Clam Antivirus-clamd av-scanner FAILED: Too many 
retries to talk to /var/run/clamav/clamd (Error reading from 
/var/run/clamav/clamd: Resource temporarily unavailable at (eval 53) 
line 253, <GEN16> line 1.) at (eval 53) line 264, <GEN16> line 1.; Clam 
Antivirus - clamscan av-scanner FAILED: Error reading: Resource 
temporarily unavailable at (eval 53) line 389, <GEN17> line 2.

which leads to a:
PRESERVING EVIDENCE in /var/amavis/amavis-20050627T120942-48739

Check the path of the error:
# pwd
/var/run/clamav
# ls -al
total 6
drwxrwxrwx  2 clamav  clamav  512 Jun 27 12:15 .
drwxr-xr-x  5 root    wheel   512 Jun 27 11:46 ..
srwxrwxrwx  1 vscan   clamav    0 Jun 27 12:15 clamd
-rw-rw----  1 vscan   clamav    5 Jun 27 12:15 clamd.pid
#

Amavis sees this at startup:
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48847]: starting.  
/usr/local/sbin/amavisd at myserver amavisd-new-2.3.1 (20050509), 
Unicode aware
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48847]: Perl version   
             5.008007
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: Module 
Amavis::Conf        2.038
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: Module 
Compress::Zlib      1.34
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: Module DB_File 
             1.811
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: Module 
MIME::Entity        5.417
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: Module 
MIME::Parser        5.417
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: Module 
MIME::Tools         5.417
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: Module 
Mail::Header        1.66
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: Module 
Mail::Internet      1.66
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: Module 
Mail::SpamAssassin  3.000004
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: Module 
Net::Cmd            2.26
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: Module 
Net::DNS            0.51
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: Module 
Net::SMTP           2.29
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: Module 
Net::Server         0.87
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: Module 
Time::HiRes         1.66
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: Module 
Unix::Syslog        0.100
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: Amavis::DB 
code    NOT loaded
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: Amavis::Cache 
code NOT loaded
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: SQL base code  
     NOT loaded
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: SQL::Log code  
     NOT loaded
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: 
SQL::Quarantine    NOT loaded
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: Lookup::SQL  
code  NOT loaded
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: Lookup::LDAP 
code  NOT loaded
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: AM.PDP prot  
code  loaded
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: SMTP-in prot 
code  loaded
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: ANTI-VIRUS 
code    loaded
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: ANTI-SPAM  
code    loaded
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: Unpackers  
code    NOT loaded
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: Found $file    
         at /usr/bin/file
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: No $dspam,     
         not using it
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: Internal 
decoder for .mail
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: Internal 
decoder for .asc
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: Internal 
decoder for .uue
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: Internal 
decoder for .hqx
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: Internal 
decoder for .ync
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: Found decoder 
for    .F    at /usr/local/bin/unfreeze
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: Found decoder 
for    .Z    at /usr/bin/uncompress
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: Internal 
decoder for .gz
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: Found decoder 
for    .bz2  at /usr/bin/bzip2 -d
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: Found decoder 
for    .lzo  at /usr/local/bin/lzop -d
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: No decoder for 
       .rpm
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: No decoder for 
       .cpio
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: Found decoder 
for    .cpio at /usr/bin/cpio
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: No decoder for 
       .tar
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: Found decoder 
for    .tar  at /usr/bin/cpio
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: No decoder for 
       .deb
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: Internal 
decoder for .zip
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: Found decoder 
for    .rar  at /usr/local/bin/unrar
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: Found decoder 
for    .arj  at /usr/local/bin/unarj
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: Found decoder 
for    .arc  at /usr/local/bin/arc
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: Found decoder 
for    .zoo  at /usr/local/bin/zoo
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: Found decoder 
for    .lha  at /usr/local/bin/lha
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: No decoder for 
       .doc
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: No decoder for 
       .cab
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: No decoder for 
       .tnef
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: Internal 
decoder for .tnef
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: Found decoder 
for    .exe  at /usr/local/bin/unrar; /usr/local/bin/lha; 
/usr/local/bin/unarj
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: Using internal 
av scanner code for (primary) Clam Antivirus-clamd
Jun 27 12:16:30 myserver /usr/local/sbin/amavisd[48848]: Found 
secondary av scanner Clam Antivirus - clamscan at 
/usr/local/bin/clamscan

So why wouldn't it read it properly??  I'm really at a loss here.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b8b7788a01dbcc73616deea8e177e060>