Hi there,

Didn't read through all of your mail but did you set $sa_tag_level_deflt to a 
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: <[EMAIL PROTECTED]>
> X-Original-To: [EMAIL PROTECTED]
> Delivered-To: [EMAIL PROTECTED]
> Received: from localhost (unknown [127.0.0.1])
>         by terre.objectweb.org (Postfix) with ESMTP id 5B82499351
>         for <[EMAIL PROTECTED]>; 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 <[EMAIL PROTECTED]>;
>         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 <[EMAIL PROTECTED]>; Thu, 14 Sep 2006 21:44:50 +0200
> (CEST) Received: from [192.168.0.167] (mey38-2-82-236-98-179.fbx.proxad.net
> [82.236.98.179])
>         by smtp3-g19.free.fr (Postfix) with ESMTP id C12DF496B6
>         for <[EMAIL PROTECTED]>; Thu, 14 Sep 2006 21:44:50 +0200
> (CEST) From: ME <[EMAIL PROTECTED]>
> Organization: ObjectWeb Consortium
> To: [EMAIL PROTECTED]
> 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="us-ascii"
> Content-Transfer-Encoding: 7bit
> Content-Disposition: inline
> Message-Id: <[EMAIL PROTECTED]>
>
> 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 = /var/spool/postfix
> command_directory = /usr/sbin
> daemon_directory = /usr/lib/postfix
> mail_owner = postfix
> mydestination = $myhostname, localhost.$mydomain
> unknown_local_recipient_reject_code = 550
> mynetworks = $config_directory/mynetworks
> debug_peer_level = 2
> debugger_command =
>          PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
>          xxgdb $daemon_directory/$process_name $process_id & sleep 5
> sendmail_path = /usr/sbin/sendmail
> newaliases_path = /usr/bin/newaliases
> mailq_path = /usr/bin/mailq
> setgid_group = postdrop
> html_directory = /usr/share/doc/postfix-2.2.10/html
> manpage_directory = /usr/share/man
> sample_directory = /etc/postfix
> readme_directory = /usr/share/doc/postfix-2.2.10/readme
> home_mailbox = .maildir/
> content_filter = 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=1200
>    -o disable_dns_lookups=yes
> 127.0.0.1:10025 inet    n       -       y       -       -       smtpd
>    -o content_filter=
>    -o local_recipient_maps=
>    -o relay_recipient_maps=
>    -o smtpd_restriction_classes=
>    -o smtpd_helo_restrictions=
>    -o smtpd_sender_restrictions=
>    -o smtpd_recipient_restrictions=permit_mynetworks,reject
>    -o mynetworks=127.0.0.0/8
>    -o strict_rfc821_envelopes=yes
> 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=
> 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=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
> old-cyrus unix  -       n       n       -       -       pipe
>   flags=R user=cyrus argv=/usr/lib/cyrus/deliver -e -m ${extension} ${user}
> cyrus     unix  -       n       n       -       -       pipe
>   flags=hu user=cyrus argv=/usr/lib/cyrus/deliver -e -r ${sender} -m
> ${extension} ${user}
> virt-cyrus     unix  -       n       n       -       -       pipe
>   flags=hu user=cyrus argv=/usr/lib/cyrus/deliver -e -r ${sender} -m
> ${recipient} ${user}
> uucp      unix  -       n       n       -       -       pipe
>   flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail
> ($recipient)
> ifmail    unix  -       n       n       -       -       pipe
>   flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
> bsmtp     unix  -       n       n       -       -       pipe
>   flags=Fq. user=foo argv=/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 Server
> closing!
> Sep 14 22:25:28 terre amavis[11468]: user=, EUID: 0 (0);  group=, EGID: 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=2 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 10024
> 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.

Attachment: pgpKFjp5oVjww.pgp
Description: PGP signature

Reply via email to