Date: Fri, 15 May 2009 14:58:35 +0200 From: Thomas Hummel <hummel@pasteur.fr> To: ports@freebsd.org Cc: gabor@FreeBSD.org Subject: Re: Amavis::SpamControl->new not found Message-ID: <20090515125835.GC39318@parmesan.sis.pasteur.fr> In-Reply-To: <20090512115334.GD26360@parmesan.sis.pasteur.fr> References: <20090512115334.GD26360@parmesan.sis.pasteur.fr>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <hummel@pasteur.fr> | Pôle informatique - systèmes et réseau
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090515125835.GC39318>