1 |
Hi there, |
2 |
|
3 |
Didn't read through all of your mail but did you set $sa_tag_level_deflt to a |
4 |
reasonable level in amavisd.conf? |
5 |
|
6 |
On Friday 15 September 2006 10:08, Xavier MOGHRABI wrote: |
7 |
> Dear all, |
8 |
> |
9 |
> I'm working to configure a mail server using Postfix. By the way, I'd like |
10 |
> to use Spamassassin with Amavis to filter spam. |
11 |
> |
12 |
> To begin, I've followed the tutorial available at: |
13 |
> http://gentoo-wiki.com/HOWTO_Spam_Filtering_with_Gentoo,_Postfix,_Amavis |
14 |
> |
15 |
> I'm able to make Amavis works but it seems that it doesn't filter messages |
16 |
> since when a local user get a message, there are no Spam header : |
17 |
> Return-Path: <me@×××××××××.org> |
18 |
> X-Original-To: test@×××××××××××××××.org |
19 |
> Delivered-To: test@×××××××××××××××.org |
20 |
> Received: from localhost (unknown [127.0.0.1]) |
21 |
> by terre.objectweb.org (Postfix) with ESMTP id 5B82499351 |
22 |
> for <test@×××××××××××××××.org>; Thu, 14 Sep 2006 19:44:52 +0000 |
23 |
> (UTC) X-Virus-Scanned: amavisd-new at objectweb.org |
24 |
> Received: from terre.objectweb.org ([127.0.0.1]) |
25 |
> by localhost (terre.objectweb.org [127.0.0.1]) (amavisd-new, port |
26 |
> 10024) |
27 |
> with ESMTP id Jx6hu0Q-IlNs for <test@×××××××××××××××.org>; |
28 |
> Thu, 14 Sep 2006 21:44:51 +0200 (CEST) |
29 |
> Received: from smtp3-g19.free.fr (smtp3-g19.free.fr [212.27.42.29]) |
30 |
> by terre.objectweb.org (Postfix) with ESMTP id 006F16BF7 |
31 |
> for <test@×××××××××××××××.org>; Thu, 14 Sep 2006 21:44:50 +0200 |
32 |
> (CEST) Received: from [192.168.0.167] (mey38-2-82-236-98-179.fbx.proxad.net |
33 |
> [82.236.98.179]) |
34 |
> by smtp3-g19.free.fr (Postfix) with ESMTP id C12DF496B6 |
35 |
> for <test@×××××××××××××××.org>; Thu, 14 Sep 2006 21:44:50 +0200 |
36 |
> (CEST) From: ME <me@×××××××××.org> |
37 |
> Organization: ObjectWeb Consortium |
38 |
> To: test@×××××××××××××××.org |
39 |
> Subject: Test message |
40 |
> Date: Thu, 14 Sep 2006 21:41:47 +0200 |
41 |
> User-Agent: KMail/1.9.4 |
42 |
> MIME-Version: 1.0 |
43 |
> Content-Type: text/plain; |
44 |
> charset="us-ascii" |
45 |
> Content-Transfer-Encoding: 7bit |
46 |
> Content-Disposition: inline |
47 |
> Message-Id: <200609142141.47989.me@×××××××××.org> |
48 |
> |
49 |
> This is a test |
50 |
> |
51 |
> We can see Amavis header, but no trace about spam filter. |
52 |
> |
53 |
> My configuration files are the following : |
54 |
> |
55 |
> /etc/postfix/main.cf : |
56 |
> ------------------------- |
57 |
> queue_directory = /var/spool/postfix |
58 |
> command_directory = /usr/sbin |
59 |
> daemon_directory = /usr/lib/postfix |
60 |
> mail_owner = postfix |
61 |
> mydestination = $myhostname, localhost.$mydomain |
62 |
> unknown_local_recipient_reject_code = 550 |
63 |
> mynetworks = $config_directory/mynetworks |
64 |
> debug_peer_level = 2 |
65 |
> debugger_command = |
66 |
> PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin |
67 |
> xxgdb $daemon_directory/$process_name $process_id & sleep 5 |
68 |
> sendmail_path = /usr/sbin/sendmail |
69 |
> newaliases_path = /usr/bin/newaliases |
70 |
> mailq_path = /usr/bin/mailq |
71 |
> setgid_group = postdrop |
72 |
> html_directory = /usr/share/doc/postfix-2.2.10/html |
73 |
> manpage_directory = /usr/share/man |
74 |
> sample_directory = /etc/postfix |
75 |
> readme_directory = /usr/share/doc/postfix-2.2.10/readme |
76 |
> home_mailbox = .maildir/ |
77 |
> content_filter = smtp-amavis:[127.0.0.1]:10024 |
78 |
> |
79 |
> /etc/postfix/master.cf : |
80 |
> --------------------------- |
81 |
> smtp inet n - n - - smtpd |
82 |
> smtp-amavis unix - - y - 2 smtp |
83 |
> -o smtp_data_done_timeout=1200 |
84 |
> -o disable_dns_lookups=yes |
85 |
> 127.0.0.1:10025 inet n - y - - smtpd |
86 |
> -o content_filter= |
87 |
> -o local_recipient_maps= |
88 |
> -o relay_recipient_maps= |
89 |
> -o smtpd_restriction_classes= |
90 |
> -o smtpd_helo_restrictions= |
91 |
> -o smtpd_sender_restrictions= |
92 |
> -o smtpd_recipient_restrictions=permit_mynetworks,reject |
93 |
> -o mynetworks=127.0.0.0/8 |
94 |
> -o strict_rfc821_envelopes=yes |
95 |
> pickup fifo n - n 60 1 pickup |
96 |
> cleanup unix n - n - 0 cleanup |
97 |
> qmgr fifo n - n 300 1 qmgr |
98 |
> tlsmgr unix - - n 1000? 1 tlsmgr |
99 |
> rewrite unix - - n - - trivial-rewrite |
100 |
> bounce unix - - n - 0 bounce |
101 |
> defer unix - - n - 0 bounce |
102 |
> trace unix - - n - 0 bounce |
103 |
> verify unix - - n - 1 verify |
104 |
> flush unix n - n 1000? 0 flush |
105 |
> proxymap unix - - n - - proxymap |
106 |
> smtp unix - - n - - smtp |
107 |
> relay unix - - n - - smtp |
108 |
> -o fallback_relay= |
109 |
> showq unix n - n - - showq |
110 |
> error unix - - n - - error |
111 |
> discard unix - - n - - discard |
112 |
> local unix - n n - - local |
113 |
> virtual unix - n n - - virtual |
114 |
> lmtp unix - - n - - lmtp |
115 |
> anvil unix - - n - 1 anvil |
116 |
> scache unix - - n - 1 scache |
117 |
> maildrop unix - n n - - pipe |
118 |
> flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient} |
119 |
> old-cyrus unix - n n - - pipe |
120 |
> flags=R user=cyrus argv=/usr/lib/cyrus/deliver -e -m ${extension} ${user} |
121 |
> cyrus unix - n n - - pipe |
122 |
> flags=hu user=cyrus argv=/usr/lib/cyrus/deliver -e -r ${sender} -m |
123 |
> ${extension} ${user} |
124 |
> virt-cyrus unix - n n - - pipe |
125 |
> flags=hu user=cyrus argv=/usr/lib/cyrus/deliver -e -r ${sender} -m |
126 |
> ${recipient} ${user} |
127 |
> uucp unix - n n - - pipe |
128 |
> flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail |
129 |
> ($recipient) |
130 |
> ifmail unix - n n - - pipe |
131 |
> flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient) |
132 |
> bsmtp unix - n n - - pipe |
133 |
> flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop |
134 |
> $recipient |
135 |
> |
136 |
> /etc/amavisd.conf : |
137 |
> Is in attachment |
138 |
> |
139 |
> When I restart amavis, I have the following messages in the mail.info log |
140 |
> file: |
141 |
> Sep 14 22:25:28 terre amavis[6363]: Net::Server: 2006/09/14-22:25:28 Server |
142 |
> closing! |
143 |
> Sep 14 22:25:28 terre amavis[11468]: user=, EUID: 0 (0); group=, EGID: 0 |
144 |
> 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 |
145 |
> 14 22:25:28 terre amavis[11468]: INFO: no optional modules: |
146 |
> Mail::SpamAssassin::SQLBasedAddrList DBD::mysql Sys::Hostname::Long |
147 |
> Mail::SPF::Query Razor2::Client::Agent Net::CIDR::Lite |
148 |
> auto::Crypt::OpenSSL::RSA::load_public_key auto::Crypt::OpenSSL::RSA::_new |
149 |
> auto::Crypt::OpenSSL::RSA::DESTROY |
150 |
> Sep 14 22:25:28 terre amavis[11468]: SpamControl: init_pre_chroot done |
151 |
> Sep 14 22:25:28 terre amavis[11469]: Net::Server: Process Backgrounded |
152 |
> Sep 14 22:25:28 terre amavis[11469]: Net::Server: 2006/09/14-22:25:28 |
153 |
> Amavis (type Net::Server::PreForkSimple) starting! pid(11469) |
154 |
> Sep 14 22:25:28 terre amavis[11469]: Net::Server: Binding to UNIX socket |
155 |
> file /var/amavis/amavisd.sock using SOCK_STREAM |
156 |
> Sep 14 22:25:28 terre amavis[11469]: Net::Server: Binding to TCP port 10024 |
157 |
> on host 127.0.0.1 |
158 |
> Sep 14 22:25:28 terre amavis[11469]: Net::Server: Setting gid to "408 408" |
159 |
> Sep 14 22:25:28 terre amavis[11469]: Net::Server: Setting uid to "102" |
160 |
> Sep 14 22:25:28 terre amavis[11469]: Found decoder for .gz |
161 |
> at /bin/gzip -d (backup, not used) |
162 |
> Sep 14 22:25:28 terre amavis[11469]: Internal decoder for .tar (backup, |
163 |
> not used) |
164 |
> Sep 14 22:25:28 terre amavis[11469]: SpamControl: initializing |
165 |
> Mail::SpamAssassin |
166 |
> Sep 14 22:25:29 terre amavis[11469]: SpamControl: init_pre_fork done |
167 |
> Sep 14 22:25:29 terre amavis[11507]: TIMING [total 3 ms] - bdb-open: 3 |
168 |
> (100%) 100, rundown: 0 (0%)100 |
169 |
> Sep 14 22:25:29 terre amavis[11508]: TIMING [total 3 ms] - bdb-open: 3 |
170 |
> (100%) 100, rundown: 0 (0%)100 |
171 |
> |
172 |
> |
173 |
> Does someone have any idea ? |
174 |
> |
175 |
> Thanks in advance. |
176 |
> |
177 |
> -- |
178 |
> Xavier MOGHRABI |
179 |
> |
180 |
> PS: Please accept my apologies if you receive multiple copies of this |
181 |
> message since I've posted it yesterday on the gentoo-user mailing list. |