Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 30
  1. #1
    Member darren.nolan's Avatar
    Join Date
    Oct 2007
    Posts
    259

    Default SpamAssassin fills up /tmp with a bunch of files...

    Hey guys,

    Been searching for a little while, but haven't found anything in relation to this yet.

    I've got files... many files in the format of .spamassassin**********tmp building up in /tmp.

    Wasn't all that worried about it when I first noticed it - but it just seems to be getting bigger every day. First oocurances was the change from normal cPanel to the VPS optimised version.

    Are these suppose to be here? Do they clean themselves up at all?

    I read somewhere that these files were about Bayes temp information on a per user basis (which explains the file permissions) but still... there's over 500 of these little buggers.

    Any ideas? Cheers,
    Last edited by darren.nolan; 07-21-2008 at 12:40 PM. Reason: cause I'm a noob and can't type/spell.

  2. #2
    Member sehh's Avatar
    Join Date
    Feb 2006
    Location
    Europe
    Posts
    461

    Default

    yeah, its a known bug which came up a few months ago, there is currently no solution as you can see here:

    http://forums.cpanel.net/showthread....1&goto=newpost

  3. #3
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Did someone create a bugzilla entry regarding this that I could make QA aware of?

  4. #4
    Member sehh's Avatar
    Join Date
    Feb 2006
    Location
    Europe
    Posts
    461

  5. #5
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by sehh View Post
    Our QA team reviews all submitted bugzilla entries so thanks for submitting that!

  6. #6
    Member darren.nolan's Avatar
    Join Date
    Oct 2007
    Posts
    259

    Default

    So long as I'm not going mad, and I haven't mucked up - hurray.

    So safe to delete those files every once in a while?

  7. #7
    Member sehh's Avatar
    Join Date
    Feb 2006
    Location
    Europe
    Posts
    461

    Default

    yes its safe, but that won't fix the real problem.

  8. #8
    Member
    Join Date
    Feb 2005
    Posts
    312

    Default

    on my servers I resolved this issue by commenting out the 2 last lines in :
    /etc/mail/spamassassin/local.cf

    #loadplugin Mail::SpamAssassin::Plugin::ResourceLimits
    #resource_limit_mem 134217728

    it seems there is no plugin "ResourceLimits"
    this seems to cause spamassassin to produce incorrect output.
    commented out those lines and it's scoring spam again


    ideally, cpanel would first check for the presence of this plugin and only add the lines if it's available.

  9. #9
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by freedman View Post
    on my servers I resolved this issue by commenting out the 2 last lines in :
    /etc/mail/spamassassin/local.cf

    #loadplugin Mail::SpamAssassin::Plugin::ResourceLimits
    #resource_limit_mem 134217728

    it seems there is no plugin "ResourceLimits"
    this seems to cause spamassassin to produce incorrect output.
    commented out those lines and it's scoring spam again


    ideally, cpanel would first check for the presence of this plugin and only add the lines if it's available.
    That's odd. Just checked three of our test servers and that module is installed on all of them. /scripts/update_sa_rules is what adds that module. According to what I'm reading in the source, it will only add that to your configuration if the module actually exists.

  10. #10
    Member sehh's Avatar
    Join Date
    Feb 2006
    Location
    Europe
    Posts
    461

    Default

    I've disabled it but i we still get the errors in /var/log/exim_panic.

    So far, no /tmp files from SA...

  11. #11
    Member
    Join Date
    Feb 2005
    Posts
    312

    Default

    Quote Originally Posted by cpanelkenneth View Post
    That's odd. Just checked three of our test servers and that module is installed on all of them. /scripts/update_sa_rules is what adds that module. According to what I'm reading in the source, it will only add that to your configuration if the module actually exists.
    I was trying to check for the module via cpan, I didn't think it was just something cpanel shoved in there.

    You're right. it is there. however, removing the config lines did solve the problem, so it must be related somehow.

    ??

  12. #12
    Member darren.nolan's Avatar
    Join Date
    Oct 2007
    Posts
    259

    Default

    Thanks for the posts guys.

    I'm taking a while stab here that even though I change my config file, on the next appropriate cpanel update - it's just going to get rid of my changes anyway - which is good in this case as they'll be addressing this issue anyway.

    Thanks again :-)

  13. #13
    Member darren.nolan's Avatar
    Join Date
    Oct 2007
    Posts
    259

    Default

    Files were quite large also - about 300mb all up.

    We'll see how things go for the next few weeks until I update again.

  14. #14
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by darren.nolan View Post
    Files were quite large also - about 300mb all up.

    We'll see how things go for the next few weeks until I update again.
    Do you recall approximately how large they were individually?

  15. #15
    Member sehh's Avatar
    Join Date
    Feb 2006
    Location
    Europe
    Posts
    461

    Default

    here they range from zero bytes to 300kb

    they all look like they are file attachments (or parts of them) in base64 encoding.

    its interesting that their sizes are too "round" for my tastes, for example they are:

    4096, 40960, 8192, 81920, 45056, 49152...

    notice some kind of pattern here? they could be memory dumps from static length arrays/lists or whatever..

    i also noticed that two different emails, with two completely different file attachments will create identical temporary file sizes (but not content).

    memory corruption, out of boundary core dump?.... who knows...

Similar Threads & Tags
Similar threads

  1. How can I delete /tmp and /var/tmp files?
    By Izkabola in forum E-mail Discussions
    Replies: 5
    Last Post: 01-02-2005, 04:25 AM
  2. Urchin /tmp files
    By wills in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 09-08-2004, 12:13 AM
  3. /tmp files
    By tAzMaNiAc in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-13-2003, 04:28 AM
  4. Bunch of files
    By jmc67 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-05-2003, 09:13 AM
  5. /tmp fills up crashes apache (mod_gzip) need script
    By rpmws in forum cPanel and WHM Discussions
    Replies: 22
    Last Post: 04-17-2002, 06:03 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube