clamd and tnef error?

Kevin Kobb kkobb at skylinecorp.com
Fri Sep 24 13:08:56 IST 2010


On 9/15/2010 12:05 PM, Randal, Phil wrote:
> That  doesn't work either, still get the lstat errors.
>
> If I get the time, I'll look a bit deeper into this.
>
> Phil
>
> --
> Phil Randal | Networks Engineer
> NHS Herefordshire&  Herefordshire Council  | Deputy Chief Executive's Office | I.C.T. Services Division
> Thorn Office Centre, Rotherwas, Hereford, HR2 6JT
> Tel: 01432 260160
> email: prandal at herefordshire.gov.uk
>
> Any opinion expressed in this e-mail or any attached files are those of the individual and not necessarily those of Herefordshire Council.
>
> This e-mail and any attached files are confidential and intended solely for the use of the addressee. This communication may contain material protected by law from being passed on. If you are not the intended recipient and have received this e-mail in error, you are advised that any use, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited. If you have received this e-mail in error please contact the sender immediately and destroy all copies of it.
> -----Original Message-----
> From: mailscanner-bounces at lists.mailscanner.info [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of Steve Freegard
> Sent: 15 September 2010 16:36
> To: MailScanner discussion
> Subject: Re: clamd and tnef error?
>
> On 15/09/10 15:48, Randal, Phil wrote:
>> Run As group =
>>
>> (not normally used for sendmail, says MailScanner.conf)
>>
>> AllowSupplementaryGroups Yes
>>
>
> Then the 'fix' for this would appear to be to set:
>
> Run As Group = clamav  (or whatever user/group clamav runs as)
> *and*
> Incoming Work Permissions = 0660
>
> Regards,
> Steve.
> --
> 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!
> “Any opinion expressed in this e-mail or any attached files are those of the individual and not necessarily those of Herefordshire Council or Herefordshire Primary Care Trust. You should be aware that Herefordshire Council&  Herefordshire Primary Care Trust monitors its email service. This e-mail and any attached files are confidential and intended solely for the use of the addressee. This communication may contain material protected by law from being passed on. If you are not the intended recipient and have received this e-mail in error, you are advised that any use, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited. If you have received this e-mail in error please contact the sender immediately and destroy all copies of it. Please consider the environment before printing this e-mail.”
> Any opinion expressed in this e-mail or any attached files are those of the individual and not necessarily those of Herefordshire Council.
> You should be aware that Herefordshire Council monitors its email service.
> This e-mail and any attached files are confidential and intended solely for the use of the addressee. This communication may contain material protected by law from being passed on. If you are not the intended recipient and have received this e-mail in error, you are advised that any use, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited. If you have received this e-mail in error please contact the sender immediately and destroy all copies of it.
>

I was getting the same error messages. Except for switching away from 
the external TNEF package, I believe I tried all the suggestions and 
settings mentioned and still had the problem.

Finally, I made this change to the TNEF.pm file:

--- TNEF.pm.orig        2010-09-17 04:52:58.000000000 -0400
+++ TNEF.pm     2010-09-22 11:08:43.000000000 -0400
@@ -235,7 +235,7 @@
                                "$dir/$unpackdir");
      return 0;
    }
-  chmod 0700, "$dir/$unpackdir";
+  chmod 0770, "$dir/$unpackdir";

    my $cmd = MailScanner::Config::Value('tnefexpander') .
              " -f $dir/$tnefname -C $dir/$unpackdir --overwrite";

This might not be the right answer, and I may have something else setup 
wrong, but since I did this I haven't had a single error.


More information about the MailScanner mailing list