Re: Forward quarantined without storing

Lampa <[email protected]>
Newsgroups gmane.mail.qmail.scanner
Message-ID <[email protected]>
Hello,

i've similar problem or question? :)

Here is solution from Salvatore Toribio (author of st patch)


---------- Forwarded message ----------

>Hello,
>
>did you have time to look at problem ?
>
>Best regards,
>
>Lampa

I have tested it today, and the mail is "forwarded" and also
"quarantined". I didn't remember that the normal behavior is "forward
and quarantine". And I understood in your first mail that sa_forward
wasn't working, instead your problem is that you want only forwarding
and not quarantinning. Sorry, but qmail-scanner will always
quarantine, you can just use a cronjob to delete the mails in the
quarantine directory.

Or you can modify qmail-scanner, add the line below (only one line):

....
sub email_quarantine_report {
   my($start_email_time)=[gettimeofday];
   if ($quarantine_spam) {
   return if ($sa_forward ne "" && $quarantine_event =~/spam/i &&
$description !~/potential virus/i); ## ADD THIS LINE
   # st: now spam is quarantined in a separated directory, but also it is
   # possible to set a directory per user, so I must check the directory...
....

Regards
ST

------------------------------------------------

but i think that isn't working because in this subroute is
sa_forwad='' (this is setup in # st: forward the messages just once.)

2007/10/28, John Steel <[email protected]>:
> Hi, after a sucessfull trial where qmail-scanner is both forwarding spam
> (using $sa_forward_site='spam@...' in qmail-scanner.pl) and storing
> quarantined spam in /var/spool/qscan/quarantine/spam we now just want
> the forward bit, i.e. behave as now but stop filling the disk ;-) Is
> this a simple change please? Thanks.
>
> --
> --------------------------
> http://www.phonewebcam.com
> [email protected]
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Qmail-scanner-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general
>


-- 
Lampa

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.