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.

Please help with Apache SpamAssassin + Cpanel

Discussion in 'E-mail Discussions' started by 2electric, Nov 23, 2007.

  1. 2electric

    2electric Member

    Joined:
    Nov 23, 2007
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Hi everyone, I am having a problem with Spam Assassin and Cpanel. I think the software is working fine, it is mostly just a user problem as I don't really know what I am doing or how to get it to do what I want.

    First the details:
    CPANEL version: 11.15.0-RELEASE
    CPANEL build: 17853
    Apache: 1.3.39 (Unix)
    PhP: 4.4.7
    MySQL: 4.1.22-STANDARD
    Operating system: Linux (i686) Kernel 2.6.19

    OK now that's out of the way, this Cpanel system is offered by our web hosting provider and I do not control it. Also I checked the spamassassin and the cpanel websites for documentation/information and still don't know what to do. So here goes.

    I have four domains/accounts set up to use with Cpanel. Each domain has a number of email addresses. So far they are all set up to use POP3 as I don't really like how IMAP sets up different folders for each account. I have turned on SpamAssassin which from what I can gather, alters the subject line of the email and then "does something" with that mail. Apparently SpamAssassin is only responsible for changing the subject line and the "doing something" afterward is controlled by somthing else. I don't know exactly where it goes but, I never see it.

    However I can see that I am using space in my email accounts, when I go to CPanel - mail - Email Accounts, and look at the list of mailboxes, it shows beside each one that there is space being used. However, when we log in to the accounts using Outlook or Outlook Express or even using the webmail interface, all the folders show empty. So the problem here is, I cannot get to the spams to see if there is a real message there and/or delete them so they stop using up space. There is a button on the Cpanel SpamAssassin page to do this, but I can't believe that the only way to delete these messages is by logging in to my cpanel all the time.

    I contacted my ISP and the tech there said that it created some kind of hidden spam folder that was only visible with IMAP. So, I changed one of my POP3 accounts to IMAP with Outlook and logged in. It only showed me an Inbox folder and after several attempts, I did manage to get a Spam folder and sure enough, there were the messages marked with "***SPAM***" in the subject line. When I tried to delete them though, they would not delete.

    So I changed the account back to POP3 and made a folder called "spam", hoping to be able to redirect the messages that say "***SPAM*** on them to it, but I don't even get the ***SPAM*** messages at all.

    Any ideas here? I'd like to see those messages in my email client.

    Here is my current SpamAssassin configuration on one of the domains.

    Spam Assassin is currently: enabled
    Filters
    Score: 5
    Auto-Delete Spam: disabled
    Spam Box is currently: enabled
    no extra configurations.
     
    #1 2electric, Nov 23, 2007
    Last edited: Nov 23, 2007
  2. 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
    It sounds like you have spambox enabled. Spambox is what causes spam to wind up in the spam folder on Webmail and IMAP. As for being unable to delete those messages, I recommend contact your hosting provider about that.

    Note with your IMAP client you will need to set your inbox prefix to INBOX and perhaps subscribe to the folder to be able to view the contents of the folder.

    Note, POP3 is a protocol which is unaware of folders. So any mail you have in folders on IMAP/Webmail will not be retrieved via POP3 regardless of what you do in your POP3 client. However, if you insist on using POP3, you can retrieve spambox mail by using the login of user@domain/spam and password of pass, where user@domain is the email address and pass is the password for the user@domain mail account.
     
  3. 2electric

    2electric Member

    Joined:
    Nov 23, 2007
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Thanks

    So what you are saying is that in order to use spambox with POP3, I have to set up a new pop3 account with a special login?

    Can you elaborate more on what Spambox is? I thought it was a place to store spam messages without deleting them and, according to your description, apparently this Spambox is only accessible via IMAP and not POP3?

    So if I disable it, what will happen to the Spam? will it be delivered to my POP3 inbox with the ***SPAM*** prefix in the subject line, so that i can sort it? Or will it just get deleted or tossed into the abyss?

    Thanks!
     
  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
    It all depends on your configuration what happens to spam.

    Spambox's only purpose is to move items marked as spam that have not yet been deleted into the spam folder. Disabling Spambox will mean items marked as spam will be in the folders they would otherwise be in had they not been moved automatically to the spam folder. The spam folder is accessible via IMAP and webmail.

    You do not need to set up a new POP3 account on the server to access the contents of the spam folder via POP3, but for all practical purposes, that's what you have to do in your POP3 mail client to access this via POP3.

    Disabling Spambox will not automatically delete mail, however any spam meeting your auto-delete threshold will be automatically deleted. You can view/change this setting in your cPanel interface by clicking on the SpamAssassin icon in the Mail feature block. You can also disable Spambox here as well.

    You can also set the threshold for when an email is considered spam by clicking on Configure SpamAssassin button
     
  5. 2electric

    2electric Member

    Joined:
    Nov 23, 2007
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Hi David, thanks for replying so quickly. Maybe I am just a dumb user but I STILL cannot seem to use Cpanel correctly.

    I will use one of my domains for an example here. We'll call it domain1.

    So I go to http://www.domain1.com/cpanel and my cpanel comes up. I log in with my cpanel user name and password WHICH IS NOT AN EMAIL ADDRESS.

    I click on Email Accounts under the mail heading. I see 6 mail accounts that I have set up. Each account is showing a different amount of space used even though the mail clients have downloaded all the mail (except spam).

    I click on the Webmail icon. It opens a page with an icon labelled "Go To Webmail Login". I click on that icon and a new page opens. "Horde, squirrel mail, RoundCube, Configure Mail Client, and Email delivery route". Those are my options. I click on let's say Squirrel Mail. Squirrel mail DOES NOT ASK ME TO LOG IN and somehow pulls up 10 pages of mail belonging to my cpanel account WHICH HAS NOT BEEN CONFIGURED AS AN EMAIL ADDRESS (at the top it says "you are logged in as cpanel_user" rather than one of my email accounts). I have disabled the default mail address (it is set to :fail: No such user here) so I have no idea where these messages are actually supposed to go. They seem to be addressed to nonexistant/old users. I don't know which email account they are actually in.

    To boot, there are four folders that show up in webmail. They are: INBOX, Drafts, Sent and Trash. (Note: there is no Spam folder). Since I cannot seem to use webmail to check the individual mailbox users mail, I don't know if they have a Spam folder in their webmail but if whatever account it checkes does not have it, I can't see why they would have it either.

    So my question remains, where is my spam and how to I get to it on a regular basis so I can check to make sure there aren't real messages in there. (Please tell me what icons to click on the interface to find where my spam is or if it is better to reconfigure my POP3 settings as you suggested. I dont have access to the Linux server to look in any folders).

    Thanks for your patience. :)

    Edit: OK let's see if I can make sense of all that. In the end what I want to do is use POP3 since I like to have email from 2/3 different accounts come into the same inbox, which IMAP can't do. I would like to be able to make a SPAM folder under the POP3 Inbox folder and use an Outlook rule or Outlook Express rule to send the spam that is being blocked by SpamAssassin into that folder, so the end user can check the list manually before deleting the messages.
     
    #5 2electric, Nov 23, 2007
    Last edited: Nov 23, 2007
  6. 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
    Let's try this one step at a time. Is spambox enabled? You can view this in your cPanel interface by clicking on the SpamAssassin icon. If it is enabled, disable it.
     
  7. 2electric

    2electric Member

    Joined:
    Nov 23, 2007
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Yes spambox is enabled (see the end of my first post, I've listed what options I have done).

    OK I have just disabled it. Now, I think the spam will go into my users' inboxes, correct?

    And how do I know which mailbox is being opened by the webmail interface? I only have six mailboxes and the user name that it says it is checking the mail of, is not one of the six mailboxes. *THAT* user is already getting the spam in the inbox.
     
  8. moronhead

    moronhead Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    706
    Likes Received:
    0
    Trophy Points:
    16
    You will need to _subscribe_ to the spam folder in Webmail, otherwise you will not see it in the folders list.
     
  9. 2electric

    2electric Member

    Joined:
    Nov 23, 2007
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Woo hoo, it worked (I think). Disabling the Spam box was what I had to do. Thanks David.

    However, the account with the SpamAssassin enabled only got 10 spams in my inbox over the weekend, the account without SpamAssassin got over 100. I wonder if there is another program in cpanel that is somehow blocking some of them?

    One more question sorry. My 6 mailboxes are still showing that space is being used (I assume from when spambox was enabled). If I go into the SpamAssassin icon, there is only one button to clear the spam box. If I press it, will it empty all the six mailboxes? If not, how do I empty the spam box on those six mailboxes. (I cannot access them via webmail, remember).

    Thanks SO much.
     
  10. 2electric

    2electric Member

    Joined:
    Nov 23, 2007
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Thanks for telling me this, but it would have been a lot more helpful had you told me HOW to do this.

    This is my first time using a software like cpanel and the help that was included does not work. So unfortunately I don't just know how to run things. If I did, I wouldn't be on this forum asking my dumb questions and having my users wait until I figure out how to do this. Thank you for your understanding and patience.
     
  11. 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
    Horde doesn't rely on IMAP so this is not needed for Horde. However, since Squirrelmail does use IMAP, the subscription step is needed.
     
  12. 2electric

    2electric Member

    Joined:
    Nov 23, 2007
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    OK, I figured out how to log each of my users into webmail. I didn't much care for the Horde interface, but the folders were all there (and empty!). Soo... how can I find out where the space is being used? It says I have 396 KB used, but *all* folders are empty in Horde, including "Junk" and "spam" and "Trash".
    ??????
     
  13. 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
    What about the Sent folder? With some IMAP clients and webmail, it will store mail you send into that folder.
     
  14. 2electric

    2electric Member

    Joined:
    Nov 23, 2007
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    No, there is nothing in the sent mail folder either. It shouldn't have anything since I use the POP3 protocol, my Outlook (and users' Outlook Express) should have downloaded everything from the server. I checked using Horde and it said it was empty. ALL the folders are empty.

    I continued to refresh my cpanel screen. Finally it now shows 0 bytes. It looks like it takes an hour or two to refresh to the correct size of the mailbox. I didn't know that.

    Everything is good now. Thanks for taking the time to help me set up my mail.
     
Loading...

Share This Page