Shane,

> I've been using amavisd-new for quite some time and loving it.  Today, I
> noticed that I wasn't receiving any e-mail.  The outage started around noon
> my time.  After some panicking, I think I've isolated it to amavisd-new and
> I think it has something to do with net::server.  When I start amavisd-new,
> it starts up and looks good.  And it binds to port 10024.  However, it
> doesn't stay bound very long.  Here's what I see in the logs:

> Jan  8 16:41:02 server amavis[5478]: Net::Server: Accept failed
>   with 23 tries left: Invalid argument 

> You'll notice that my Net::Server log lines are a little different,
> that's because I patched Server.pm based on this suggestion from
> the list archives:
> http://marc.theaimsgroup.com/?l=amavis-user&m=115443707223211&w=2

Ok.

> mail-filter/amavisd-new 2.4.1
> dev-perl/net-server 0.94
> Linux server 2.6.18-gentoo-r6 #1 SMP

> I'm trying to think of what might have changed around the time that
> everything broke.  Here is one possible culprit?  mysql?  But, it's still
> the same version that was emerged, just -r2 instead.
> This is the list of packages that I've emerged today:
>      Mon Jan  8 11:18:26 2007 >>> sys-apps/mysql-1.1
>      Mon Jan  8 11:52:23 2007 >>> dev-db/mysql-5.0.26-r2
>      Mon Jan  8 11:56:43 2007 >>> net-misc/openssh-4.5_p1
>      Mon Jan  8 15:21:49 2007 >>> mail-filter/amavisd-new-2.4.1
>      Mon Jan  8 15:24:57 2007 >>> mail-filter/amavisd-new-2.4.1
>      Mon Jan  8 15:34:22 2007 >>> dev-perl/net-server-0.94
>      Mon Jan  8 15:42:09 2007 >>> mail-mta/postfix-2.2.10
>      Mon Jan  8 15:43:27 2007 >>> mail-filter/spamassassin-3.1.7
>      Mon Jan  8 15:52:38 2007 >>> dev-perl/net-server-0.94
>      Mon Jan  8 16:05:49 2007 >>> sys-apps/mysql-1.1

> When amavisd starts up, I see this in netstat:
> tcp        0      0 127.0.0.1:10024         0.0.0.0:* LISTEN     
> 9077/amavisd (maste

> But it doesn't last long.

Because Net::Server gives up trying to $sock->accept()

> What's odd is that after it dies, I still see this:
> tcp        0      0 10.10.10.11:57089     10.10.10.10:636 ESTABLISHED
> 9077/amavisd (maste
> I do have an LDAP server on that IP (10.10.10.10) but I don't understand
> why amavis would care.  I've compiled it without LDAP support.

PAM?  (basic user/account authentication infrastructure ...)

> Does anyone have any ideas?  Are there some better troubleshooting steps
> I could take?  I've got debugging cranked up to 5 in my /etc/amavisd.conf
> file.  But, otherwise, I haven't touched it for quite some time.

Insert some test printouts into Net/Server.pm before the line
which you already patched. Try to determine why $sock->accept() fails.
strace might help.

Do you have multiple ports specified in $inet_socket_port ?
Do you also have unix socket enabled in $unix_socketname ?

  Mark

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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