From owner-freebsd-questions@FreeBSD.ORG Fri Sep 11 13:14:18 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A1CC4106566B for ; Fri, 11 Sep 2009 13:14:18 +0000 (UTC) (envelope-from andrei693@gmail.com) Received: from mail-bw0-f206.google.com (mail-bw0-f206.google.com [209.85.218.206]) by mx1.freebsd.org (Postfix) with ESMTP id 247908FC0A for ; Fri, 11 Sep 2009 13:14:17 +0000 (UTC) Received: by bwz2 with SMTP id 2so724210bwz.43 for ; Fri, 11 Sep 2009 06:14:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=HRxriqL7Bxj4MdcjY/YoZ7DqSOBKPR8K5HLunS6ESxw=; b=R+SocjDCj13mGTKH39ndyvF0FsKUf3zsUWjqrWPp5yUe1WAAB4KuCQO4UoOHgfxpt5 vLoPkMW6kRTV4ejrD4hQGn3L1j+iHnThuSqJJEByYX7Ec3h3cJ7mwiLzYit3xdUa6Muj 4wHTu6FQ0Vyvr+GLu/4AZmvNz2lcCrRB6lxZs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=Uvz62btfFOPS1zwSkwsXLLVyitnJ64QDQ0fATXGjD8182zfpWGr5suL9imXCTqeiZH o7EJI1WRiKdSRtpKpJTel17M5W0nTey08/yXNVafKUIBHvX61lzsDCv1nuBAA0UKb/BE jhg1VdVV0XYUuKCWuNI81NmOdhvlJVNvs6VcE= Received: by 10.204.15.151 with SMTP id k23mr2029883bka.41.1252674856838; Fri, 11 Sep 2009 06:14:16 -0700 (PDT) Received: from ?192.168.1.253? ([81.196.94.69]) by mx.google.com with ESMTPS id 35sm4384566fkt.16.2009.09.11.06.14.16 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 11 Sep 2009 06:14:16 -0700 (PDT) Message-ID: <4AAA4D2D.6060400@gmail.com> Date: Fri, 11 Sep 2009 16:14:21 +0300 From: Andrei Brezan User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4AAA34CE.9060104@gmail.com> In-Reply-To: <4AAA34CE.9060104@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [SOLVED] amavisd-new "status=deferred (lost connection with 127.0.0.1[127.0.0.1] while sending end of data -- message may be sent more than once)" in maillog issue X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Sep 2009 13:14:18 -0000 Andrei Brezan wrote: > Hello list, > > I have a strange behaviour from my postfix config using amavisd-new with > clamav. I have 4 messages in queue all deffered with the same problem: > lost connection with 127.0.0.1. > > This is what i get from amavisd with log_level=5 in debug.log: > > *snip* > Sep 11 14:15:47 mail amavis[46602]: (46602-01) run_command: [47011] > /usr/local/bin/file p001 p002 p003 &1 > Sep 11 14:15:47 mail amavis[47011]: (46602-01) open_on_specific_fd: > target fd0 closing, to become < /dev/null > Sep 11 14:15:47 mail amavis[47011]: (46602-01) open_on_specific_fd: > target fd1 closing, to become > &=15 > Sep 11 14:15:47 mail amavis[47011]: (46602-01) open_on_specific_fd: > target fd1 dup2 from fd15 > &=15 > Sep 11 14:15:47 mail amavis[47011]: (46602-01) open_on_specific_fd: > source fd15 closed > Sep 11 14:15:47 mail amavis[47011]: (46602-01) open_on_specific_fd: > target fd2 closing, to become > &1 > Sep 11 14:15:47 mail amavis[47011]: (46602-01) open_on_specific_fd: > target fd2 dup2 from fd1 > &1 > Sep 11 14:15:47 mail amavis[46602]: (46602-01) result line from file(1): > p001: ASCII news text\n > Sep 11 14:15:47 mail amavis[46602]: (46602-01) lookup_re("ASCII news > text") matches key "(?i-xsm:^(ASCII|text)\b)", result="asc" > Sep 11 14:15:47 mail amavis[46602]: (46602-01) lookup > [map_full_type_to_short_type] => true, "ASCII news text" matches, > result="asc", matching_key="(?i-xsm:^(ASCII|text)\\b)" > Sep 11 14:15:47 mail amavis[46602]: (46602-01) File-type of p001: ASCII > news text; (asc) > Sep 11 14:15:47 mail amavis[46602]: (46602-01) result line from file(1): > p002: Microsoft Office Document Microsoft Word Document\n > Sep 11 14:15:47 mail amavis[46602]: (46602-01) lookup_re("Microsoft > Office Document Microsoft Word Document") matches key > "(?i-xsm:^Microsoft Office Document\b)", result="doc" > Sep 11 14:15:47 mail amavis[46602]: (46602-01) lookup > [map_full_type_to_short_type] => true, "Microsoft Office Document > Microsoft Word Document" matches, result="doc", > matching_key="(?i-xsm:^Microsoft Office Document\\b)" > Sep 11 14:15:47 mail amavis[46602]: (46602-01) File-type of p002: > Microsoft Office Document Microsoft Word Document; (doc) > Sep 11 14:15:47 mail amavis[46602]: (46602-01) result line from file(1): > p003: Microsoft Office Document Microsoft Word Document\n > Sep 11 14:15:47 mail amavis[46602]: (46602-01) lookup_re("Microsoft > Office Document Microsoft Word Document") matches key > "(?i-xsm:^Microsoft Office Document\b)", result="doc" > Sep 11 14:15:47 mail amavis[46602]: (46602-01) lookup > [map_full_type_to_short_type] => true, "Microsoft Office Document > Microsoft Word Document" matches, result="doc", > matching_key="(?i-xsm:^Microsoft Office Document\\b)" > Sep 11 14:15:47 mail amavis[46602]: (46602-01) File-type of p003: > Microsoft Office Document Microsoft Word Document; (doc) > Sep 11 14:15:47 mail amavis[46602]: (46602-01) do_ascii: Decoding part p001 > Sep 11 14:15:47 mail amavis[46602]: (46602-01) do_ascii: Setting > sigaction handler, was 0 > Sep 11 14:15:47 mail amavis[46602]: (46602-01) timer set to 320 s (was > 480 s) > Sep 11 14:15:47 mail amavis[46593]: Net::Server: Starting "1" children > Sep 11 14:15:47 mail amavis[47012]: Net::Server: Child Preforked (47012) > Sep 11 14:15:47 mail amavis[47012]: entered child_init_hook > Sep 11 14:15:47 mail amavis[47012]: SpamControl: init_child on > SpamAssassin done > > And at ~ the same time i get: > pid 46602 (perl), uid 106: exited on signal 11. > > Don't know what to do with those 4 messages and why they are stuck in > queue. I've tried sendig other messages and they get delivered ok. > > If someone can elighten me pls do so. > > Thank you. > After googling around a bit more i found out that is something related to uulib code. All i had to do is comment out the entries with do_ascii in amavisd.conf. Here's the post where i found this: http://www.mail-archive.com/amavis-user@lists.sourceforge.net/msg14374.html P.S. Sorry about the noise and too long subj :)