akoeb / amacube

<ATTENTION>Unmaintained! If anyone wants to continue maintaining this software, please let me know!</ATTENTION> Roundcube plugin to let users control their amavis settings as well as manage quarantined emails.
GNU General Public License v3.0
16 stars 23 forks source link

Delivering Spam to "addr_extension_spam" disabled by amacube? #21

Open laclaro opened 7 years ago

laclaro commented 7 years ago

I would like to deliver tagged Spam (above tag2 level) to the users Spam folder. This mechanism does not work anymore if amacube is enabled and I wonder why?

From my amavis config:

# discard highly rated spam and virus mail, sending a copy to the quarantine-address
$final_virus_destiny      = D_DISCARD; # discard virus mail
$final_banned_destiny     = D_BOUNCE;  # send bounced-message to sender
$final_spam_destiny       = D_DISCARD; # discard spam
$final_bad_header_destiny = D_PASS;    # let invalid header-messages pass
$recipient_delimiter = '+';
$addr_extension_spam = 'Spam';

Best,

Henning

laclaro commented 7 years ago

This post is wrong, I just keep is for completeness.

I got this resolved myself by adding those values manually in my policy table (with the correct default values). For existing users I had to change the values of "addr_extension_spam" since the column already existed.

column: recipient_delimiter    type: char(1)        default: +
column: addr_extension_spam    type: varchar(64)    default: Spam

Another option would be to remove the "addr_extension_spam" completely from the table (am I right?). I would recommend to do so, because it is not adjustable in amacube anyway and does only override the settings from your text-based amavis-config (NULL in sql renders them "undef" I guess).

Best,

Henning

laclaro commented 7 years ago

Okay, I got it resolved now. Finally. There was an error with the permissions. You have allow anyone to post ("anyone p") to post to your users Spam folder. Otherwise amavis' reinjected mail gets bounced to INBOX again.

Columns that hold NULL values in mysql do not override text-based settings, so you dont have to drop any columns not used by amacube. They won't affect the behavior. To redirect spam mail, just put this:

# redirect spam that scores sa_tag2_level_deflt < score < sa_kill_level_deflt
# permissions 'anyone p' required to allow amavis to post to that folder
$recipient_delimiter = '+';
$addr_extension_spam = 'Spam';

Best,

Henning