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='[EMAIL PROTECTED]' 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
> Qmail-scanner-general@lists.sourceforge.net
> 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/
_______________________________________________
Qmail-scanner-general mailing list
Qmail-scanner-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general

Reply via email to