Re: [AMaViS-user] Amavis "fork" errors

This is a discussion on Re: [AMaViS-user] Amavis "fork" errors within the Amavis User forums, part of the Anti-Spam and Anti-Virus Related Forums category; Scott, > Amavisd version is : amavisd-new-2.3.0 Consider upgrading to 2.3.3. > About every 4-...


Go Back   Usenet Forums > Anti-Spam and Anti-Virus Related Forums > Amavis User

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-03-2005
Mark Martinec
 
Posts: n/a
Default Re: [AMaViS-user] Amavis "fork" errors

Scott,

> Amavisd version is : amavisd-new-2.3.0


Consider upgrading to 2.3.3.

> About every 4-5 days, email will stop sending/receiving, and I get the
> following error in my amavisd log file.


> Oct 1 16:14:41 ns1 /usr/local/sbin/amavisd[16241]: (16241-03) ESMTP>
> 451 4.5.0 Error in processing, id=16241-03, mime_decode-1 FAILED:
> run_command (open pipe):
> Can't fork at /usr/lib/perl5/5.8.3/i586-linux-thread-multi/IO/File.pm
> line 176. at /usr/local/sbin/amavisd line 1783.


Like Gary said, check for resource depletion, like swap space full.
On some OS a tmpfs maps into swap.

> After rebooting, amavisd will fail (kicked off via rc.local) with the
> following error:


> Oct 1 16:28:34 ns1 /usr/local/sbin/amavisd[1015]: SpamControl:
> initializing Mail::SpamAssassin
> Oct 1 16:28:34 ns1 /usr/local/sbin/amavisd[1015]:
> TROUBLE in pre_loop_hook: Error creating a DNS resolver socket:
> Network is unreachable
> at /usr/lib/perl5/site_perl/5.8.3/Mail/SpamAssassin/DnsResolver.pm line 202.


The code there does:
$sock = IO::Socket::INET->new(%args);
$errno = $!;
die "Error creating a DNS resolver socket: $errno";

It appears the IO::Socket::INET->new fails to connect
to resolver socket because "Network is unreachable"
(assuming you are not using IPv6 network addresses
to access local resolver)

If you are using remote resolver in /etc/resolve.conf,
consider having a locally running 'named' as a caching-only DNS server.

> After this, if I manually run /usr/local/sbin/amavisd it will start
> successfully.


Seems like the network is not fully up by the time amavisd
is being started. Perhaps you need to reorder startup sequence.

> The second part only started after I did the most recent update of
> SpamAssassin (SA version 3.1.0)


SA 3.1 does DNS resolver setup differently in order to be able
to work around Net::DNS problems that were affecting SA 3.0.x.

Mark


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/...fo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:11 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0