Discussion:
Left over temp and tnef files
Arjan Melein
2013-09-26 15:21:32 UTC
Permalink
I just found some leftover garbage from MS which I'd like to not be there :-)
First I am getting tnefXXXX folders under /var/spool/postfix/hold that are not getting cleaned up.
Second there are 771806 files under /var/spool/MailScanner/incoming/SpamAssassin-Temp/ (rm is having a hard time cleaning these up, 780k files making up 60MB)

I'm running MS 4.84.5 on: FC 18 with Perl version 5.016003 (5.16.3)

Does anyone have an explanation for this and possibly a fix ?
I believe the tnef files are form MS's tnef decoder and the SA-Temp is being used at least by clamav.

And on a less important matter, can I move that SA-Temp folder to a ramdisk somehow ? MS itself is currently using one too.

-
Arjan

(and the rest of the modules)

This is Fedora release 18 (Spherical Cow)
This is Perl version 5.016003 (5.16.3)

This is MailScanner version 4.84.5
Module versions are:
1.01 AnyDBM_File
1.30 Archive::Zip
0.23 bignum
1.26 Carp
2.06 Compress::Zlib
1.119 Convert::BinHex
0.17 Convert::TNEF
2.135_06 Data::Dumper
2.30 Date::Parse
1.04 DirHandle
1.11 Fcntl
2.84 File::Basename
2.23 File::Copy
2.02 FileHandle
2.08_01 File::Path
0.22 File::Temp
0.92 Filesys::Df
3.69 HTML::Entities
3.69 HTML::Parser
3.69 HTML::TokeParser
1.23 IO
1.14 IO::File
1.13 IO::Pipe
2.11 Mail::Header
1.89 Math::BigInt
0.22 Math::BigRat
3.07 MIME::Base64
5.503 MIME::Decoder
5.503 MIME::Decoder::UU
5.503 MIME::Head
5.503 MIME::Parser
3.07 MIME::QuotedPrint
5.503 MIME::Tools
0.15 Net::CIDR
1.25 Net::IP
0.19 OLE::Storage_Lite
1.04 Pod::Escapes
3.20 Pod::Simple
1.30 POSIX
1.25 Scalar::Util
2.002 Socket
2.34 Storable
1.4 Sys::Hostname::Long
0.32 Sys::Syslog
1.45 Test::Pod
0.98 Test::Simple
1.9725 Time::HiRes
1.02 Time::localtime

Optional module versions are:
1.88 Archive::Tar
0.23 bignum
2.05 Business::ISBN
20120719.001 Business::ISBN::Data
1.21 Data::Dump
1.826 DB_File
1.37 DBD::SQLite
1.623 DBI
1.17 Digest
1.03 Digest::HMAC
2.51 Digest::MD5
2.13 Digest::SHA1
1.01 Encode::Detect
0.17018 Error
0.280205 ExtUtils::CBuilder
3.16 ExtUtils::ParseXS
2.38 Getopt::Long
0.51 Inline
missing IO::String
1.10 IO::Zlib
2.27 IP::Country
0.29 Mail::ClamAV
3.003002 Mail::SpamAssassin
v2.008 Mail::SPF
1.999001 Mail::SPF::Query
0.4003 Module::Build
0.21 Net::CIDR::Lite
0.68 Net::DNS
v0.003 Net::DNS::Resolver::Programmable
0.53 Net::LDAP
4.066 NetAddr::IP
1.967009 Parse::RecDescent
missing SAVI
3.23 Test::Harness
1.23 Test::Manifest
2.02 Text::Balanced
1.60 URI
0.99 version
0.84 YAML
David Lee
2013-09-26 22:40:53 UTC
Permalink
Post by Arjan Melein
I just found some leftover garbage from MS which I'd like to not be there :-)
First I am getting tnefXXXX folders under /var/spool/postfix/hold that
are not getting cleaned up.
Post by Arjan Melein
Second there are 771806 files under
/var/spool/MailScanner/incoming/SpamAssassin-Temp/
Post by Arjan Melein
(rm is having a hard time cleaning these up, 780k files making up 60MB)
I'm running MS 4.84.5 on: FC 18 with Perl version 5.016003 (5.16.3)
Does anyone have an explanation for this and possibly a fix ?
I believe the tnef files are form MS's tnef decoder and the SA-Temp is
being used at least by clamav.

There is currently and open issue for a problem very similar to what you
are seeing with regards to tnefXXXXX folders:
https://github.com/MailScanner/MailScanner/issues/7

--
David
Post by Arjan Melein
I just found some leftover garbage from MS which I'd like to not be there :-)
First I am getting tnefXXXX folders under /var/spool/postfix/hold that are
not getting cleaned up.
Second there are 771806 files under
/var/spool/MailScanner/incoming/SpamAssassin-Temp/ (rm is having a hard
time cleaning these up, 780k files making up 60MB)
I'm running MS 4.84.5 on: FC 18 with Perl version 5.016003 (5.16.3)
Does anyone have an explanation for this and possibly a fix ?
I believe the tnef files are form MS's tnef decoder and the SA-Temp is
being used at least by clamav.
And on a less important matter, can I move that SA-Temp folder to a
ramdisk somehow ? MS itself is currently using one too.
-
Arjan
(and the rest of the modules)
This is Fedora release 18 (Spherical Cow)
This is Perl version 5.016003 (5.16.3)
This is MailScanner version 4.84.5
1.01 AnyDBM_File
1.30 Archive::Zip
0.23 bignum
1.26 Carp
2.06 Compress::Zlib
1.119 Convert::BinHex
0.17 Convert::TNEF
2.135_06 Data::Dumper
2.30 Date::Parse
1.04 DirHandle
1.11 Fcntl
2.84 File::Basename
2.23 File::Copy
2.02 FileHandle
2.08_01 File::Path
0.22 File::Temp
0.92 Filesys::Df
3.69 HTML::Entities
3.69 HTML::Parser
3.69 HTML::TokeParser
1.23 IO
1.14 IO::File
1.13 IO::Pipe
2.11 Mail::Header
1.89 Math::BigInt
0.22 Math::BigRat
3.07 MIME::Base64
5.503 MIME::Decoder
5.503 MIME::Decoder::UU
5.503 MIME::Head
5.503 MIME::Parser
3.07 MIME::QuotedPrint
5.503 MIME::Tools
0.15 Net::CIDR
1.25 Net::IP
0.19 OLE::Storage_Lite
1.04 Pod::Escapes
3.20 Pod::Simple
1.30 POSIX
1.25 Scalar::Util
2.002 Socket
2.34 Storable
1.4 Sys::Hostname::Long
0.32 Sys::Syslog
1.45 Test::Pod
0.98 Test::Simple
1.9725 Time::HiRes
1.02 Time::localtime
1.88 Archive::Tar
0.23 bignum
2.05 Business::ISBN
20120719.001 Business::ISBN::Data
1.21 Data::Dump
1.826 DB_File
1.37 DBD::SQLite
1.623 DBI
1.17 Digest
1.03 Digest::HMAC
2.51 Digest::MD5
2.13 Digest::SHA1
1.01 Encode::Detect
0.17018 Error
0.280205 ExtUtils::CBuilder
3.16 ExtUtils::ParseXS
2.38 Getopt::Long
0.51 Inline
missing IO::String
1.10 IO::Zlib
2.27 IP::Country
0.29 Mail::ClamAV
3.003002 Mail::SpamAssassin
v2.008 Mail::SPF
1.999001 Mail::SPF::Query
0.4003 Module::Build
0.21 Net::CIDR::Lite
0.68 Net::DNS
v0.003 Net::DNS::Resolver::Programmable
0.53 Net::LDAP
4.066 NetAddr::IP
1.967009 Parse::RecDescent
missing SAVI
3.23 Test::Harness
1.23 Test::Manifest
2.02 Text::Balanced
1.60 URI
0.99 version
0.84 YAML
--
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/20130927/5971b1e1/attachment.html
Mark Sapiro
2013-09-27 17:10:10 UTC
Permalink
Post by Arjan Melein
Second there are 771806 files under /var/spool/MailScanner/incoming/SpamAssassin-Temp/ (rm is having a hard time cleaning these up, 780k files making up 60MB)
See <https://github.com/MailScanner/MailScanner/pull/4>
--
Mark Sapiro <msapiro at value.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
--
Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
Arjan Melein
2013-09-30 10:10:58 UTC
Permalink
Post by Mark Sapiro
See <https://github.com/MailScanner/MailScanner/pull/4>
--
Mark Sapiro <msapiro at value.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
-------
Post by Mark Sapiro
There is currently and open issue for a problem very similar to what you
https://github.com/MailScanner/MailScanner/issues/7
--
David
This is exactly what I'm getting for both, I compared the files on git to the ones I'm using and they are identical except for the clamav-wrapper.
Replaced this file and waiting to see if this at least fixes the tmp files.

-
Arjan
Remco Barendse
2013-10-01 03:39:47 UTC
Permalink
Post by Mark Sapiro
Post by Arjan Melein
Second there are 771806 files under /var/spool/MailScanner/incoming/SpamAssassin-Temp/ (rm is having a hard time cleaning these up, 780k files making up 60MB)
See <https://github.com/MailScanner/MailScanner/pull/4>
The link suggests that the problem was found and fixed, does that mean i
should not get flooded with temp files from MailScanner 4.84.6 to which i
updated only a couple of weeks ago?

I am using sendmail but i get tons of tmp files in /tmp and
/var/spool/MailScanner/incoming/SpamAssassin-Temp/

At the moment i am using a cron job to just delete everything in those
directories on a once per week basis.

A fix would be nice though..... :)
Arjan Melein
2013-10-01 10:24:58 UTC
Permalink
Post by Remco Barendse
The link suggests that the problem was found and fixed, does that mean i
should not get flooded with temp files from MailScanner 4.84.6 to which i
updated only a couple of weeks ago?
I am using sendmail but i get tons of tmp files in /tmp and
/var/spool/MailScanner/incoming/SpamAssassin-Temp/
At the moment i am using a cron job to just delete everything in those
directories on a once per week basis.
A fix would be nice though..... :)
--
The 'fix' changed the file names from tmp.something to MailScanner.something for me, I guess that's a start :)
I'm guessing this is related to specific versions of any of the 3rd party stuff which will make it rather hard to debug.

-
Arjan

Loading...