Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Member
    Join Date
    Jan 2007
    Posts
    34

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

    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. #2
    Member
    Join Date
    Sep 2004
    Location
    inside a catfish
    Posts
    963
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by bignose View Post
    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.
    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. #3
    Member
    Join Date
    Jan 2007
    Posts
    34

    Default

    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. #4
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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. #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 bignose View Post

    Should I supsect a bug in cpanel if the spambox optino does not appear under spamassasin ?
    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. #6
    Member
    Join Date
    Jan 2007
    Posts
    34

    Default

    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. #7
    Member
    Join Date
    Jan 2007
    Posts
    34

    Default

    Quote Originally Posted by cPanelDavidG View Post
    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)
    I took a look and that was in fact checked off. *shrug*

  8. #8
    Member
    Join Date
    Jan 2007
    Posts
    34

    Default

    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. #9
    Member
    Join Date
    Sep 2004
    Location
    inside a catfish
    Posts
    963
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by bignose View Post
    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.
    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
    Last edited by mtindor; 06-27-2007 at 08:37 PM.

  10. #10
    Member
    Join Date
    Jan 2007
    Posts
    34

    Default

    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.

Similar Threads & Tags
Similar threads

  1. Replies: 2
    Last Post: 02-03-2006, 03:23 PM
  2. Adding user with domain.com/~username
    By drsprite in forum New User Questions
    Replies: 1
    Last Post: 08-06-2004, 11:00 AM
  3. spam to username@domain.com
    By NNNils in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 04-13-2004, 09:05 AM
  4. mail problems ... username used to work now user@domain work
    By neXus in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-20-2001, 06:34 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube