From owner-freebsd-ports@FreeBSD.ORG Fri May 15 12:58:40 2009 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B3DE7106566B; Fri, 15 May 2009 12:58:40 +0000 (UTC) (envelope-from hummel@parmesan.sis.pasteur.fr) Received: from munster3.sis.pasteur.fr (munster3.sis.pasteur.fr [157.99.64.214]) by mx1.freebsd.org (Postfix) with ESMTP id 750278FC13; Fri, 15 May 2009 12:58:39 +0000 (UTC) (envelope-from hummel@parmesan.sis.pasteur.fr) Received: from localhost (localhost [127.0.0.1]) by munster3.sis.pasteur.fr (Postfix) with ESMTP id DDADD119C59; Fri, 15 May 2009 14:58:38 +0200 (CEST) X-Virus-Scanned: amavisd-new at pasteur.fr Received: from parmesan.sis.pasteur.fr (parmesan.sis.pasteur.fr [157.99.64.42]) by munster3.sis.pasteur.fr (Postfix) with ESMTP id B803A119C57; Fri, 15 May 2009 14:58:38 +0200 (CEST) Received: by parmesan.sis.pasteur.fr (Postfix, from userid 1931) id B5BDE1704D; Fri, 15 May 2009 14:58:35 +0200 (CEST) Date: Fri, 15 May 2009 14:58:35 +0200 From: Thomas Hummel To: ports@freebsd.org Message-ID: <20090515125835.GC39318@parmesan.sis.pasteur.fr> References: <20090512115334.GD26360@parmesan.sis.pasteur.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20090512115334.GD26360@parmesan.sis.pasteur.fr> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: gabor@FreeBSD.org Subject: Re: Amavis::SpamControl->new not found X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 May 2009 12:58:41 -0000 On Tue, May 12, 2009 at 01:53:35PM +0200, Thomas Hummel wrote: > # /usr/local/etc/rc.d/amavisd start > Starting amavisd. > Can't locate object method "new" via package "Amavis::SpamControl" at /usr/local/sbin/amavisd line 13878. > > On this particular server, I don't want spam check at all, so /usr/local/etc/amavisd.conf states : > > @bypass_spam_checks_maps = (1); # controls running of anti-spam code > > which doesn't seem to be overriden anwhere else. > > Line 13878 of /usr/local/sbin/amavisd states : > > $spamcontrol_obj = Amavis::SpamControl->new if $extra_code_antispam; > > Considering I don't need spam check at all, I tried commenting this line and > amavisd-new started and seemed to work. Today, I tried something different : . comment @bypass_spam_checks_maps = (1); in amavisd.conf, thus getting the default as stated in amavid, which is @bypass_spam_checks_maps = ( \%bypass_spam_checks, \@bypass_spam_checks_acl, \$bypass_spam_checks_re); . assume that spam checks won't be launched even if I commented @bypass_spam_checks_maps since my amavisd.conf states $sa_mail_body_size_limit = 1; # don't waste time on SA if mail is larger # default: undef, no limitations Although amavisd launch succeeded then, as a side effet I got many messages returned with Subject: Considered UNSOLICITED BULK EMAIL, apparently from you >From: "Content-filter at [...] So I reverted to the solution described in my previous message. Conclusion : ------------ it seems to me that : . amavisd miss somewhere the "import" of the Amavis::SpamControl package (I don't see such import anywhere) . @bypass_spam_checks_maps = (1); doesn't bypass everything since $spamcontrol_obj = Amavis::SpamControl->new if $extra_code_antispam; is still executed. . $sa_mail_body_size_limit = 1; isn't enough to fully bypass spam engine since some messages where marked UBE. Thanks -- Thomas Hummel | Institut Pasteur | Pôle informatique - systèmes et réseau