On Mon, 5 Jun 2017, Alex wrote:
Does anyone have a script or something that goes through the
quarantine (amavis in my case, gzipped) and produces some kind of
report about the messages that have been tagged?
we have a crontab script [/lnx/util/mailspam] which (among other things)
generates for each user who has received quarantined spam a mail message
like this
-----
During last day user lucio has received the following 1 spams or viruses
blocked by spamassassin
VIA APPARENTLY TO lu...@lambrate.inaf.it
FROM "LVC" <eznu...@mitersone.eu> TO <piergiorgiorivo...@kiwiuno.it>
SUBJECT Re: Online Pharmacy - Only quality drugs!
-----
The script de facto uses formail to split the (institute-wide, daily)
quarantine mail folder (which here has names like
/var/spool/amavis/spamvirus/spam.Jun02 ... there is ONE folder PER DAY for
ALL users together) and pass the output to an awk script which generates
and mails the report.
It is not in a shape immediately usable anywhere (it does other local
things, and relies on the site having mail aliases in NIS maps), but if
you ask me personally I could send you excerpts.
--
Lucio Chiappetti - INAF/IASF - via Bassini 15 - I-20133 Milano (Italy)
For more info : http://www.iasf-milano.inaf.it/~lucio/personal.html
------------------------------------------------------------------------
Nature (http://tinyurl.com/natureaboutrenzi) 09/12/2016 says:
"Italian scientists won't miss departing Prime Minister Matteo Renzi"