possible bug in 4.84.3-1 located in clamav-wrapper

Alexandru Ionica alexandru.ionica at gmail.com
Wed Nov 9 21:50:02 GMT 2011


its postfix

On Wed, Nov 9, 2011 at 4:24 PM, Jeremy McSpadden <jeremy at fluxlabs.net>wrote:

> Can you verify which user is running clamav ? It should be the same user
> thats running your MTA
>
> --****
> Jeremy McSpadden****
> Flux Labs, Inc****
> http://www.fluxlabs.net
> Endless Solutions****
> *Office* : 850-588-4626****
> *Cell* : 850-890-2543
> *Fax* : 850-254-2955
>
> On Nov 9, 2011, at 8:36 AM, Jeremy McSpadden wrote:
>
> Looks more like a permissions issue than a bug
> --
> Jeremy McSpadden
> Flux Labs, Inc
> http://www.fluxlabs.net
> Endless Solutions
> *Office* : 850-588-4626
> *Cell* : 850-890-2543
> *Fax* : 850-254-2955
>
> On Nov 9, 2011, at 8:19 AM, Alexandru Ionica wrote:
>
> Hello,
>
> MailScanner 4.84.3-1 fresh install running on Centos-6 x86_64 .
> Running MailScanner --debug-sa i noticed the following:
> 12:54:12 LibClamAV Error: cli_scanhtml: Can't create temporary directory
> /var/spool/MailScanner/incoming/SpamAssassin-Temp/tmp.vWQ4hixN67/clamav-497c230ffa4f39a4779ea7618dd8efa4
>
> /var/spool/MailScanner/incoming/SpamAssassin-Temp/tmp.vWQ4hixN67 is a file
> and not a directory so this is why it was caused.
>
> I looked at /usr/lib/MailScanner/clamav-wrapper and changed
> TempDir=$(mktemp) || { echo "$0: Cannot make name for temporary dir" >&2;
> exit 1; }
> to
> TempDir=$(mktemp -d --tmpdir=/var/spool/MailScanner/clamav) || { echo "$0:
> Cannot make name for temporary dir" >&2; exit 1; }
>
> I presume the --tmpdir wouldn't have been needed but i wanted to also move
> it do a different folder.
> Anyway the cause seems to be the lack of the -d flag to mktemp so mktemp
> creates a file instead of a folder.
>
> After doing the above change i don't see any more errors or warnings from
> clamav.
>
> Regards.
>
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
> Before posting, read http://wiki.mailscanner.info/posting
>
> Support MailScanner development - buy the book off the website!
>
>
>  --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
> Before posting, read http://wiki.mailscanner.info/posting
>
> Support MailScanner development - buy the book off the website!
>
>
>
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
> Before posting, read http://wiki.mailscanner.info/posting
>
> Support MailScanner development - buy the book off the website!
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20111109/fdd83b6b/attachment.html


More information about the MailScanner mailing list