Thanks Nobunari,

This workaround looks like it will work.

I do like having the different filename prefixes for quarantined files, though. I looked at the code, and it appears that preprocess_policy_query() has no way of looking up (via SQL) a filename based on content type and *_quarantine_method. So if you want to quarantine to files, report to sql, and release them using AM.PDP, *_quarantine_method must be set to 'local:%m' or 'local:%m.gz'. No pre/post fixes allowed.

I couldn't figure out how to do SQL queries inside this function, but it looks like around line 11164, right after:

"} else { # automatically guess a filename - simpleminded"

preprocess_policy_query() should lookup the content type from the msgs table and apply the appropriate *_quarantine_method to the mail ID to get a correct filename.

Can anyone give me insight into how to add sql queries to this part of amavisd?

Thanks,
-Andrew
--
Andrew A. Neuschwander

Nobunari Iemura wrote:
Hi,

In <[EMAIL PROTECTED]>,
On Mon, 06 Feb 2006 13:57:55 -0700,
"Andrew A. Neuschwander" <[EMAIL PROTECTED]> wrote:


I'm trying to use MailZu to view and release quarantined messages from amavisd-new. I'm using version amavisd 2.3.3 and am reporting to sql (no lookups or quarantine to sql). I cannot release messages, here is what happens when I try.

MailZu says to amavisd over the AM.PDP port (9998):

In response and in the maillog, amavisd says:

policy_server FAILED: File /var/virusmails/aK0inFJMfqP2 does not exist at (eval 40) line 286, <GEN3> line 6.

The correct file name is: /var/virusmails/banned-aK0inFJMfqP2, as per the 2.3.0 release notes default. Is there a configuration option I missed, or is this a bug in amavisd?


Insert the following to amavisd.conf

$banned_files_quarantine_method   = 'local:%m';
$spam_quarantine_method           = 'local:%m.gz';

and reload amavisd-new. Hope this helps.

---------------
Nobunari Iemura





-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to