Mark Martinec wrote:
Andrew,
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.
MailZu says to amavisd over the AM.PDP port (9998):
request=release
mail_id=aK0inFJMfqP2
secret_id=cfPfXFhav2nT
quar_type=F
recipient=<[EMAIL PROTECTED]>
[...]
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.
MailZu should have supplied the:
mail_file=banned-aK0inFJMfqP2
in the release request, like amavisd-release does.
It already has all the information from SQL select,
so it should just pass the file information to amavisd.
Mark
Mark,
Sorry to be a pain, but I'm going to have to disagree for a couple reasons.
1) "mail_file=..." is described as optional in the README.protocol
document for releasing a message from quarantine. If this is incorrect,
the documentation needs correcting.
2) The filename prefix used by amavis, i.e. "banned-", is configurable
in the amavis config and NOT supplied in the SQL tables. The SQL
reporting tables (msgrcpt & msgs) only contain the mail_id for the
quarantined message. For MailZu to pass a correct "mail_file=" statement
to amavis, it would have to read the amavisd.conf file to learn the
correct configured prefix from the "*_quarantine_method" options. I
think this is unreasonable. It seems to me that it should be amavis' job
to know a messages filename based on the mail_id and the
*_quarantine_method options.
-Andrew
-------------------------------------------------------
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/