Mark Martinec wrote: > Ricardo, > > >> Finally I got the time to upgrade to the latest amavisd. But I'm still >> been haunted by this ghost... I had posted about it in the past but >> never got anywhere for one reason or another. I recently upgraded to >> 2.4.2 from 2.2.1. Basically, I occasionally receive emails that has way >> too many recipients (ie above 100 in the TO: line) but only one of them >> is for our domain. >> > > Addresses in a mail header do not matter, only envelope data matters > to MTA and to amavisd (unlike for SA, but that stage comes later). > > >> Somehow it locks up amavisd in such a way that no >> other mail gets processed (all other child instances stay inactive until >> it times out), so the queue grows in the mean time. >> >> I'm able to replicate the problem consistently if I put the files back >> in the queue. I'm attaching logs from running amavisd with the debug >> switch to see if anyone can shine some light here. Dunno if it's a >> sendmail config or an amavis issue to be honest. BTW, sendmail-rx is >> run with -qp so I know that it will insist, but dunno why this would >> fail... BTW, this happens on both Solaris 8 and RHEL3 AS >> > ... > >> Sep 7 17:11:24 xxx.xxx.xxx ./amavisd[14522]: (14522-01) ESMTP< MAIL >> From:<[EMAIL PROTECTED]> SIZE=16184\r\n >> > ... > >> Sep 7 17:11:24 xxx.xxx.xxx ./amavisd[14522]: (14522-01) ESMTP< RCPT >> To:<[EMAIL PROTECTED]>\r\n >> > ... > >> Sep 7 17:11:24 xxx.xxx.xxx ./amavisd[14522]: (14522-01) ESMTP< DATA\r\n >> Sep 7 17:11:24 xxx.xxx.xxx ./amavisd[14522]: (14522-01) >> switch_to_my_time 300 s, SMTP DATA received >> Sep 7 17:11:24 xxx.xxx.xxx ./amavisd[14522]: (14522-01) ESMTP::10024 >> /var/amavis/tmp/amavis-20060907T171124-14522: <[EMAIL PROTECTED]> -> >> <[EMAIL PROTECTED]> SIZE=16184 Received: from xxx.xxx.xxx ([127.0.0.1]) >> by localhost (xxx.xxx.xxx [127.0.0.1]) (amavisd-new, port 10024) with >> ESMTP for <[EMAIL PROTECTED]>; Thu, 7 Sep 2006 17:11:24 -0400 (EDT) >> Sep 7 17:11:24 xxx.xxx.xxx ./amavisd[14522]: (14522-01) ESMTP> 354 End >> data with <CR><LF>.<CR><LF> >> Sep 7 17:11:24 xxx.xxx.xxx ./amavisd[14522]: (14522-01) >> switch_to_client_time 120 s, smtp response sent >> Sep 7 17:11:24 xxx.xxx.xxx ./amavisd[14522]: (14522-01) >> switch_to_client_time 120 s, receiving data >> > > There is only one recipient in this mail. > > >> Sep 7 17:13:24 xxx.xxx.xxx ./amavisd[14522]: (14522-01) ESMTP ABORTING: >> timed out during waiting for input from client >> > > Seems like nothing is happening on the line. > > The ultimate truth is in a captured tcpdump on the loopback interface. > Don't forget the -s 0 option (or -s 1500) to tcpdump, e.g.: > tcpdump -i lo0 -s 0 -w file.dump 'tcp port 10024' > > Mark > Could not capture anything on the Sun box - so I had to make some time and room on the linux box to capture. Basically, I see the amavis response about sender and recipient ok and to 'End data with...' but then no data is being sent from sendmail after this... It's like sendmail is waiting on something and can't figure out what. So eventually amavisd times out. What's interesting also is that when this is happening, no other message is handled during the time, essentially locking the queue. I use the hoststat feature as I've seen with bounces in persisitent mode would otherwise get stuck. I do clear the status for 127.0.0.1 every minute, as otherwise once amavisd timesout, I get a 'broken pipe' status and mail would accumulate for 30 minutes...
I have a tcpdump if someone wants to look at it. Same goes for sample mail causing the problem and of course configuration files if needed... -- °(((=((===°°°(((=========================================== ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ 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/
