The Community Forums

Interact with an entire community of cPanel & WHM users.
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

~user/mail/domain.com/username/.spam ?

Discussion in 'E-mail Discussions' started by bignose, Jun 25, 2007.

  1. bignose

    bignose Active Member

    Joined:
    Jan 3, 2007
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    Alot of my users use POP3 exclusively , yet inside their MailDirs there is a directory called .spam

    It appears that this directory fills up without any bounds, often resulting in users getting confused about their quota and usage.

    Can someone shed some light on the nature of this directory and how you have handled it with your own users.

    Thanks.
     
  2. mtindor

    mtindor Well-Known Member

    Joined:
    Sep 14, 2004
    Messages:
    1,279
    Likes Received:
    36
    Trophy Points:
    48
    Location:
    inside a catfish
    cPanel Access Level:
    Root Administrator
    If you log into the user's Cpanel and you click on SpamAssassin, you'll likely see "Spambox Enabled" When SpamBox is enabled, the server dumps any messages it deems are spam into a .spam folder beneath each email account for that particular domain.

    If they were using IMAP/webmail to check mail, they would see the spam folder (although they may have to subscribe to it first). If all of your users are POP3 users, it's a bad idea to enable Spambox as you have already seen.

    If you aren't using spambox, some other options would be to allow it to prefix the subject line with [SPAM] or ***SPAM*** or have it delete the messages. If you want it to delete spam for user accounts within that domain, log into that domain's Cpanel and (a) disable spambox and (b) create a mail filter that discards the mail if the spamassassin header begins with YES (CP 10), or if you are running CP 11, then log into that domains's Cpanel and in the spamassasin settings pay attention to the section that says:


    To automatically delete messages marked as spam, click here now. To disable auto-deletion of spam, remove the 'Generated SpamAsssasin Discard Rule' from Account Level Email Filters:click here.


    Mike
     
  3. bignose

    bignose Active Member

    Joined:
    Jan 3, 2007
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    Is spambox and boxtrapper the same thing ?

    When I go into the users cPanel and click on spamassassin i don't see any mention of spambox..

    However inside the users home directory I do see :

    -rw-r--r-- 1 brantvw brantvw 0 Apr 30 11:19 .spamassassinboxenable
    -rw-r--r-- 1 brantvw brantvw 0 Apr 30 11:19 .spamassassinenable

    Which would lead me to believe that if i deleted .spamassassinboxenable it would stop all these spams from being archived and then I could just delete them all.

    Is that accurate ?

    Should I supsect a bug in cpanel if the spambox optino does not appear under spamassasin ?

    I did go into the box trapper screen and it's disabled for each one of my users.

    Finally I should mention that this is a FreeBSD machine.
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Spambox and Boxtrapper are two completely separate things.

    Boxtrapper = Challenge-response system (ideally curbs spam)

    Spambox = If SpamAssassin detects something as Spam, it will place it in a folder called "Spam" which can be accessed by IMAP or Webmail (POP only if you know what you're doing).
     
  5. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    No, it means you likely didn't check the following option in WHM -> Server Configuration -> Tweak Settings:

    SpamAssassin Spam Box delivery for messages marked as spam (user configurable)
     
  6. bignose

    bignose Active Member

    Joined:
    Jan 3, 2007
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    So I'm getting contradicting answers

    One says it will create a directory called Spam and the other says .spam

    Semantics maybe ?

    I guess my main question is, why can't i see any options for spambox in cPanel..
     
  7. bignose

    bignose Active Member

    Joined:
    Jan 3, 2007
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    I took a look and that was in fact checked off. *shrug*
     
  8. bignose

    bignose Active Member

    Joined:
    Jan 3, 2007
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Strange, I went in and unchecked it clicked save, then checked it again and clicked save, now the option is there.

    If i want to disable this for everyone now can i just delete that .spamassassinboxenable from everyone's home directory ?

    Jeff.
     
  9. mtindor

    mtindor Well-Known Member

    Joined:
    Sep 14, 2004
    Messages:
    1,279
    Likes Received:
    36
    Trophy Points:
    48
    Location:
    inside a catfish
    cPanel Access Level:
    Root Administrator
    Yes, just delete .spamassassinboxenable and none of the domains under that user's account will have spambox functionality enabled (which means no more spam will go into the .spam folder in the user accounts). If you went into each user's Control Panel under the Spamassassin settings (at least in CP 10) and turned off Spam Box, it would do the same thing. Just today I deleted a few .spamassassinboxenable myself :)

    Mike
     
    #9 mtindor, Jun 27, 2007
    Last edited: Jun 27, 2007
  10. bignose

    bignose Active Member

    Joined:
    Jan 3, 2007
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    yep perfect, i did that and with a well crafted find command got rid of all .spam folders, the last step was to run this

    /scripts/generate_maildirsize --force --allaccounts

    now all is well.
     
Loading...

Share This Page