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.

Permanently Enabling Spell Checker in Horde and SquirrelMail

Discussion in 'E-mail Discussions' started by misterb, Aug 30, 2003.

  1. misterb

    misterb Active Member

    Joined:
    Aug 21, 2003
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Oregon
    I have enabled both Horde and Squirrelmail to include their spell checker options.
    But I noticed when Cpanel is updated it wipes these out and takes them back to the default of not having these available, I then have to go back in and enable these again.

    My questions is how can I stop the cpanel updates from resetting these options so that they can be permanent?

    cPanel.net Support Ticket Number:
     
  2. goodmove

    goodmove Well-Known Member

    Joined:
    May 12, 2003
    Messages:
    624
    Likes Received:
    0
    Trophy Points:
    16
    Your only option is to chattr +i the files so the Cpanel updates cannot touch them.

    BTW, where did you enable the spellchecker for squirrelmail?
     
  3. misterb

    misterb Active Member

    Joined:
    Aug 21, 2003
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Oregon
    squirrelmail and chattr?

    I know very little, but am trying to learn. But what would the chattr +i command look like for a file? I am not familiar with that at all.

    I have installed Squirrelmail for a couple of clients on my old reseller account and knew that to set the options and addons for squirrelmail, there needed to be a conf.pl* in the /usr/local/cpanel/base/3rdparty/squirrelmail/config/ directory. I looked and it was removed, so I grabbed a copy of the conf.pl* from a squirrel tar file and then copied it to the config directory and then did a,
    perl conf.pl*
    All of squirrelmails options, settings and addons become available. Squirrelmail has about twenty addons, spell check, calendar. etc. etc.

    cPanel.net Support Ticket Number:
     
  4. goodmove

    goodmove Well-Known Member

    Joined:
    May 12, 2003
    Messages:
    624
    Likes Received:
    0
    Trophy Points:
    16
    chattr +i file (this will shut the door to any attempts to modify the file)

    When you want to edit the file, you can do:

    chattr -i file (to release the file for editing)
    edit file
    chattr +i file

    Cpanel won't be able to touch your file from then on.

    >> All of squirrelmails options, settings and addons become available. Squirrelmail has about twenty addons, spell check, calendar. etc. etc.

    Do you need to download and install those addons first before making them available in the config files?
     
  5. misterb

    misterb Active Member

    Joined:
    Aug 21, 2003
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Oregon
    Squirrelmail Addons

    It seems that these are all availabe in the default install but are not enabled.
    I am pretty sure that the conf.pl* will only list addons that have the components installed. I enabled spell check and the calender and these were a nice addition.
    I am not sure which files are altered when the config.pl is used, but I will need to track these down and use your commands to keep those addons plugged in.
    If you figure out which files are altered before I have time to check this, please let me know.

    cPanel.net Support Ticket Number:
     
  6. goodmove

    goodmove Well-Known Member

    Joined:
    May 12, 2003
    Messages:
    624
    Likes Received:
    0
    Trophy Points:
    16
    There are some plugins in /usr/local/cpanel/base/3rdparty/squirrelmail/plugins, and I can see the calendar and spellcheck in there.

    Is your /usr/local/cpanel/base/3rdparty/squirrelmail/config directory any different than this after the new conf.pl?

    ll /usr/local/cpanel/base/3rdparty/squirrelmail/config
    total 48
    drwxr-xr-x 2 root root 4096 Aug 21 17:58 ./
    drwxr-xr-x 16 root root 4096 Aug 21 17:58 ../
    -rw-r--r-- 1 root wheel 16697 Jan 4 2003 config_default.php
    -rw-r--r-- 1 root wheel 359 Jul 1 18:56 config_local.php
    -rw-r--r-- 1 root wheel 359 Jul 1 18:57 config_local.php+cpanel
    -rw-r--r-- 1 root wheel 6425 Jul 1 16:52 config.php
    -rw-r--r-- 1 root wheel 466 Dec 31 2002 index.php

    >> I enabled spell check and the calender and these were a nice addition.

    Which file did you use to enable them?
     
    #6 goodmove, Aug 31, 2003
    Last edited: Aug 31, 2003
  7. misterb

    misterb Active Member

    Joined:
    Aug 21, 2003
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Oregon
    config.pl

    You will need to download a copy of squirrelmail as i nored in my second post. I just unzipped it on my desktop and grabbed out the config.pl from the config directory. Then uploaded it to the server and the copied it into the /usr/local/cpanel/base/3rdparty/squirrelmail/config/ directory.
    Then cd /usr/local/cpanel/base/3rdparty/squirrelmail/config/
    then run the config.pl
    perl config.pl

    cPanel.net Support Ticket Number:
     
  8. misterb

    misterb Active Member

    Joined:
    Aug 21, 2003
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Oregon
    Forgot

    ll /usr/local/cpanel/base/3rdparty/squirrelmail/config
    total 168
    drwxr-xr-x 2 root root 4096 Aug 30 00:23 ./
    drwxr-xr-x 16 root root 4096 Aug 30 00:23 ../
    -rw-r--r-- 1 root wheel 16697 Jan 4 2003 config_default.php
    -rw-r--r-- 1 root wheel 359 Jul 1 14:56 config_local.php
    -rw-r--r-- 1 root wheel 359 Jul 1 14:57 config_local.php+cpanel
    -rw-r--r-- 1 root wheel 6482 Aug 30 12:53 config.php
    -rwxr-xr-x 1 root root 115908 Aug 27 10:18 conf.pl*
    -rw-r--r-- 1 root wheel 466 Dec 31 2002 index.php

    cPanel.net Support Ticket Number:
     
  9. misterb

    misterb Active Member

    Joined:
    Aug 21, 2003
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Oregon
    locked rwo

    After looking at the files in the config directory config.php is the file that conf.pl writes to so I did a:

    chattr +i config.php
    chattr +i conf.pl*

    And am hoping this will save these settings. Also If I remember correctly the conf.pl gets booted out of the directory when cpanel updates. So it should be saved.

    I also enabled the spamcop addon to check it out.

    I wish my other posts would grab some interest. I tried to install AFP and it was a no go and also I need some shared ssl information.

    cPanel.net Support Ticket Number:
     
  10. goodmove

    goodmove Well-Known Member

    Joined:
    May 12, 2003
    Messages:
    624
    Likes Received:
    0
    Trophy Points:
    16
  11. misterb

    misterb Active Member

    Joined:
    Aug 21, 2003
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Oregon
    Other Probs

    I am hoping to have now solved the shared SSL issue I think with some help, but the AFP issue is a problem.

    I followed some instructions to install a afp tar file and followed it step by step but received tons of iptable errors. I looked and rpm iptables is installed. It sounded like such a simple process, but turned into a mess for me. So at this point I am not sure how to proceed and posted for help. I cant imagine my redhat 7.3 w/cpanel is any different than anyone elses and it seemed to work flawlessly for them. So it must be something I did but I cant imagine what.

    cPanel.net Support Ticket Number:
     
  12. Bruce

    Bruce Well-Known Member

    Joined:
    Oct 4, 2001
    Messages:
    147
    Likes Received:
    0
    Trophy Points:
    16
    Worked like a charm for about a month then....

    Uploaded and ran the conf.pl file and worked like magic for about a month.
    Made no other changes and now I get this error when you click on spell checker.
    Any ideas ?


    SquirrelSpell is misconfigured.

    ---------------------------------------------------------------------
    I tried to execute 'aspell -a', but it returned:

    @(#) International Ispell Version 3.1.20 (but really Aspell .33.7.1 alpha
     
  13. misterb

    misterb Active Member

    Joined:
    Aug 21, 2003
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Oregon
    Same Here

    Looks like an aspell update created the problem. I am seeing what I can do to fix this or maybe install ispell.

    Seems like I remember that ispell was recommeded over aspell for squirrelmail.
     
  14. ozarkhost

    ozarkhost Active Member

    Joined:
    Oct 9, 2003
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    what if you wanted to keep the entire dir locked out?
     
  15. abmad

    abmad Member

    Joined:
    Aug 28, 2002
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Anyone have luck with this? I'm stomped with the "I tried to execute 'aspell -a', but it returned:" error with no joy. It seems that at least two ppl over at squirrelmail's sourcepage mailing list are getting the same but no response from the powers that be over there.

    I've tried using ispell and putting in the absolute path for both... oh well .. from what I can tell horde's implementation of spellcheck looks better anyway. I just wanted to offer a solid alternative to my customers.
     
  16. shaky

    shaky Well-Known Member

    Joined:
    May 31, 2003
    Messages:
    53
    Likes Received:
    0
    Trophy Points:
    6
    I'm getting thi error:

    "SquirrelSpell is misconfigured.

    --------------------------------------------------------------------------------

    I tried to execute 'ispell -a', but it returned:
    @(#) International Ispell Version 3.1.20 (but really Aspell .33.7.1 alpha)"
     
  17. Website Rob

    Website Rob Well-Known Member

    Joined:
    Mar 23, 2002
    Messages:
    1,506
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    Alberta, Canada
    cPanel Access Level:
    Root Administrator
    Although I came across this thread doing a search for something else, it has proved very enlightening!

    As already mentioned: To enable the Options available, you will need to download any current release of SquirrelMail.
    unzip it and upload config.pl from the config directory.

    then run the config.pl
    perl /usr/local/cpanel/base/3rdparty/squirrelmail/config/config.pl


    As using the Spam Filters Option is highly recommended, you will also need to edit:

    SpamFilters_YourHop
    vi /usr/local/cpanel/base/3rdparty/squirrelmail/plugins/filters/setup.php

    For easiest change to make and get things going, enter you Server Hostname

    change
    global $SpamFilters_YourHop;
    $SpamFilters_YourHop = ' ';

    to
    global $SpamFilters_YourHop;
    $SpamFilters_YourHop = 'by ServerHostname';


    With regard to previous posts:

    - problems with "SquirrelSpell is misconfigured."
    It should be in all small letters: squirrelspell

    - when Cpanel is updated will it wipe out previous settings?
    dont' know yet, will find out after next update


    These additional Options are great!
     
  18. vivek

    vivek Well-Known Member

    Joined:
    Mar 2, 2004
    Messages:
    93
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    India
    Hello,

    I am geting this message in squiremail->option->spamfilter :

    "WARNING! Tell the administrator to set the "SpamFilters_YourHop" variable."

    I tried changing following parameter with
    =============================
    global $SpamFilters_YourHop;
    $SpamFilters_YourHop = 'by ServerHostname';
    =============================
    http://www.squirrelmail.org/wiki/SpamFilters

    I changed to hostname as well as my mail server hostname for Spamfilters_youhop but it didnt help.
    Any idea guys ?
     
  19. vivek

    vivek Well-Known Member

    Joined:
    Mar 2, 2004
    Messages:
    93
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    India
    No anwerrs , No guru's availabe on this forums..... :(
     
  20. websupport

    websupport Well-Known Member

    Joined:
    Jun 24, 2006
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    6
    Try the solution

    Here's the process that worked for me.

    Search for the Horde config file. It is located at the following location:
    /usr/local/cpanel/base/horde/imp/config/config.php


    Scroll down and look for the following:

    /**
    ** External Utilities
    **/

    // If ispell or aspell is available, then we will provide a spelling
    // checker. If this is empty (''), null, or false, then spell checking
    // will be disabled.

    $conf['utils']['spellchecker'] = '';

    change to:

    $conf['utils']['spellchecker'] = '/usr/bin/aspell';

    :)
     
Loading...

Share This Page