Hi,

Yes, I dont want to block *.zip but a specific file.

Now i can block file with rule like this

full  BLOCK_FILE01 /\nomefile\.zip\b/i

I think is "cpu expensive" but for now work.

thank you

-- 
Michele
Il 26/03/2015 13:20, Bharath Chari ha scritto:
Eric,

      

I think Michele wants to block a SPECIFIC file and not all zip files. I don't know if that's possible with simcontrol.

Bharath

On 03/26/2015 02:01 PM, Eric Broch wrote:
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]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

Reply via email to