Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 12th July 2011, 15:16
fl0pp fl0pp is offline
Junior Member
 
Join Date: Jul 2011
Posts: 3
Thanks: 0
Thanked 1 Time in 1 Post
Default Problem with amavis and plus addressing

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 "user@example.com" to "user+spam@example.com"
When I send mail to "user+spam@example.com" it drops down in my Spam folder, so maildrop+postfix is working correctly. The problem is that amavis is not rewriting the recipient.

Code:
Jul 12 15:05:00 homer postfix/qmgr[17455]: 53F2BE3021D: from=<email@email.com>, size=1685, nrcpt=1 (queue active)
Jul 12 15:05:00 homer amavis[18644]: (18644-01) Passed SPAMMY, [***.***.***.***] [***.***.***.***] <email@email.com> -> <user@example.com>, Message-ID: <CAGbEOgJHi65orv8gc81Ln6DJBTVVjP-9TZwCNRkCdM=sF0QYt
Q@mail.gmail.com>, mail_id: FZxGUKzOj9Pa, Hits: 1002.577, size: 1282, queued_as: 53F2BE3021D, 27328 ms
Jul 12 15:05:00 homer postfix/smtp[18648]: BDC62E3021C: to=<user@example.com>, relay=127.0.0.1[127.0.0.1]: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=<user@example.com>, 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:
Code:
$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?
Reply With Quote
Sponsored Links
  #2  
Old 13th July 2011, 01:17
fl0pp fl0pp is offline
Junior Member
 
Join Date: Jul 2011
Posts: 3
Thanks: 0
Thanked 1 Time in 1 Post
 
Default

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).
Reply With Quote
The Following User Says Thank You to fl0pp For This Useful Post:
falko (13th July 2011)
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 12:47.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.