Problem with amavis and plus addressing

Discussion in 'Server Operation' started by fl0pp, Jul 12, 2011.

  1. fl0pp

    fl0pp New Member

    I have set up a Ubuntu, Postfix, Amavis, Courier, Maildrop mail-server.

    My previous mailserver was working perfectly, but this won't rewrite spam to "[email protected]" to "[email protected]"
    When I send mail to "[email protected]" it drops down in my Spam folder, so maildrop+postfix is working correctly. The problem is that amavis is not rewriting the recipient.

    Jul 12 15:05:00 homer postfix/qmgr[17455]: 53F2BE3021D: from=<[email protected]>, size=1685, nrcpt=1 (queue active)
    Jul 12 15:05:00 homer amavis[18644]: (18644-01) Passed SPAMMY, [***.***.***.***] [***.***.***.***] <[email protected]> -> <[email protected]>, Message-ID: <CAGbEOgJHi65orv8gc81Ln6DJBTVVjP-9TZwCNRkCdM=sF0QYt
    [email protected]>, mail_id: FZxGUKzOj9Pa, Hits: 1002.577, size: 1282, queued_as: 53F2BE3021D, 27328 ms
    Jul 12 15:05:00 homer postfix/smtp[18648]: BDC62E3021C: to=<[email protected]>, relay=[]:10024, delay=28, delays=0.39/0/0/27, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=18644-01, from MTA([127.0.0
    .1]:10025): 250 2.0.0 Ok: queued as 53F2BE3021D)
    Jul 12 15:05:00 homer postfix/qmgr[17455]: BDC62E3021C: removed
    Jul 12 15:05:00 homer postfix/pipe[18654]: 53F2BE3021D: to=<[email protected]>, relay=maildrop, delay=0.19, delays=0.02/0/0/0.17, dsn=2.0.0, status=sent (delivered via maildrop service)
    Jul 12 15:05:00 homer postfix/qmgr[17455]: 53F2BE3021D: removed
    I have added the following to my /etc/amavis/conf.d/20-debian_defaults:
    $recipient_delimiter = '+';
    @addr_extension_virus_maps = ('virus');
    @addr_extension_spam_maps = ('spam');
    @addr_extension_banned_maps = ('banned');
    @addr_extension_bad_header_maps = ('badh');
    $addr_extension_spam   = 'spam';
    #$sa_spam_subject_tag = '***SPAM*** ';
    $sa_tag_level_deflt  = 2.0;  # add spam info headers if at, or above that level
    $sa_tag2_level_deflt = 5.31; # add 'spam detected' headers at that level
    $sa_kill_level_deflt = 2024; # triggers spam evasive actions
    $sa_dsn_cutoff_level = 2024;   # spam level beyond which a DSN is not sent
    $final_spam_destiny = D_PASS;
    $final_virus_destiny = D_DISCARD;
    Any idea?
  2. fl0pp

    fl0pp New Member

    Forget about it. My fault.
    I forgot to put my new test-domain in the @local_domains_acl list (/etc/amavis/conf.d/05-domain_id).

Share This Page