Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Questions about Squirrelmail deprecation

Discussion in 'E-mail Discussion' started by mtindor, Nov 8, 2018.

Tags:
  1. mtindor

    mtindor Well-Known Member

    Joined:
    Sep 14, 2004
    Messages:
    1,346
    Likes Received:
    59
    Trophy Points:
    178
    Location:
    inside a catfish
    cPanel Access Level:
    Root Administrator
    With Squirrelmail going away, obviously one has to notify users and have them choose Horde or Roundcube as default.

    1. Once a system is updated to WHM 78 and Squirrelmail is removed, will users who still had Squirrelmail set as their default be automatically redirected back to the screen where they can choose Horde or Roundcube? Or will they get some sort of flaky error until they manually select Roundcube / Horde by clicking on their email address to bring up the the options?

    2. Are address books stored in Squirrelmail somehow exported magically and imported into Roundcube and Horde? Or does the customer have to manually export the address book from Squirrelmail and import it into Roundcube and Horde prior to the server being updated to WHM 78?

    3. If the customer has to manually export, cPanel should keep in mind that there is no facility in Squirrelmail by default to export Address Book entries. The server admin has to install something like the abook_import_export plugin.

    I haven't seen/heard anybody talk about this. But I very much consider it an issue that longtime SQuirrelmail users can have huge address books that will need exported (and they would have no clue). I don't think there has been anything in cPanel's announcements to even suggest to system administrators that this is an issue that a hosting company and its customers are going to have to deal with prior to the servers being updated to WHM 78.

    Anyone? thoughts?

    mike
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,197
    Likes Received:
    1,936
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello Mike,

    Webmail access attempts are automatically sent to the Webmail selection page where users can choose between Horde or Roundcube if SquirrelMail was previously enabled as the default Webmail client.

    SquirrelMail configuration and data directories in the end-user's home directory are not removed during the update to version 78, however existing data (e.g. address books) is not automatically imported into Roundcube or Horde. Users will need to manually import their SquirrelMail address books into the new webmail client of their preference.

    I recommend working with your customers to export any SquirrelMail address books you want moved into Horde/Roundcube before the upgrade to version 78. Here's an example of steps and a manual script you could use to do this:

    1. Login via SSH and make a backup of the user's .sqmaildata directory:

    Code:
    cp -a /home/username/.sqmaildata /home/username/.sqmaildata-backup
    2. Browse to a user's .sqmaildata directory:

    Code:
    cd /home/username/.sqmaildata/
    3. Create a file named /home/username/.sqmaildata/address-book-converter.sh with the following contents:

    Code:
    #!/bin/bash
    for x in `ls *.abook`
    do
    
    cat $x | while read line
    do
    echo "BEGIN:VCARD" >> $x.vcf
    echo "VERSION:3.0" >> $x.vcf
    echo -n "N:" >> $x.vcf
    echo -n `echo $line | cut -d'|' -f3` >> $x.vcf
    echo -n ";" >> $x.vcf
    echo `echo $line | cut -d'|' -f2` >> $x.vcf
    echo -n "FN:" >> $x.vcf
    echo `echo $line | cut -d'|' -f1` >> $x.vcf
    echo -n "EMAIL;TYPE=PREF,INTERNET:" >> $x.vcf
    echo `echo $line | cut -d'|' -f4` >> $x.vcf
    echo "END:VCARD" >> $x.vcf
    echo >> $x.vcf
    
    done
    
    echo "done $x"
    done
    Source: Linux in My Box: Migrating your squirrel mail contacts to roundcube

    4. Set the permissions on this script to 0755:

    Code:
    chmod 0755 /home/username/.sqmaildata/address-book-converter.sh
    5. Run the converter script:

    Code:
    sh /home/username/.sqmaildata/address-book-converter.sh
    This will convert all of the SquirrelMail address book files (.abook) to Vcard (.vcf) format. The .vcf files are importable to Roundcube using Roundcube >> Contacts >> Import.

    Additionally, I suggest opening a feature request for a utility that automatically imports SquirrelMail address books into Horde or Roundcube:

    Submit A Feature Request

    Let me know the feature request URL once it's opened.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #2 cPanelMichael, Nov 12, 2018 at 9:40 AM
    Last edited: Nov 12, 2018 at 11:38 AM
  3. mtindor

    mtindor Well-Known Member

    Joined:
    Sep 14, 2004
    Messages:
    1,346
    Likes Received:
    59
    Trophy Points:
    178
    Location:
    inside a catfish
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    cPanelMichael likes this.
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice