Aici veti gasi detalii tehnice despre cum se pot realiza configurari software+ hardware.
Here you can find tehnical details about software/hardware configuration.

duminică, 17 aprilie 2016

Qmail remove messages with specific attached files

First you need to put in quarantine-events.txt following lines (this example is for archives):


.zip<-tab->SIZE=-1<-tab->We_not_accept_archives
.rar<-tab->SIZE=-1<-tab->We_not_accept_archives
.ace<-tab->SIZE=-1<-tab->We_not_accept_archives
.........

It is verry important to put TAB not space to work.

Next, run qmail-scanner-queue.pl -g and qmail-scanner-queue.pl -r



root@mail:/var/qmail/bin # ./qmail-scanner-queue.pl -g
perlscanner: generate new DB file from /var/spool/qscan/quarantine-events.txt
perlscanner: total of 3 entries.
root@mail:/var/qmail/bin # ./qmail-scanner-queue.pl -r
perlscanner: reading from /var/spool/qscan/quarantine-events.db

File:   .zip
                        Size: Any
                        Description: We_not_accept_archives
File:   .rar
                        Size: Any
                        Description: We_not_accept_archives
File:   .ace
                        Size: Any
                        Description: We_not_accept_archives

===================================================================

Niciun comentariu:

Map


Visitor Map