Strange message !

tlum mailscanner.info at tedworld.com
Tue Mar 11 21:25:04 GMT 2008


Yes, DBI->trace() activates DBI logging globally once called - even 
though its only called from within "MailWatch,pm" - and ALL subsequent 
DBI is logged, not just MailWatch.

However, /root is NOT writable by any user but root unless you've messed 
with default permissions even on a Linux system... which this is. And, 
if you're running in jail then there is even less chance of it working.

This was one of those unfortunate cases where enabling more debug 
logging in an attempt to resole unexplained problems simply resulted in 
more unexplained problems. The other poster is probably in the same boat.

Glenn Steen wrote:
> On 11/03/2008, Rick Cooper <rcooper at dwford.com> wrote:
>   
>> Well I guess I should have read the next one before my last post. Actually
>>  that line is commented by default. And yes, while mailwatch is doing
>>  something during or just before the scan output (which comes after the scan,
>>  from the parser) the trace log hasn't been opened properly so the output is
>>  headed to, I think, stdout (might be stderr as that is redirected iirc) and
>>  it's getting fed to the parser as clamd output.
>>
>>  If the original poster would comment out the trace line in MailWatch.pm I
>>  believe his issues would go away too. There are a lot of incidental warnings
>>  and undef errors that DBI doesn't choke on unless -w is used and don't think
>>  MailScanner uses that switch a all, or at least not for the most part. The
>>  trace log would show those errors however.
>>
>>
>>  Rick
>>
>>     
>
> A "fun" addendum here is that since the tracing is at the DBI level,
> it affects all systems that use that... So teh SA cahce will also
> start barfing things into the trace.
> So... Moral of this story is: Never do DBI-tracing unless you actually
> have a DBI-related problem. If the file is writable (which that path
> would be on most Linux systems, but perhaps not on most FreeBSD ones?
> Even if run as user postfix...), it'll fill up pretty fast, so not
> that good tohave enabled.
>
> (snip)
>
> Cheers
>   


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the MailScanner mailing list