Quantcast
Viewing all articles
Browse latest Browse all 1141

Administrators • Re: [Solved] Spam quarantine

Ok, thank to Chat GPT - we've found solution Image may be NSFW.
Clik here to view.
:)

I think lots of you will be interested of it Image may be NSFW.
Clik here to view.
;)


In file /opt/zimbra/conf/amavisd.conf.in :
set these to:
$QUARANTINEDIR = "/opt/zimbra/data/amavisd/quarantine";
$final_spam_destiny = D_BOUNCE;

comment out:
##$sa_quarantine_cutoff_level = %%range VAR:zimbraSpa.....

Add under above line:
my $spam_quarantine_cutoff_level = 13; # 13 is just mine kill level - type yours
$spam_quarantine_method = "local:%i-%m-%n";

zmamavisdctl restart

And thats it!!!!
Now spam between 6 to 13 lands in Spam folders in mailboxes, but above 13 (kill level) goes to quarantine to /opt/zimbra/data/amavisd/quarantine - Image may be NSFW.
Clik here to view.
:)
this is so awesome.

Now... how to send email from quarantine to user ?:
cat /opt/zimbra/data/amavisd/quarantine/20250403T002215-CJGi3I1wilfS-00806-01 | /usr/sbin/sendmail <email address>

And don't forget to set deleting old emails from quarantine so to cron add e.g.:
find /opt/zimbra/data/amavisd/quarantine/ -mtime +30 -exec rm {} \;

The last thing is:
Sometimes file /opt/zimbra/conf/amavisd.conf.in is getting back to total default state (generic config), I'm not sure when ...maybe upgrading Zimbra ? - and I don't know how to block it so... if somebody knows - would be nice if you could share that with us Image may be NSFW.
Clik here to view.
:)

Statistics: Posted by loocek — Wed Apr 02, 2025 10:46 pm



Viewing all articles
Browse latest Browse all 1141

Trending Articles