Monday, April 5, 2010

Squirrelmail plugins

SkyHi @ Monday, April 05, 2010

Squirrelmail

From Wiki.mattrude.com
Jump to: navigation, search

Contents

[hide]

[edit] Downloading & Setting up Squirrelmail

mkdir -p /var/local/squirrelmail/data/
chown -R apache:apache /var/local/squirrelmail
cd /var/www/html/
svn checkout http://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail/trunk/squirrelmail
chown -R apache:apache /var/www/html/squirrelmail

[edit] Configuring Squirrelmail

[edit] Setting SMTP Auth with Squirrelmail

When using the How-To "Installing Postfix on Fedora using MySQL" you will need to authenticate with Postfix before you will be able to send an email.

[edit] Squirrelmail Plugins

[edit] Compatibility Plugin

Allows plugins to remain compatible with all versions of SquirrelMail. This Plugin gets update often so download the latest copy
cd /usr/share/squirrelmail/plugins/
wget http://www.squirrelmail.org/plugins/compatibility-2.0.11-1.0.tar.gz
tar -xzf compatibility-2.0.11-1.0.tar.gz

[edit] Check Quota Plugin

Checks and display users' mail quota status.
cd check_quota
cp config.sample.php config.php
In config.php changing...
$settings['quota_type'] = 0;
To...
$settings['quota_type'] = 1;
Will enable Imap Quota support.

[edit] SpamAssassin Plugin

cd plugins
wget http://voxel.dl.sourceforge.net/sourceforge/php-sa-mysql/SquirrelSAP105.tgz
tar -xzf SquirrelSAP105.tgz
cd SquirrelSAP105/spamassassin/
mv config.php config.php.old
mv index.php index.php.old
mv options.php options.php.old
mv setup.php setup.php.old
mv spamassassin.php spamassassin.php.old
cat config.php.old |sed 's/^M$//' > config.php
cat setup.php.old |sed 's/^M$//' > setup.php
cat index.php.old |sed 's/^M$//' > index.php
cat options.php.old |sed 's/^M$//' > options.php
cat spamassassin.php.old |sed 's/^M$//' > spamassassin.php
rm -rf *.old

[edit] Postfixadmin Plugin

[edit] Filters Plugin

[edit] RetrieveUserData Plugin

This plugin will update the user name and email address from the Postfix database.
cd /usr/share/squirrelmail/plugins/
wget http://superb-east.dl.sourceforge.net/sourceforge/retruserdata/retrieveuserdata.0.9-1.4.0.tar.gz
tar -xzf retrieveuserdata.0.9-1.4.0.tar.gz
cd retrieveuserdata
vim config.php
Now change the database type to MySQL
//  $SQRUD_RETRIEVE_DATA_FROM = "ldap.php";
$SQRUD_RETRIEVE_DATA_FROM = "mysql.php";
And update the MySQL setup
$SQRUD_MYSQL_SERVER = 'localhost';
$SQRUD_MYSQL_USER = 'postfix';
$SQRUD_MYSQL_PASS = 'postfix';
$SQRUD_MYSQL_DB = 'postfix';
$SQRUD_MYSQL_TABLE = 'mailbox';
$SQRUD_MYSQL_NAME_FIELD = 'name';
$SQRUD_MYSQL_MAIL_FIELD = 'username';
$SQRUD_MYSQL_USERNAME_FIELD = 'username';
$SQRUD_MYSQL_USE_PERSISTENT = 1;
Now you need to add the plugin to SquirrelMail's config.
/usr/share/squirrelmail/config/conf.pl

[edit] Shared Calendars Plugins

First you need to install an backend app for the calendar.
wget http://www.squirrelmail.org/plugins/calendar_file_backend-1.0-2.0.tar.gz
And install it
tar -xzf calendar_file_backend-1.0-2.0.tar.gz
../config/conf.pl
Option 8, then add "calendar_file_backend" and save it and quit.
Now we need to install the Shared Calendars Plugin, lets download and install the app.
wget http://www.squirrelmail.org/plugins/shared_calendars-2.0.1-1.4.0.tar.gz
tar -xzf shared_calendars-2.0.1-1.4.0.tar.gz
cd calendar/data
cp config.php.sample config.php
../../config/conf.pl
Option 8, then add "calendar" and save it and quit.

[edit] Spam Buttons

wget http://wwww.squirrelmail.org/plugins/spam_buttons-2.1-1.4.0.tar.gz

[edit] File Manager Plugins

cd /usr/share/squirrelmail/plugins
wget http://squirrelmail.org/countdl.php?fileurl=http%3A%2F%2Fwww.squirrelmail.org%2Fplugins%2Ffile_manager-2.0-1.2.7.tar.gz
tar -xzf file_manager-2.0-1.2.7.tar.gz
../config/conf.pl
REFERENCES
http://wiki.mattrude.com/index.php/Squirrelmail