On 3/26/2015 2:46 AM, Michele Federici wrote:
> Hi,
>
> I need to block an attachment name.zip with qmailtoaster. It's possibile?
>
> This is the header
>
> Content-Type: application/zip; name="stampa-Marcia-2015.zip"
>
> I tryed with spamasassin
>
> mimeheader BLOCCO_FILE01 Content-Disposition =~
> /name="stampa-Marcia-2015\.zip"/i
>
> but nothing.
>
> How can i do?
>
Michele,
Add '.zip:' to /var/qmail/control/simcontrol.
For my '/var/qmail/control/simcontrol' control file it would change...
From: :clam=yes,spam=yes,spam_hits=12,attach=.mp3:.src:.bat:.pif
To: :clam=yes,spam=yes,spam_hits=12,attach=.mp3:.src:.bat:.pif:.zip
Next rebuild the db:
# qmailctl cdb
I'm not sure if you have to restart qmail or not, but you might as well
# qmailctl stop
# qmailctl start
Eric
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]