On Thu, Jun 22, 2006 at 12:39:35PM +0200, Mark Martinec wrote:
Mark,
thanks for all the Useful Info, but I'm still having trouble with
amavisd-release:
>
> > And also, how do I use amavisd-release when the quarantine
> > directory is hashed into subdirs?
> > I keep getting errors whether I use the
> > complete file name, the file name relative to $quarantine_base,
>
> Should work out of the box. The argument to amavisd-release
> should be the exact string that is also logged as a quarantine location:
>
> (83682-08-2) Blocked SPAM, [...] ... <...> -> <...>,
> quarantine: spam/h/hiXE2fSV2X6y.gz, ...
> ^^^^^^^^^^^^^^^^^^^^^^
> and is also stored in SQL (if enabled), field msgs.quar_loc .
>
# amavisd-release Y/spam-Y5y7A3J5r2Ax.gz
Invalid quarantine file name: Y/spam-Y5y7A3J5r2Ax.gz at
/usr/local/sbin/amavisd-release line 145.
and the file exists:
# ls -l /quarantine/virusmails/Y/spam-Y5y7A3J5r2Ax.gz
-rw-r----- 1 amavis amavis 29786 Jul 10 16:19
/quarantine/virusmails/Y/spam-Y5y7A3J5r2Ax.gz
at line 145 of amavisd-release, is
$mail_file =~ m{^ ([^/].+/)? ([A-Z0-9_-]*)
([A-Z0-9][A-Z0-9+-]{10}[A-Z0-9]) (\.gz)? \z}xsi
or die "Invalid quarantine file name: $mail_file";
which I read as
- optionally, start with a non-slash character, followed by one or more
characters, followed by "/" (doesn't match "Y/", but would match any
subdir
more than one character long)
- then zero or more alphanumeric characters (including _-)
- Then a 12-char filename, of which the first and last cannot be "_" or "-"
- Then an optional ".gz"
If I change the first part of the pattern to "([^/]+/)?" then release works
for quarantine IDs matching my pattern.
cheers
rob
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&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/