Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

i'm using a mailserver setup with postfix, amavis and spamassassin.

Some parts of my current configuration (Ubuntu 12.04.2):

/etc/amavis/conf.d/20-debian_defaults

$sa_spam_subject_tag = '***SPAM*** ';
$sa_tag_level_deflt  = 2.0;
$sa_tag2_level_deflt = 6.31;
$sa_kill_level_deflt = 6.31;
$sa_dsn_cutoff_level = 10;
$final_spam_destiny  = D_PASS;

/etc/amavis/conf.d/15-content_filter_mode

use strict;
@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_re);
1;

All incoming spam is dropped by postfix and isn't delivered with the "***SPAM***" subject tag:

/var/log/mail.log

Jun 19 07:20:07 host amavis[27625]: (27625-04) Blocked SPAM, [209.85.214.175] [209.85.214.175] <source@sourcedomain.com> -> <target@targetdomain.com>, quarantine: l/spam-l+tLTgmVhQi7.gz, Message-ID: <CAPQPMVfXTAWzdV8mpSSfxBnZTRgL5TjEZZnRTz_h1Y65nuzWzQ@mail.sourcedomain.com>, mail_id: l+tLTgmVhQi7, Hits: 999.902, size: 2226, dkim_id=@sourcedomain.com, 1406 ms
Jun 19 07:20:07 host postfix/smtp[28237]: E650348C126B: to=<target@targetdomain.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=1.9, delays=0.46/0/0/1.4, dsn=2.7.0, status=sent (250 2.7.0 Ok, discarded, id=27625-04 - SPAM)
Jun 19 07:20:07 host postfix/qmgr[28163]: E650348C126B: removed

This behavior should be not the case (spam should be delivered with the spam tag). I dont know whats wrong here...

Any help would be very appreciated!

share|improve this question

1 Answer 1

The OP indicated this solved the issue:

Because I'm using a Ubuntu system, the D_PASS settings must be configured in /etc/amavis/conf.d/21-ubuntu_defaults instead of the Debian file. Also the "@local_domains_maps" setting was not set in the /etc/amavis/conf.d/05-domain_id file.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.