On 10 Mar 2015 14:01, "J. Echter" <[email protected]> wrote: > > Hi, > > i don't get x-spam headers added to my mails. > > my setup is as the following: > > remote pop3 server -> fetchmail -> postfix -> amavis -> dovecot > > my setup looks like this: > > amavis.conf (relevant parts): > > @bypass_virus_checks_maps = ( > \%bypass_virus_checks, \@bypass_virus_checks_acl, \$bypass_virus_checks_re); > > > @bypass_spam_checks_maps = ( > \%bypass_spam_checks, \@bypass_spam_checks_acl, \$bypass_spam_checks_re); > > @local_domains_acl = ( "." ); > @sa_tag_level_deflt = undef; >
A quick Google http://www.google.de/search?hl=en&ie=UTF-8&q=sa_tag_level_deflt reveals you should set sa_tag_level_deflt to some ridiculously low level like -9999 Simon > postfix: > > main.cf: > > content_filter=smtp-amavis:[127.0.0.1]:10024 > > master.cf: > > smtp-amavis unix - - - - 2 smtp > -o smtp_data_done_timeout=1200 > -o smtp_send_xforward_command=yes > -o disable_dns_lookups=yes > -o max_use=20 > -o smtp_tls_security_level=none > > 127.0.0.1:10025 inet n - - - - smtpd > -o content_filter= > -o local_recipient_maps= > -o relay_recipient_maps= > -o smtpd_tls_security_level=none > -o smtpd_restriction_classes= > -o smtpd_delay_reject=no > -o smtpd_client_restrictions=permit_mynetworks,reject > -o smtpd_helo_restrictions= > -o smtpd_sender_restrictions= > -o smtpd_recipient_restrictions=permit_mynetworks,reject > -o smtpd_data_restrictions=reject_unauth_pipelining > -o smtpd_end_of_data_restrictions= > -o mynetworks=127.0.0.0/8 > -o smtpd_error_sleep_time=0 > -o smtpd_soft_error_limit=1001 > -o smtpd_hard_error_limit=1000 > -o smtpd_client_connection_count_limit=0 > -o smtpd_client_connection_rate_limit=0 > -o receive_override_options=no_header_body_checks,no_unknown_recipient_checks > > a log from an incoming mail: > > Mar 10 13:49:13 mule fetchmail[11566]: Nachricht [email protected]@mailserver.burg-gmbh.de:1 von 1 wird gelesen (1442 Bytes) gelöscht > Mar 10 13:49:13 mule postfix/qmgr[2579]: C01CD3C01BA: from=< [email protected]>, size=1774, nrcpt=1 (queue active) > Mar 10 13:49:13 mule amavis[4474]: (04474-01) ESMTP:[127.0.0.1]:10024 /var/spool/amavisd/tmp/amavis-20150310T134913-04474-eapR_TjR: < [email protected]> -> <[email protected]> SIZE=1774 BODY=7BIT Received: from cluster ([127.0.0.1]) by localhost (cluster.workgroup.local [127.0.0.1]) (amavisd-new, port 10024) with ESMTP for <[email protected]>; Tue, 10 Mar 2015 13:49:13 +0100 (CET) > Mar 10 13:49:13 mule postfix/smtpd[31440]: disconnect from unknown[127.0.0.1] > Mar 10 13:49:13 mule amavis[4474]: (04474-01) Checking: XzCJdevmYFfA MYNETS [127.0.0.1] <[email protected]> -> <[email protected]> > Mar 10 13:49:14 mule postfix/smtpd[11569]: connect from unknown[127.0.0.1] > Mar 10 13:49:14 mule postfix/smtpd[11569]: 2EB1E3C021D: client=unknown[127.0.0.1] > Mar 10 13:49:14 mule postfix/cleanup[31443]: 2EB1E3C021D: message-id=< [email protected]> > Mar 10 13:49:14 mule postfix/qmgr[2579]: 2EB1E3C021D: from=< [email protected]>, size=2230, nrcpt=2 (queue active) > Mar 10 13:49:14 mule amavis[4474]: (04474-01) XzCJdevmYFfA FWD from < [email protected]> -> <[email protected]>, BODY=7BIT 250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 2EB1E3C021D > Mar 10 13:49:14 mule amavis[4474]: (04474-01) Passed CLEAN {RelayedOutbound}, MYNETS LOCAL [127.0.0.1]:49430 [xx.xx.xx.xx] < [email protected]> -> <[email protected]>, Message-ID: < [email protected]>, mail_id: XzCJdevmYFfA, Hits: -1.379, size: 1774, queued_as: 2EB1E3C021D, 369 ms > Mar 10 13:49:14 mule postfix/smtp[31447]: C01CD3C01BA: to=< [email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.42, delays=0.05/0/0/0.37, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 2EB1E3C021D) > Mar 10 13:49:14 mule postfix/qmgr[2579]: C01CD3C01BA: removed > Mar 10 13:49:14 mule amavis[4474]: (04474-01) extra modules loaded: unicore/lib/gc_sc/Alnum.pl, unicore/lib/gc_sc/Alpha.pl, unicore/lib/gc_sc/Digit.pl, unicore/lib/gc_sc/SpacePer.pl > Mar 10 13:49:14 mule postfix/pipe[11570]: 2EB1E3C021D: to=< [email protected]>, relay=dovecot, delay=0.03, delays=0.01/0/0/0.02, dsn=2.0.0, status=sent (delivered via dovecot service) > Mar 10 13:49:14 mule postfix/pipe[31450]: 2EB1E3C021D: to=< [email protected]>, relay=dovecot, delay=0.03, delays=0.01/0/0/0.02, dsn=2.0.0, status=sent (delivered via dovecot service) > Mar 10 13:49:14 mule postfix/qmgr[2579]: 2EB1E3C021D: removed > > and the headers from this mail: > > Return-Path: <[email protected]> > Delivered-To: [email protected] > Received: from localhost (unknown [127.0.0.1]) > by cluster (Postfix) with ESMTP id 2EB1E3C021D > for <[email protected]>; Tue, 10 Mar 2015 12:49:14 +0000 (UTC) > X-Virus-Scanned: amavisd-new at workgroup.local > Received: from cluster ([127.0.0.1]) > by localhost (cluster.workgroup.local [127.0.0.1]) (amavisd-new, port 10024) > with ESMTP id XzCJdevmYFfA for <[email protected] >; > Tue, 10 Mar 2015 13:49:13 +0100 (CET) > Received: from mule (unknown [127.0.0.1]) > by cluster (Postfix) with ESMTP id C01CD3C01BA > for <[email protected]>; Tue, 10 Mar 2015 12:49:13 +0000 (UTC) > Received: from mailserver.burg-gmbh.de [176.9.65.175] > by mule with POP3 (fetchmail-6.3.17) > for <[email protected]> (single-drop); Tue, 10 Mar 2015 13:49:13 +0100 (CET) > Received: from b110.burg-gmbh.de (78.47.3.140) by b111 (Axigen) > with (RC4-SHA encrypted) ESMTPS id 22BF82; Tue, 10 Mar 2015 13:49:06 +0100 > Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) > (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) > (No client certificate requested) by b110.burg-gmbh.de (Postfix) > with ESMTPS id 416411A07D5 for <[email protected]>; > Tue, 10 Mar 2015 13:49:05 +0100 (CET) > Received: from [127.0.0.1] ([xx.xx.xx.xx]) by mail.gmx.com (mrgmx103) > with ESMTPSA (Nemesis) > id 0McluX-1YDvIe2b7B-00Hyv3 for <[email protected]>; > Tue, 10 Mar 2015 13:49:05 +0100 > Message-ID: <[email protected]> > Date: Tue, 10 Mar 2015 13:49:04 +0100 > From: "someuser" <[email protected]> > User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) > Gecko/20100101 Thunderbird/31.4.0 > MIME-Version: 1.0 > To: J. Echter <[email protected]> > Subject: gvclvzulvzuzu > Content-Type: text/plain; charset=utf-8; format=flowed > Content-Transfer-Encoding: 7bit > X-Provags-ID: V03:K0:Lskq8cLR9XXeao/w6nsmVes7enkj5EKMW1gP87SQWuiHOhhQUGg > dglw8hAMF5qfnOWVj6RmzFEbOG+14P/aHJm681I9cpAcPPBezXvRFJRLvcnm9ix77B808lt > AfrumxJzTL1VmySWj6HLp+9uckrHq58GsyW/fKHk5AWxDbG1fMgH6p5R5D7T4hpMgIEcM9E > BRscVFBGnNBESjEoggNYA== > X-UI-Out-Filterresults: notjunk:1; > X-Original-To: [email protected] > > > spamassassin isn't started as service, as amavis should call it. > > anything you guys can see what is wrong there? > > i'm stuck. > > thanks a lot > > J. Echter >
