From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from <gentoo-server+bounces-2384-garchives=archives.gentoo.org@gentoo.org>) id 1GODka-0000b6-Ea for garchives@archives.gentoo.org; Fri, 15 Sep 2006 13:29:00 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k8FDSj6H027779; Fri, 15 Sep 2006 13:28:45 GMT Received: from pfepc.post.tele.dk (pfepc.post.tele.dk [195.41.46.237]) by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k8FDPPuQ004789 for <gentoo-server@lists.gentoo.org>; Fri, 15 Sep 2006 13:25:25 GMT Received: from dustyboots.home.coming.dk (unknown [83.88.175.88]) by pfepc.post.tele.dk (Postfix) with ESMTP id 0A10B8A003F for <gentoo-server@lists.gentoo.org>; Fri, 15 Sep 2006 15:25:24 +0200 (CEST) From: Sune Kloppenborg Jeppesen <jaervosz@gentoo.org> To: gentoo-server@lists.gentoo.org Subject: Re: [gentoo-server] Configuration issue of Spamassassin with Amavis-new and Posfix Date: Fri, 15 Sep 2006 15:25:23 +0200 User-Agent: KMail/1.9.1 References: <200609151008.32532.xavier.moghrabi@objectweb.org> In-Reply-To: <200609151008.32532.xavier.moghrabi@objectweb.org> Organization: Gentoo Linux Security Team X-GPG-Key: http://home.coming.dk/skj.pub.gpg Precedence: bulk List-Post: <mailto:gentoo-server@lists.gentoo.org> List-Help: <mailto:gentoo-server+help@gentoo.org> List-Unsubscribe: <mailto:gentoo-server+unsubscribe@gentoo.org> List-Subscribe: <mailto:gentoo-server+subscribe@gentoo.org> List-Id: Gentoo Linux mail <gentoo-server.gentoo.org> X-BeenThere: gentoo-server@gentoo.org Reply-to: gentoo-server@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3385148.Ltz0ABZygA"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200609151525.24252.jaervosz@gentoo.org> X-Archives-Salt: f8fd9554-307d-4753-91d3-2036a4fcc864 X-Archives-Hash: 8704bf529ea3787c0269e1138b698656 --nextPart3385148.Ltz0ABZygA Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi there, Didn't read through all of your mail but did you set $sa_tag_level_deflt to= a=20 reasonable level in amavisd.conf? On Friday 15 September 2006 10:08, Xavier MOGHRABI wrote: > Dear all, > > I'm working to configure a mail server using Postfix. By the way, I'd like > to use Spamassassin with Amavis to filter spam. > > To begin, I've followed the tutorial available at: > http://gentoo-wiki.com/HOWTO_Spam_Filtering_with_Gentoo,_Postfix,_Amavis > > I'm able to make Amavis works but it seems that it doesn't filter messages > since when a local user get a message, there are no Spam header : > Return-Path: <me@objectweb.org> > X-Original-To: test@terre.objectweb.org > Delivered-To: test@terre.objectweb.org > Received: from localhost (unknown [127.0.0.1]) > by terre.objectweb.org (Postfix) with ESMTP id 5B82499351 > for <test@terre.objectweb.org>; Thu, 14 Sep 2006 19:44:52 +0000 > (UTC) X-Virus-Scanned: amavisd-new at objectweb.org > Received: from terre.objectweb.org ([127.0.0.1]) > by localhost (terre.objectweb.org [127.0.0.1]) (amavisd-new, port > 10024) > with ESMTP id Jx6hu0Q-IlNs for <test@terre.objectweb.org>; > Thu, 14 Sep 2006 21:44:51 +0200 (CEST) > Received: from smtp3-g19.free.fr (smtp3-g19.free.fr [212.27.42.29]) > by terre.objectweb.org (Postfix) with ESMTP id 006F16BF7 > for <test@terre.objectweb.org>; Thu, 14 Sep 2006 21:44:50 +0200 > (CEST) Received: from [192.168.0.167] (mey38-2-82-236-98-179.fbx.proxad.n= et > [82.236.98.179]) > by smtp3-g19.free.fr (Postfix) with ESMTP id C12DF496B6 > for <test@terre.objectweb.org>; Thu, 14 Sep 2006 21:44:50 +0200 > (CEST) From: ME <me@objectweb.org> > Organization: ObjectWeb Consortium > To: test@terre.objectweb.org > Subject: Test message > Date: Thu, 14 Sep 2006 21:41:47 +0200 > User-Agent: KMail/1.9.4 > MIME-Version: 1.0 > Content-Type: text/plain; > charset=3D"us-ascii" > Content-Transfer-Encoding: 7bit > Content-Disposition: inline > Message-Id: <200609142141.47989.me@objectweb.org> > > This is a test > > We can see Amavis header, but no trace about spam filter. > > My configuration files are the following : > > /etc/postfix/main.cf : > ------------------------- > queue_directory =3D /var/spool/postfix > command_directory =3D /usr/sbin > daemon_directory =3D /usr/lib/postfix > mail_owner =3D postfix > mydestination =3D $myhostname, localhost.$mydomain > unknown_local_recipient_reject_code =3D 550 > mynetworks =3D $config_directory/mynetworks > debug_peer_level =3D 2 > debugger_command =3D > PATH=3D/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin > xxgdb $daemon_directory/$process_name $process_id & sleep 5 > sendmail_path =3D /usr/sbin/sendmail > newaliases_path =3D /usr/bin/newaliases > mailq_path =3D /usr/bin/mailq > setgid_group =3D postdrop > html_directory =3D /usr/share/doc/postfix-2.2.10/html > manpage_directory =3D /usr/share/man > sample_directory =3D /etc/postfix > readme_directory =3D /usr/share/doc/postfix-2.2.10/readme > home_mailbox =3D .maildir/ > content_filter =3D smtp-amavis:[127.0.0.1]:10024 > > /etc/postfix/master.cf : > --------------------------- > smtp inet n - n - - smtpd > smtp-amavis unix - - y - 2 smtp > -o smtp_data_done_timeout=3D1200 > -o disable_dns_lookups=3Dyes > 127.0.0.1:10025 inet n - y - - smtpd > -o content_filter=3D > -o local_recipient_maps=3D > -o relay_recipient_maps=3D > -o smtpd_restriction_classes=3D > -o smtpd_helo_restrictions=3D > -o smtpd_sender_restrictions=3D > -o smtpd_recipient_restrictions=3Dpermit_mynetworks,reject > -o mynetworks=3D127.0.0.0/8 > -o strict_rfc821_envelopes=3Dyes > pickup fifo n - n 60 1 pickup > cleanup unix n - n - 0 cleanup > qmgr fifo n - n 300 1 qmgr > tlsmgr unix - - n 1000? 1 tlsmgr > rewrite unix - - n - - trivial-rewrite > bounce unix - - n - 0 bounce > defer unix - - n - 0 bounce > trace unix - - n - 0 bounce > verify unix - - n - 1 verify > flush unix n - n 1000? 0 flush > proxymap unix - - n - - proxymap > smtp unix - - n - - smtp > relay unix - - n - - smtp > -o fallback_relay=3D > showq unix n - n - - showq > error unix - - n - - error > discard unix - - n - - discard > local unix - n n - - local > virtual unix - n n - - virtual > lmtp unix - - n - - lmtp > anvil unix - - n - 1 anvil > scache unix - - n - 1 scache > maildrop unix - n n - - pipe > flags=3DDRhu user=3Dvmail argv=3D/usr/local/bin/maildrop -d ${recipient} > old-cyrus unix - n n - - pipe > flags=3DR user=3Dcyrus argv=3D/usr/lib/cyrus/deliver -e -m ${extension}= ${user} > cyrus unix - n n - - pipe > flags=3Dhu user=3Dcyrus argv=3D/usr/lib/cyrus/deliver -e -r ${sender} -m > ${extension} ${user} > virt-cyrus unix - n n - - pipe > flags=3Dhu user=3Dcyrus argv=3D/usr/lib/cyrus/deliver -e -r ${sender} -m > ${recipient} ${user} > uucp unix - n n - - pipe > flags=3DFqhu user=3Duucp argv=3Duux -r -n -z -a$sender - $nexthop!rmail > ($recipient) > ifmail unix - n n - - pipe > flags=3DF user=3Dftn argv=3D/usr/lib/ifmail/ifmail -r $nexthop ($recipi= ent) > bsmtp unix - n n - - pipe > flags=3DFq. user=3Dfoo argv=3D/usr/local/sbin/bsmtp -f $sender $nexthop > $recipient > > /etc/amavisd.conf : > Is in attachment > > When I restart amavis, I have the following messages in the mail.info log > file: > Sep 14 22:25:28 terre amavis[6363]: Net::Server: 2006/09/14-22:25:28 Serv= er > closing! > Sep 14 22:25:28 terre amavis[11468]: user=3D, EUID: 0 (0); group=3D, EGI= D: 0 > 27 26 20 11 10 6 4 3 2 1 0 (0 27 26 20 11 10 6 4 3 2 1 0); log_level=3D2 = Sep > 14 22:25:28 terre amavis[11468]: INFO: no optional modules: > Mail::SpamAssassin::SQLBasedAddrList DBD::mysql Sys::Hostname::Long > Mail::SPF::Query Razor2::Client::Agent Net::CIDR::Lite > auto::Crypt::OpenSSL::RSA::load_public_key auto::Crypt::OpenSSL::RSA::_new > auto::Crypt::OpenSSL::RSA::DESTROY > Sep 14 22:25:28 terre amavis[11468]: SpamControl: init_pre_chroot done > Sep 14 22:25:28 terre amavis[11469]: Net::Server: Process Backgrounded > Sep 14 22:25:28 terre amavis[11469]: Net::Server: 2006/09/14-22:25:28 > Amavis (type Net::Server::PreForkSimple) starting! pid(11469) > Sep 14 22:25:28 terre amavis[11469]: Net::Server: Binding to UNIX socket > file /var/amavis/amavisd.sock using SOCK_STREAM > Sep 14 22:25:28 terre amavis[11469]: Net::Server: Binding to TCP port 100= 24 > on host 127.0.0.1 > Sep 14 22:25:28 terre amavis[11469]: Net::Server: Setting gid to "408 408" > Sep 14 22:25:28 terre amavis[11469]: Net::Server: Setting uid to "102" > Sep 14 22:25:28 terre amavis[11469]: Found decoder for .gz > at /bin/gzip -d (backup, not used) > Sep 14 22:25:28 terre amavis[11469]: Internal decoder for .tar (backup, > not used) > Sep 14 22:25:28 terre amavis[11469]: SpamControl: initializing > Mail::SpamAssassin > Sep 14 22:25:29 terre amavis[11469]: SpamControl: init_pre_fork done > Sep 14 22:25:29 terre amavis[11507]: TIMING [total 3 ms] - bdb-open: 3 > (100%) 100, rundown: 0 (0%)100 > Sep 14 22:25:29 terre amavis[11508]: TIMING [total 3 ms] - bdb-open: 3 > (100%) 100, rundown: 0 (0%)100 > > > Does someone have any idea ? > > Thanks in advance. > > -- > Xavier MOGHRABI > > PS: Please accept my apologies if you receive multiple copies of this > message since I've posted it yesterday on the gentoo-user mailing list. --nextPart3385148.Ltz0ABZygA Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQBFCqnEzKC5hMHO6rkRAir+AKCB4nK9AjHG2Mlv/d7hsWimOiD9iQCbBogk 2eP8mzM9i0dJzGYdJOR54Wk= =2etR -----END PGP SIGNATURE----- --nextPart3385148.Ltz0ABZygA-- -- gentoo-server@gentoo.org mailing list