Make sure config.php exists in /usr/local/cpanel/base/3rdparty/squirrelmail/config.
If it doesn’t exist, run the following command to update squirrelmail and config.php will be recreated automatically.
/usr/local/cpanel/bin/update-squirrelmail –force